From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: Re: [bug#27438] [PATCH] guix: build: ruby-build-system: Install to the vendor directory Date: Fri, 12 Jan 2018 17:17:31 +1000 Message-ID: <6dfe3202-85bf-0739-bd12-819f2d6c9e90@uq.edu.au> References: <0c3c92c6-05ca-bb36-2f24-69077033e91f@cbaines.net> <878tkliix9.fsf@gnu.org> <6a666d6f-f2c2-d786-8fda-422ab28867ca@cbaines.net> <20170716183705.18b5025e@cbaines.net> <20170722110630.19b5fce0@cbaines.net> <794765de-67a1-040b-3877-a19bfe83183f@uq.edu.au> <20170805225552.19c95c6d@cbaines.net> <41bc2718-29ea-cf3c-e409-b1f7705b11f1@uq.edu.au> <87shc9tp1i.fsf@cbaines.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZtb1-0002sS-9p for guix-devel@gnu.org; Fri, 12 Jan 2018 02:17:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZtay-000321-5Y for guix-devel@gnu.org; Fri, 12 Jan 2018 02:17:47 -0500 In-Reply-To: <87shc9tp1i.fsf@cbaines.net> Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Baines , 27438@debbugs.gnu.org Cc: guix-devel@gnu.org Hi Chris, On 18/12/17 00:19, Christopher Baines wrote: > Hey, > > It's been a while since I looked at this, but I think it's still > relevant. > > As a reminder, currently the search paths for the Ruby packages in Guix > are a bit off [1], which makes it difficult to use Ruby gems with > different versions of Ruby. > > Rubygems by default installs gems to directories specific to the version > of Ruby, and this can be helpful when managing multiple versions of Ruby > and different sets of gem packages in a shared directory, but with Guix, > this isn't necessary, as the store can be used. > > Ruby/Rubygems supports installing gems in to a vendor directory, which > is for gems installed by the package system [2]. While Guix blurs the > lines between the "package system" and the "user", using this vendor > directory might come in useful. > > I've attached an updated patch, and successfully built every Ruby > package [3], as well as all of the packages that were changed in the > patch. The only failure was ruby-pg, which failed to build before this > patch. > > Ideally when using specific versions of ruby, any gems that need to be > build with that version of ruby, would be. While this change doesn't do > that, it does simplify the search paths of ruby packages and the > packages for ruby gems. > > Reading the bug report again, I think there was nearly consensus about > merging this, but I wanted to check if anyone has any comments or > experience with Ruby/Rubygems before merging this? I think go ahead with this one. It will be useful particularly when we update ruby to 2.5. ben