unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Trouble packaging a ruby dependency
@ 2020-11-28 21:41 Holger Peters
  2020-12-05  0:04 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Peters @ 2020-11-28 21:41 UTC (permalink / raw)
  To: help-guix

I have problems building `ruby-rugged'. The patch below is as far as I 
get,
however it fails with an error message I cannot quite debug. Maybe part 
of the
problem is that `ruby-rugged' bundls libgit and I try to have it use the
system-provided on.

   
`/gnu/store/knrzg013b4bi45bimv315y8r70l99aix-ruby-rugged-1.1.0/lib/ruby/vendor_ruby/extensions/x86_64-linux/2.6.0/rugged-1.1.0/gem_make.out' 
-> 
`/tmp/guix-build-ruby-rugged-1.1.0.drv-0/gem/out/lib/ruby/vendor_ruby/extensions/x86_64-linux/2.6.0/rugged-1.1.0/gem_make.out'
   Backtrace:
              7 (primitive-load 
"/gnu/store/sgdrqfiqfx2dmnqi4qjr8dv4xjf…")
   In ice-9/eval.scm:
      191:35  6 (_ _)
   In guix/build/gnu-build-system.scm:
       838:2  5 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . 
#)
   In ice-9/boot-9.scm:
     1736:10  4 (with-exception-handler _ _ #:unwind? _ # _)
   In srfi/srfi-1.scm:
      857:16  3 (every1 #<procedure 7ffff4f427a0 at guix/build/gnu-bui…> 
…)
   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 
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 
"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 
gives
+you the speed and portability of libgit2 with the beauty of the Ruby
+language.")
+    (license license:expat)))


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Trouble packaging a ruby dependency
  2020-11-28 21:41 Trouble packaging a ruby dependency Holger Peters
@ 2020-12-05  0:04 ` Leo Famulari
  2020-12-05  7:05   ` Holger Peters
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2020-12-05  0:04 UTC (permalink / raw)
  To: Holger Peters; +Cc: help-guix

On Sat, Nov 28, 2020 at 10:41:08PM +0100, Holger Peters wrote:
> I have problems building `ruby-rugged'. The patch below is as far as I get,
> however it fails with an error message I cannot quite debug. Maybe part of
> the
> problem is that `ruby-rugged' bundls libgit and I try to have it use the
> system-provided on.
> 
> +(define-public ruby-rugged

I added your package based on Guix Git commit
86d635b85035086d21c319f31f628761df5c82e5 (gnu: ruby-regexp-parser:
Update to 2.0.0.), and it built fine for me on x86_64.

I'm not sure what went wrong, but please try again. If it still does not
work, please let us know :)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trouble packaging a ruby dependency
  2020-12-05  0:04 ` Leo Famulari
@ 2020-12-05  7:05   ` Holger Peters
  0 siblings, 0 replies; 3+ messages in thread
From: Holger Peters @ 2020-12-05  7:05 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix

Hi,

sorry I should have updated on this question.

After some more time investigating the issue I found that libgit2 was in an 
outdated version and I submitted a patch to bump the version

      https://issues.guix.gnu.org/44945 

That’s why the build now succeeds.

I have submitted ruby-rugged for addition to guix here 

    https://issues.guix.gnu.org/44946

Holger


> Am 05.12.2020 um 01:04 schrieb Leo Famulari <leo@famulari.name>:
> 
> On Sat, Nov 28, 2020 at 10:41:08PM +0100, Holger Peters wrote:
>> I have problems building `ruby-rugged'. The patch below is as far as I get,
>> however it fails with an error message I cannot quite debug. Maybe part of
>> the
>> problem is that `ruby-rugged' bundls libgit and I try to have it use the
>> system-provided on.
>> 
>> +(define-public ruby-rugged
> 
> I added your package based on Guix Git commit
> 86d635b85035086d21c319f31f628761df5c82e5 (gnu: ruby-regexp-parser:
> Update to 2.0.0.), and it built fine for me on x86_64.
> 
> I'm not sure what went wrong, but please try again. If it still does not
> work, please let us know :)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-05 12:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-28 21:41 Trouble packaging a ruby dependency Holger Peters
2020-12-05  0:04 ` Leo Famulari
2020-12-05  7:05   ` Holger Peters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).