From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= <bjoern.hoefling@bjoernhoefling.de> Subject: Help with Ruby: rouge 2.0.7 Date: Tue, 14 Mar 2017 23:08:58 +0100 Message-ID: <20170314230858.2a1465a1@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:47719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bjoern.hoefling@bjoernhoefling.de>) id 1cnuct-00027I-BX for help-guix@gnu.org; Tue, 14 Mar 2017 18:09:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bjoern.hoefling@bjoernhoefling.de>) id 1cnucp-00058e-Vr for help-guix@gnu.org; Tue, 14 Mar 2017 18:09:07 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:47030 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bjoern.hoefling@bjoernhoefling.de>) id 1cnucp-00055s-OX for help-guix@gnu.org; Tue, 14 Mar 2017 18:09:03 -0400 Received: from alma-ubu (pD9EA4DF6.dip0.t-ipconnect.de [217.234.77.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 855373FFA8 for <help-guix@gnu.org>; Tue, 14 Mar 2017 23:08:59 +0100 (CET) List-Id: <help-guix.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>, <mailto:help-guix-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/help-guix/> List-Post: <mailto:help-guix@gnu.org> List-Help: <mailto:help-guix-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>, <mailto:help-guix-request@gnu.org?subject=subscribe> Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org> To: Guix-Help <help-guix@gnu.org> 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: 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 guix build -f rouge.scm -k -K --rounds=3D2 But it failed: phase `build' succeeded after 0.4 seconds starting phase `check' rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) (See full trace by running task with --trace) phase `check' failed after 0.1 seconds Yes, there is no Rakefile in /tmp/guix-build-ruby-rouge-2.0.7.drv-7/gem/ It seams this is not bundled into the Gem. Also the spec folder is not there. Is that usual behaviour? If so, is 'guix import gem' the right way? If I skip the tests via: (arguments '(#:tests? #f)) it works. But I want tests. So I tried it with the package from github: (uri "https://github.com/jneen/rouge/archive/v2.0.7.tar.gz") It has a Rakefile, but I have to modify the test target name: (arguments '(#:test-target "spec")) And I have to add some inputs, although on the RubyGem site, there are neither dev nor runtime dependencies declared: (native-inputs `(("ruby-minitest-4" ,ruby-minitest-4) ("bundler" ,bundler))) OK, let's get started: bjoern@g64 ~/guix [env]$ ./pre-inst-env guix build -f rouge-git.scm --rounds=3D2 -k -K [..] /gnu/store/6ks5gf4088qd23hac1cbd14aml6h1pgw-bundler-1.14.5/lib/ruby/gems/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/ruby/ge= ms/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? What's your Guix/Ruby advice here? Thanks, Bj=C3=B6rn