GNU bug report logs -
#34514
[PATCH 00/34] Add more Ruby gems, some Rails related
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Sun, 17 Feb 2019 19:14:02 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
Message #125 received at 34514 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ricardo Wurmus <rekado <at> elephly.net> writes:
> Christopher Baines <mail <at> cbaines.net> writes:
>
>> * gnu/packages/ruby.scm (ruby-rbnacl): New variable.
> […]
>> + (add-after 'unpack 'remove-unnecessary-dependencies
>> + (lambda _
>> + ;; Coveralls relates to a network service, and Rubocop to code
>> + ;; linting and both are unnecessary to run the tests
>> + (substitute* "Gemfile"
>> + ((".*rubocop.*") "\n")
>> + ((".*guard-rspec.*") "\n")
>> + ((".*coveralls.*") "\n"))
>> + (substitute* "spec/spec_helper.rb"
>> + (("require \"coveralls\"") "")
>> + (("Coveralls.wear!") ""))))
>
> Please end this phase with #T as substitute* has no defined return value.
Ah, yes, I've tweaked the patch.
>> + (add-after 'unpack 'use-libsodium-from-store
>> + (lambda* (#:key inputs #:allow-other-keys)
>> + (substitute* '("lib/rbnacl/init.rb"
>> + "lib/rbnacl/sodium.rb")
>> + (("\"sodium\", \"libsodium\\.so\\.18\", \"libsodium\\.so\\.23\"")
>> + (string-append "\""
>> + (assoc-ref inputs "libsodium") "/lib/libsodium.so"
>> + "\"")))))
>
> Same here.
>
> This regexp looks brittle. Can we do without the “18” and “23”?
Sure, I've replaced it by "ffi_lib \\[.+\\]". That should do the trick
without being specific about the filenames.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 6 years and 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.