guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#27438] [PATCH] Specify native search path for all ruby packages


From: Ben Woodcroft
Subject: [bug#27438] [PATCH] Specify native search path for all ruby packages
Date: Wed, 21 Jun 2017 21:47:54 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

Hi Chris,


On 21/06/17 16:36, Christopher Baines wrote:
Without specifying this explicitly in each definition, the GEM_PATH is
inherited and the version is that of the inherited package.

I'm not sure if this is by design, but the version of the gems folder is embedded in the build of each rubygem e.g. 'ruby-hoe' includes
/gnu/store/d867l5i2dqd5qnq4qlsrcwwb0x3443fl-ruby-hoe-3.16.0/lib/ruby/gems/2.4.0

So, in this environment, "require 'hoe'" fails after applying your patch
./pre-inst-env guix environment -C --ad-hoc address@hidden ruby-hoe

Having said that, the gems bundled with each ruby are in a directory with the actual version e.g. address@hidden has this path
/gnu/store/f43dirk254lfhmgjs3sf515cpfl8d46q-ruby-2.2.7/lib/ruby/gems/2.2.0

This isn't ideal, any ideas on what we should do? Specify both paths maybe?
Thanks,
ben





reply via email to

[Prev in Thread] Current Thread [Next in Thread]