From: ludo@gnu.org (Ludovic Courtès)
To: bug-guix@gnu.org
Subject: Search paths
Date: Sat, 30 Mar 2013 23:09:34 +0100 [thread overview]
Message-ID: <87hajsa6ap.fsf@gnu.org> (raw)
Hey, hey!
Commit a18eda2 in ‘core-updates’ adds the ‘native-search-paths’ field
for packages, and honor it. The next commit gives an example of how to
use it.
As discussed before, this mechanism allows the declaration of a
package’s search path environment variables. Examples follow.
GCC has this:
(native-search-paths
(list (search-path-specification
(variable "CPATH")
(directories '("include")))
(search-path-specification
(variable "LIBRARY_PATH")
(directories '("lib" "lib64")))))
Guile 2.0 has this:
(native-search-paths
(list (search-path-specification
(variable "GUILE_LOAD_PATH")
(directories '("share/guile/site/2.0")))
(search-path-specification
(variable "GUILE_LOAD_COMPILED_PATH")
(directories '("share/guile/site/2.0")))))
Perl has this:
(native-search-paths (list (search-path-specification
(variable "PERL5LIB")
(directories '("lib/perl5/site_perl")))))
With those specifications, any package that has (say) Perl as an input
along with several Perl modules has PERL5LIB correctly set in its build
environment.
It’s extensible, so it’s much better than what we had before.
Please report any problems or kudos! :-)
Thanks,
Ludo’.
next reply other threads:[~2013-03-30 22:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-30 22:09 Ludovic Courtès [this message]
2013-04-28 21:44 ` Search paths Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hajsa6ap.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).