pkgconf --variable path expansion with PKG_CONFIG_SYSROOT_DIR #205
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
On Gentoo Linux, we have a tool called that is used to create cross-compiler environments. crossdev installs a script cross-pkg-config which sets a number of environment variables (including
PKG_CONFIG_SYSROOT_DIR
) and then calls the real pkg-config.pkgconf's behavior regarding sysroot causes some problems for us for packages that build against udev and/or systemd. These projects install pc files that define variables like
udevdir=/lib/udev
andsystemdsystemunitdir=/lib/systemd/system
. These paths are referenced by other packages to determine where udev rules and systemd units should be installed.pkgconf prefixes the paths with the sysroot value, which results in the files being installed in the wrong place.
Staging path with pkgconfig (freedesktop):
Staging path with pkgconf:
Our package manager then copies the files to the appropriate root directory. With pkgconf, this causes the path to be double-prefixed with sysroot.
Long story short, we would really like a way to have PKG_CONFIG_SYSROOT_DIR apply to cflags and libs, but not to variables which are used to determine install locations.
This behavior was discussed in #69, and the following was proposed:
I hope my explanation above serves as a suitable use case.