summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-01-31 09:20:06 +0100
committerAndreas Enge <andreas@enge.fr>2025-06-20 20:39:56 +0200
commit1e73dc4466f661b6493238ae4e135cfb1c344adc (patch)
tree3ae0cae4fddb42c7e2b2055e4e7bbb55a153e045 /gnu
parent727d86499a9a42e83e336460ff0291801b5214f3 (diff)
gnu: ruby-sqlite3: Update to 2.5.0.
* gnu/packages/ruby.scm (ruby-sqlite3): Update to 2.5.0. [arguments]<#:phases>: Add phase 'relax-requirements to only run useful tests. <#:modules>: Add required modules. [native-inputs]: Remove ruby-ruby-memcheck. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ruby.scm26
1 files changed, 23 insertions, 3 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5867537ca39..f4c6758e2fa 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11512,7 +11512,7 @@ neither too verbose nor too minimal.")
(define-public ruby-sqlite3
(package
(name "ruby-sqlite3")
- (version "1.6.3")
+ (version "2.5.0")
(source
(origin
(method git-fetch) ;for tests
@@ -11522,13 +11522,34 @@ neither too verbose nor too minimal.")
(file-name (git-file-name name version))
(sha256
(base32
- "0ijj8z8fpk2lczydkxv71k250g5gd8ip8klsscxc9f16b01gh9qs"))))
+ "1fanv7bv5lszd5g752yy8nmpjhrl9gqwbbkbis2xbh83y96f2zfm"))))
(build-system ruby-build-system)
(arguments
(list
#:gem-flags #~(list "--" "--enable-system-libraries")
+ #:modules '((guix build ruby-build-system)
+ (guix build utils)
+ (ice-9 rdelim)
+ (ice-9 textual-ports))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ ;; Don't try to format C code, remove rubocop-rake.
+ (delete-file "rakelib/format.rake")
+ ;; Don't try to run valgrind-like memory tests.
+ ;; This cuts all lines after Minitest::TestTask.create
+ (with-atomic-file-replacement
+ "rakelib/test.rake"
+ (lambda (in out)
+ (let loop ()
+ (let ((line (read-line in)))
+ (cond
+ ((eof-object? line) #f)
+ ((string-prefix? "Minitest::TestTask.create" line) #f)
+ (else
+ (format out "~a~%" line)
+ (loop)))))))))
(delete 'check)
(add-after 'install 'check
(lambda* (#:key tests? #:allow-other-keys)
@@ -11543,7 +11564,6 @@ neither too verbose nor too minimal.")
(list sqlite))
(native-inputs
(list ruby-hoe
- ruby-ruby-memcheck
ruby-rake-compiler
ruby-rake-compiler-dock))
(synopsis "Interface with SQLite3 databases")