packages: Add `native-search-paths' field and honor it.
authorLudovic Courtès <ludo@gnu.org>
Sat, 30 Mar 2013 21:56:38 +0000 (22:56 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 30 Mar 2013 21:57:03 +0000 (22:57 +0100)
commita18eda2747fa2eb962e3288066d2b1a679589ed3
tree3622bccc9d73d6f09eb1a89be841d8faacbc32d5
parent5cfdb4bcac145abb4f6ce29aaf8fd46504e9e0a9
packages: Add `native-search-paths' field and honor it.

* guix/packages.scm (<search-path-specification>): New record type.
  (search-path-specification->sexp): New procedure.
  (<package>)[native-search-paths]: New field.
  (package-derivation): Accumulate the search paths, and pass them
  as #:search-paths toe BUILDER.
* guix/build-system/gnu.scm (gnu-build): Add #:search-paths.  Compute
  `implicit-search-paths'.  Pass #:search-paths in BUILDER.
* guix/build-system/perl.scm (perl-build): Add #:search-paths, pass it
  to BUILDER with the search paths of PERL.
* guix/build-system/cmake.scm (cmake-build): Add #:search-paths, pass it
  to BUILDER.
* guix/build-system/trivial.scm (trivial-build): Add #:search-paths,
  ignore it.
* guix/build/gnu-build-system.scm (set-paths): Add #:search-paths.
  Remove explicit settings of CPATH, LIBRARY_PATH, and PKG_CONFIG_PATH.
  Instead, walk SEARCH-PATHS and call `set-path-environment-variable'
  for them.
* guix/build/perl-build-system.scm (perl-build): Remove PERL5LIB setting.
* tests/packages.scm ("search paths"): New test.
* gnu/packages/bootstrap.scm (%bootstrap-guile)[raw]: Add
  #:search-paths.
  (%bootstrap-gcc): Add `native-search-paths' field.
* gnu/packages/perl.scm (perl): Likewise.
* gnu/packages/pkg-config.scm (pkg-config): Likewise.
* gnu/packages/glib.scm (intltool): Remove `arguments'.
* gnu/packages/avahi.scm (avahi): Remove #:phases.
14 files changed:
gnu/packages/avahi.scm
gnu/packages/bootstrap.scm
gnu/packages/gcc.scm
gnu/packages/glib.scm
gnu/packages/perl.scm
gnu/packages/pkg-config.scm
guix/build-system/cmake.scm
guix/build-system/gnu.scm
guix/build-system/perl.scm
guix/build-system/trivial.scm
guix/build/gnu-build-system.scm
guix/build/perl-build-system.scm
guix/packages.scm
tests/packages.scm