Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt5.qtwebengine: point build at proper pkg-config for cross #220319

Closed
wants to merge 4 commits into from
Closed

qt5.qtwebengine: point build at proper pkg-config for cross #220319

wants to merge 4 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 9, 2023

When cross-compiling, qmake insists on being able to find a pkgsHostForTarget-style pkg-config with the name pkg-config (no target prefix allowed).

To keep qmake happy, this commit creates a one-symlink derivation containing a link pkg-config which points to ${targetPrefix}pkg-config.

This commit also sets the PKG_CONFIG_EXECUTABLE environment variable.

@ghost ghost requested a review from ttuegel as a code owner March 9, 2023 10:04
@ghost ghost mentioned this pull request Mar 9, 2023
@ofborg ofborg bot added the 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on label Mar 9, 2023
When cross-compiling, qmake insists on being able to find a
`pkgsHostForTarget`-style `pkg-config` with the name `pkg-config`
(no target prefix allowed).

To keep `qmake` happy, this commit creates a one-symlink derivation
containing a link `pkg-config` which points to
`${targetPrefix}pkg-config`.

This commit also sets the `PKG_CONFIG` environment variable.
# qtwebengine expects to find an executable in $PATH which runs on
# the build platform yet knows about the host `.pc` files. Most
# configury allows setting $PKG_CONFIG to point to an
# arbitrarily-named script which serves this purpose; however QT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not patch that out instead?

# arbitrarily-named script which serves this purpose; however QT
# insists that it is named `pkg-config` with no target prefix. So
# we re-wrap the host platform's pkg-config.
pkg-config-wrapped-without-prefix = stdenv.mkDerivation {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are only running commands in installPhase you probably want to use runCommand instead

Adam Joseph and others added 3 commits March 21, 2023 02:52
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
@ghost ghost marked this pull request as draft April 24, 2023 02:18
@ghost ghost marked this pull request as ready for review June 21, 2023 05:14
@ghost ghost closed this Oct 22, 2023
@ghost ghost deleted the pr/qt5/cross/qtwebengine-fix-pkg-config branch October 22, 2023 05:38
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 6.topic: qt/kde 10.rebuild-darwin: 11-100 10.rebuild-linux: 101-500
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant