Fixes a regression introduced in
7a26aee61bbbd8e37745ce13433545333eac4505 whereby (gnu packages
pkg-config) would be caught in a cycle, leading to miscompilation of
package modules, in turn leading to failure to compute the Guix
derivation with exceptions like:
1. &package-input-error:
package: #<package libgc@8.2.4 7fee96c4dc60>
input: ("_" #<syntax-transformer pkg-config>)
* gnu/packages/pkg-config.scm: Autoload (gnu packages check).
Change-Id: I624e701a0c411b6f3d9ad5e10dca6ad7cf552be4
* guix/search-paths.scm ($PKG_CONFIG_PATH): New variable.
* gnu/packages/pkg-config.scm (%pkg-config): Use it.
* gnu/packages/perl.scm (perl-extutils-pkgconfig-for-target): New procedure.
(perl-extutils-pkgconfig): Turn into a syntax that
conditionally expands to...
(cross-perl-extutils-pkgconfig): ... this when %current-target-system is set,
or...
(%perl-extutils-pkgconfig): ... this in a native compilation context.
[arguments]: New field.
[propagated-inputs]: Turn into...
[native-inputs]: ... this.
[native-search-paths]: New field.
When running:
guix build --target=arm-linux-gnueabihf gdb -nd
this reduces the number of hits in the 'add-data-to-store' cache from
205 (25%) to 163 (21%).
* gnu/packages/pkg-config.scm (cross-pkg-config): Turn into an 'mlambda'.