[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 181/223] gnu: ruby-protobuf: Update to 3.10.3.
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 181/223] gnu: ruby-protobuf: Update to 3.10.3. |
Date: |
Mon, 20 Mar 2023 13:23:07 -0400 |
* gnu/packages/protobuf.scm (ruby-protobuf): Update to 3.10.3. Delete
trailing #t.
[arguments]: Use search-input-file in patch-protoc phase. Honor #:tests? in
check phase.
---
gnu/packages/protobuf.scm | 37 ++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index a746b7de9c..82cf8f452d 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017, 2018, 2019, 2022 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
-;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer
<maxim.cournoyer@gmail.com>
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
@@ -513,7 +513,7 @@ (define-public emacs-protobuf-mode
(define-public ruby-protobuf
(package
(name "ruby-protobuf")
- (version "3.10.3")
+ (version "3.10.7")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -522,7 +522,7 @@ (define-public ruby-protobuf
(file-name (git-file-name name version))
(sha256
(base32
- "1yzz7jgpp6qip5d6qhzbkf5gqaydfk3z3c1ngccwzp6w6wa75g8a"))))
+ "12hp1clg83jfl35x1h2ymzpj5w83wrnqw7hjfc6mqa8lsvpw535r"))))
(build-system ruby-build-system)
(arguments
`(#:phases
@@ -530,8 +530,7 @@ (define-public ruby-protobuf
(add-after 'unpack 'do-not-use-bundler-for-tests
(lambda _
(substitute* "spec/spec_helper.rb"
- (("Bundler\\.setup.*") ""))
- #t))
+ (("Bundler\\.setup.*") ""))))
(add-after 'unpack 'relax-version-requirements
(lambda _
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
@@ -540,33 +539,30 @@ (define-public ruby-protobuf
(("\"rubocop\",.*")
"'rubocop'\n")
(("\"parser\",.*")
- "'parser'\n"))
- #t))
+ "'parser'\n"))))
(add-after 'unpack 'patch-protoc
(lambda* (#:key inputs #:allow-other-keys)
- (let ((protoc (assoc-ref inputs "protobuf")))
- (substitute* "lib/protobuf/tasks/compile.rake"
- (("\"protoc\"")
- (string-append "\"" protoc "/bin/protoc" "\"")))
- #t)))
+ (substitute* "lib/protobuf/tasks/compile.rake"
+ (("\"protoc\"")
+ (string-append "\"" (search-input-file inputs "bin/protoc")
+ "\"")))))
(add-after 'unpack 'skip-failing-test
;; See: https://github.com/ruby-protobuf/protobuf/issues/419
(lambda _
(substitute* "spec/lib/protobuf/rpc/connectors/ping_spec.rb"
(("expect\\(::IO\\)\\.to receive\\(:select\\).*" all)
- (string-append " pending\n" all)))
- #t))
+ (string-append " pending\n" all)))))
(add-after 'replace-git-ls-files 'replace-more-git-ls-files
(lambda _
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
(("`git ls-files -- \\{test,spec,features\\}/*`")
"`find test spec features -type f | sort`")
(("`git ls-files -- bin/*`")
- "`find bin -type f | sort`"))
- #t))
+ "`find bin -type f | sort`"))))
(replace 'check
- (lambda _
- (invoke "rspec"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
(native-inputs
(list ruby-benchmark-ips
ruby-ffi-rzmq
@@ -584,7 +580,10 @@ (define-public ruby-protobuf
(inputs
(list protobuf))
(propagated-inputs
- (list ruby-activesupport ruby-middleware ruby-thor ruby-thread-safe))
+ (list ruby-activesupport
+ ruby-middleware
+ ruby-thor
+ ruby-thread-safe))
(home-page "https://github.com/ruby-protobuf/protobuf")
(synopsis "Implementation of Google's Protocol Buffers in Ruby")
(description "Protobuf is an implementation of Google's Protocol Buffers
--
2.39.1
- [bug#62196] [PATCH 133/223] gnu: ruby-puma: Update to 6.1.1 and enable test suite., (continued)
- [bug#62196] [PATCH 133/223] gnu: ruby-puma: Update to 6.1.1 and enable test suite., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 169/223] gnu: ruby-rails: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 155/223] gnu: Add ruby-net-smtp., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 182/223] gnu: ruby-temple: Update to 0.10.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 191/223] gnu: ruby-shoulda-matchers: Update to 5.3.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 167/223] gnu: Add ruby-stimulus-rails., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 143/223] gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 148/223] gnu: ruby-activestorage: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 119/223] gnu: Add ruby-covered., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 160/223] gnu: ruby-sprockets-rails: Update to 3.4.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 181/223] gnu: ruby-protobuf: Update to 3.10.3.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 185/223] gnu: ruby-web-console: Update to 4.2.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 124/223] gnu: Add ruby-debug., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 161/223] gnu: Add ruby-bootsnap., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 128/223] gnu: Add ruby-bake-test-external., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 201/223] gnu: Add ruby-rspec-pending-for., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 144/223] gnu: ruby-mini-mime: Update to 1.1.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 131/223] gnu: Add ruby-localhost., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 154/223] gnu: Add ruby-net-pop., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 188/223] gnu: ruby-liquid: Update to 4.0.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 193/223] gnu: ruby-shoulda: Update to 4.0.0., Maxim Cournoyer, 2023/03/20