From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: Re: Help with Ruby: rouge 2.0.7 Date: Wed, 15 Mar 2017 22:14:06 +1000 Message-ID: References: <20170314230858.2a1465a1@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1co7oz-0000Tj-7h for help-guix@gnu.org; Wed, 15 Mar 2017 08:14:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1co7ou-0007Hs-7P for help-guix@gnu.org; Wed, 15 Mar 2017 08:14:29 -0400 Received: from mailhub1.soe.uq.edu.au ([130.102.132.208]:46051 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1co7ot-0007FI-LU for help-guix@gnu.org; Wed, 15 Mar 2017 08:14:24 -0400 In-Reply-To: <20170314230858.2a1465a1@alma-ubu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= , Guix-Help Hello there, On 15/03/17 08:08, Bj=C3=B6rn H=C3=B6fling wrote: > Hello, > > I want to import the Ruby package 'rouge' 2.0.7 into Guix. I'm new to > Ruby, Gem, Rake, etc. and tried the importer with some success. Maybe > someone with more Ruby experience can tell me what's the right way here= ? > > OK, I thought this is an easy one, because it has no dependencies: Unfortunately, as you found, often the dependencies needed for testing=20 are sometimes not listed at rubygems.org, since it is not common for=20 tests to be run as part of the "gem install" installation process. > https://rubygems.org/gems/rouge/versions/2.0.7 > > I started with: > > guix import gem rouge > rouge.scm > > Then added some import headers in the file and tried to build it with > [..] > /gnu/store/6ks5gf4088qd23hac1cbd14aml6h1pgw-bundler-1.14.5/lib/ruby/gem= s/2.3.0/gems/bundler-1.14.5/lib/bundler/resolver.rb:386:in > `block in verify_gemfile_dependencies_are_found!': Could not find gem > 'wrong' in any of the gem sources listed in your Gemfile. > (Bundler::GemNotFound) > from /gnu/store/6ks5gf4088qd23hac1cbd14aml6h1pgw-bundler-1.14.5/lib/rub= y/gems/2.3.0/gems/bundler-1.14.5/lib/bundler/resolver.rb:356:in > `each' > [..] > > Does that mean that I have to install > 'wrong' (https://rubygems.org/gems/wrong) that itself has 5 > dependencies, 4 are not in Guix? That seems to be the case, unfortunately. There also seems to be some=20 other gems in the Gemfile which aren't yet packaged for Guix. There are=20 also a number of packages in the wip-rails branch on savannah which=20 might be of use - these aren't quite ready yet but if there was interest=20 I could finish them off. If the number of packages needed gets too large, then there may be a=20 case for not running the tests in some packages. Good luck. ben.