From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OAZMEXbFwl8+XwAA0tVLHw (envelope-from ) for ; Sat, 28 Nov 2020 21:47:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6HsbDXbFwl/nGAAA1q6Kng (envelope-from ) for ; Sat, 28 Nov 2020 21:47:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3034E940253 for ; Sat, 28 Nov 2020 21:47:33 +0000 (UTC) Received: from localhost ([::1]:52258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kj844-0000pq-69 for larch@yhetil.org; Sat, 28 Nov 2020 16:47:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj7y8-0006sk-7D for help-guix@gnu.org; Sat, 28 Nov 2020 16:41:24 -0500 Received: from mout01.posteo.de ([185.67.36.65]:47040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj7y3-00055Y-Sz for help-guix@gnu.org; Sat, 28 Nov 2020 16:41:23 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7F17516005F for ; Sat, 28 Nov 2020 22:41:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1606599669; bh=i3s9uIY5fAbeV9GzCCxGl9yEmWeD0Au1y3ELBsGL0bU=; h=Date:From:To:Subject:From; b=NeavYKy4hkvlLwnZ9Kb+ibcguzEfaEapvRedwPRQmxuw+jVX2FWl3jyhELFxYG6Eg vjpBFARBgIEUtd1hPjusiPwkKMJUqMntUMi18eO+NxLsIoSJ3rxUwp1+L2ZUQMb8+t PRqLcYmg9V17y2j+0KTJEoqBTKUYEg9z+Tuar+PfjLZUct3xPQz68csLoyeEfWfbM+ 5TolnP4IUN31p7Off0l2tgnPM2xKkYgE2jls4kyNgXTjxyhpT/A0PCTkOw//p0JPOd /DtfghP45mGtusjVbitCX4wJpG4K0TzavGnwALMxFdHcJEm2/4pszTySx5i9bncN6P CsKMNsVDnVpWw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ck4gT0RCDz9rxT for ; Sat, 28 Nov 2020 22:41:08 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Sat, 28 Nov 2020 22:41:08 +0100 From: Holger Peters To: help-guix@gnu.org Subject: Trouble packaging a ruby dependency Message-ID: <75644ed8b367bbfdee5fd9a1424d3088@posteo.de> X-Sender: holger.peters@posteo.de User-Agent: Posteo Webmail Received-SPF: pass client-ip=185.67.36.65; envelope-from=holger.peters@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 28 Nov 2020 16:47:23 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.96 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=NeavYKy4; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-TUID: BZxR2uvxBTUG I have problems building `ruby-rugged'. The patch below is as far as I=20 get, however it fails with an error message I cannot quite debug. Maybe part=20 of the problem is that `ruby-rugged' bundls libgit and I try to have it use the system-provided on. =20 `/gnu/store/knrzg013b4bi45bimv315y8r70l99aix-ruby-rugged-1.1.0/lib/ruby/ven= dor_ruby/extensions/x86_64-linux/2.6.0/rugged-1.1.0/gem_make.out'=20 ->=20 `/tmp/guix-build-ruby-rugged-1.1.0.drv-0/gem/out/lib/ruby/vendor_ruby/exten= sions/x86_64-linux/2.6.0/rugged-1.1.0/gem_make.out' Backtrace: 7 (primitive-load=20 "/gnu/store/sgdrqfiqfx2dmnqi4qjr8dv4xjf=E2=80=A6") In ice-9/eval.scm: 191:35 6 (_ _) In guix/build/gnu-build-system.scm: 838:2 5 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases .=20 #) In ice-9/boot-9.scm: 1736:10 4 (with-exception-handler _ _ #:unwind? _ # _) In srfi/srfi-1.scm: 857:16 3 (every1 #=20 =E2=80=A6) In guix/build/gnu-build-system.scm: 847:30 2 (_ _) In guix/build/ruby-build-system.scm: 160:10 1 (install #:inputs _ #:outputs _ #:gem-flags _) In ice-9/boot-9.scm: 1669:16 0 (raise-exception _ #:continuable? _) This is my definition of ruby-rugged diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 2753403834..5754374a3f 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -11715,3 +11715,56 @@ which snapshots to consider and what files to=20 include.") defined in @file{.travis.yml} on your local machine, using @code{rvm}, @code{rbenv}, or @code{chruby} to test different versions of Ruby.") (license license:expat))) + +(define-public ruby-rugged + (package + (name "ruby-rugged") + (version "1.1.0") + (home-page "https://www.rubydoc.info/gems/rugged") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rugged" version)) + (sha256 + (base32=20 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f + #:gem-flags (list "--" "--use-system-libraries"))) + (inputs + `(("libgit2" ,libgit2))) + (native-inputs + `(("ruby-minitest" ,ruby-minitest) + ("ruby-pry" ,ruby-pry) + ("ruby-rake-compiler" ,ruby-rake-compiler))) + (synopsis "Ruby bindings to the libgit2 linkable C Git library. ") + (description "Rugged is a library for accessing libgit2 in Ruby. It=20 gives +you the speed and portability of libgit2 with the beauty of the Ruby +language.") + (license license:expat)))