From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH] Add yaggo. Date: Wed, 24 Jun 2015 08:19:55 -0400 Message-ID: References: <558A3377.6060301@uq.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7jeq-0003AL-Dk for guix-devel@gnu.org; Wed, 24 Jun 2015 08:20:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7jen-0002Z6-7Y for guix-devel@gnu.org; Wed, 24 Jun 2015 08:20:00 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:35893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7jen-0002Yv-26 for guix-devel@gnu.org; Wed, 24 Jun 2015 08:19:57 -0400 Received: by pdcu2 with SMTP id u2so29612726pdc.3 for ; Wed, 24 Jun 2015 05:19:55 -0700 (PDT) In-Reply-To: <558A3377.6060301@uq.edu.au> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ben Woodcroft Cc: "guix-devel@gnu.org" On Wed, Jun 24, 2015 at 12:35 AM, Ben Woodcroft wrote: > Actually, I lie, this patch only sort of works. The issue is that it only > works when a ruby package is also installed, GEM_PATH does not get set as > part of the ruby-build-system for yaggo. The lib/ files are copied to what I > gather is the correct place, but the env isn't right. > > The same also appears to be true of other ruby packages e.g. ruby-hoe: This is the expected, correct behavior. The native search path $GEM_PATH is defined in the ruby package, like so: (native-search-paths (list (search-path-specification (variable "GEM_PATH") (files (list (string-append "lib/ruby/gems/" (version-major+minor version) ".0")))))) Thus, you need ruby to be a part of your profile. Perhaps ruby should be a propagated input for packages with ruby executables, or scripts could be wrapped in another script that set the correct environment variables. - Dave