summary refs log tree commit diff
path: root/pkgs/build-support/pkg-config-wrapper
AgeCommit message (Collapse)AuthorFilesLines
2022-05-25treewide: add enableParallelBuilding's to bootstrap packages so hashes stay ↵Artturin1-0/+2
the same when enableParallelBuildingByDefault is enabled verified with `nix-diff $(nix eval ".#gcc-unwrapped.drvPath") $(nix eval --expr 'with import ./. { config = { enableParallelBuildingByDefault = true; }; }; gcc-unwrapped.drvPath' --impure)`
2022-05-22treewide: enable strictDeps in bootstrap packagesArtturin1-2/+1
2021-12-02pkg-config: make comment clearer for non-nativesAlyssa Ross1-1/+1
Suggested-by: Jörg Thalheim <joerg@thalheim.io>
2021-12-02pkg-config: always pass --static in static buildsAlyssa Ross2-0/+5
By default, pkg-config output will not include Requires.private dependencies (which specify dependencies that only apply when building statically). It will only do this when passed --static. In pkgsStatic, let's ensure pkg-config is always operating in static mode, because pkgsStatic will ensure that any libraries pkg-config might find will always be static, and so will always need their Requires.private dependencies. This is very useful for Meson builds, because otherwise Meson will only pass --static to pkg-config if the dependency was explicitly "static : true", which is not likely to be the case for most stuff we're building. An alternative proposal was to patch Meson to add a special environment variable to force dependencies to be "static : true". I feel that the approach I've taken here is less invasive.
2021-11-14misc: Replace tab indentation with spacesVictor Engmark1-3/+3
I've tried to be consistent, using four or eight spaces to line up with existing code.
2021-05-18pkg-config-wrapper: mangle PKG_CONFIG_PATH{,_FOR_BUILD} correctlysternenseemann1-1/+1
Previously, mangleVarList would be used which would concatenate the variables using a space as a separator. Paths are however separated by `:` in PKG_CONFIG_PATH leading to entries being broken. This is fixed by introducing mangleVarListGeneric which allows us to specify the desired separator. Reproducer for the issue prior to this change: $ nix-shell -A pkgsLLVM.wayland [nix-shell] $ pkg-config --libs expat Package expat was not found in the pkg-config search path. Perhaps you should add the directory containing `expat.pc' to the PKG_CONFIG_PATH environment variable No package 'expat' found $ printf 'Host: %s\nBuild: %s' $PKG_CONFIG_PATH $PKG_CONFIG_PATH_FOR_BUILD Host: /nix/store/5h308a4ab8w7prcp8iflh5pnl78mayi2-expat-2.2.10-x86_64-unknown-linux-gnu-dev/lib/pkgconfig:/nix/store/z3y9ska2h4l1map25m195iq577g7g3gz-libxml2-x86_64-unknown-linux-gnu-2.9.12-dev/lib/pkgconfig:/nix/store/lbz5m1s0r7zn0cxvl21czfspli6ribzb-zlib-1.2.11-x86_64-unknown-linux-gnu-dev/lib/pkgconfig:/nix/store/rfhvp8r8n3ygpzh8j0l34lk8hwwi3z0h-libffi-3.3-x86_64-unknown-linux-gnu-dev/lib/pkgconfig Build: /nix/store/dw11ywy7qwfz53qisz0dggbgix88jah2-wayland-1.19.0-bin/lib/pkgconfig strace reveals the issue: stat("/nix/store/dw11ywy7qwfz53qisz0dggbgix88jah2-wayland-1.19.0-bin/lib/pkgconfig /nix/store/5h308a4ab8w7prcp8iflh5pnl78mayi2-expat-2.2.10-x86_64-unknown-linux-gnu-dev/lib/pkgconfig/expat-uninstalled.pc", 0x7fff49829fa0) = -1 ENOENT (No such file or directory) In the pkg-config wrapper $PKG_CONFIG_PATH_FOR_BUILD and $PKG_CONFIG_PATH are concatenated with a space which leads to two paths being messed up. This issue likely only affects native cross compilation.
2021-01-24pkgs/build-support: stdenv.lib -> libBen Siraphob1-1/+1
2021-01-24treewide: stdenv.lib -> libPavol Rusnak1-2/+3
2020-09-07Revert "utils.bash: also "fix" cc-wrapper and pkg-config-wrapper"Frederik Rietdijk1-1/+1
Follow up to the revert in e560459c5b06ce1351ae5eb8988f8ce87602058a. This reverts commit 1936b11f63d2f58ef0c7216e53e56deb804a715e.
2020-09-07utils.bash: also "fix" cc-wrapper and pkg-config-wrapperFrederik Rietdijk1-1/+1
2020-05-21pkg-config-wrapper: Move comments outside of stringsJohn Ericson1-15/+12
This is much better because then we can freely keep the comments up to date without causing mass rebuilds. Someday, somebody should make the same change with `cc-wrapper` and `bintools-wrapper`.
2020-05-21pkgconf: Wrap with pkg-config-wrapperJohn Ericson2-3/+4
2020-05-21pkg-config-wrapper: Provide autoconf macrosJohn Ericson1-0/+9
This fixes libarchive, and probably numerous other builds.
2020-05-21pkg-config: Multiple outputsJohn Ericson1-4/+6
This is good practice, and will help with tests. Wrapper adjust to match bintools-wrapper re these new outputs.
2020-05-16pkg-config-wrapper: InitJohn Ericson4-0/+179
This fixes longstanding build issues