unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Improve search path handling?
@ 2015-02-24  2:11 David Thompson
  2015-02-24  2:19 ` [PATCH 1/2] packages: Merge like search path specifications David Thompson
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: David Thompson @ 2015-02-24  2:11 UTC (permalink / raw)
  To: guix-devel

While hacking on Ruby stuff, I noticed that executable files in Ruby
gems aren't installed in 'bin', but rather 'lib/ruby/gems/2.2.0/bin'.
In order to make these executables "just work", I decided to add a
search path specification for $PATH to the ruby package.  That's when I
noticed an issue: 'guix package --search-paths' would have me clobber
the $PATH I had already configured to use my profile.

    export PATH="/home/dave/.guix-profile/lib/ruby/gems/2.2.0/bin"

To solve this, two things need to happen: A default $PATH with 'bin' and
'sbin' needs to be included, and search path specifications that have
the same variable name need to be merged.

The merge is necessary to avoid a situation like this:

    export PATH="/home/dave/.guix-profile/bin:/home/dave/.guix-profile/sbin"
    export PATH="/home/dave/.guix-profile/lib/ruby/gems/2.2.0/bin"

I also tweaked 'guix environment' to use the base search paths, which it
was already doing, but via a hardcoded search path specification.

Or maybe this is all silly and I'm doing it wrong!  You decide!

Thanks in advance for the patch review.

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-03-02 14:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24  2:11 [PATCH 0/2] Improve search path handling? David Thompson
2015-02-24  2:19 ` [PATCH 1/2] packages: Merge like search path specifications David Thompson
2015-02-27 16:03   ` Ludovic Courtès
2015-02-24  2:19 ` [PATCH 2/2] packages: Add %base-search-path-specifications David Thompson
2015-02-27 16:04   ` Ludovic Courtès
2015-02-25  3:04 ` [PATCH 0/2] Improve search path handling? David Thompson
2015-02-27 16:06   ` Ludovic Courtès
2015-02-28 17:31     ` David Thompson
2015-02-28 20:36       ` Andreas Enge
2015-03-02  6:17         ` Mark H Weaver
2015-03-02  9:27           ` Ludovic Courtès
2015-03-02 13:26             ` Dave Thompson
2015-03-02 14:27               ` Ludovic Courtès

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).