gnu: protobuf: Update to 3.17.3.
* gnu/packages/protobuf.scm (protobuf): Update to 3.17.3. [phases]{disable-broken-tests}: New phase. {move-static-libraries}: Remove trailing #t.
This commit is contained in:
parent
3245d72bcd
commit
0ce685c65f
1 changed files with 24 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
|
||||||
;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
||||||
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
|
@ -84,7 +84,7 @@ data in motion, or as a file format for data at rest.")
|
||||||
(define-public protobuf
|
(define-public protobuf
|
||||||
(package
|
(package
|
||||||
(name "protobuf")
|
(name "protobuf")
|
||||||
(version "3.14.0")
|
(version "3.17.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://github.com/google/protobuf/releases/"
|
(uri (string-append "https://github.com/google/protobuf/releases/"
|
||||||
|
@ -92,7 +92,7 @@ data in motion, or as a file format for data at rest.")
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0nan2wkkwkcx3qyx0cf5vfzjcjhr5qgh4jfx6v2lwpf5q03mmv2h"))))
|
"1jzqrklhj9grs6xbddyb5dyxfbgbgbyhl5zig8ml50wb22gwkkji"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("zlib" ,zlib)))
|
(inputs `(("zlib" ,zlib)))
|
||||||
(outputs (list "out"
|
(outputs (list "out"
|
||||||
|
@ -100,6 +100,26 @@ data in motion, or as a file format for data at rest.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'disable-broken-tests
|
||||||
|
;; The following tests fail on 32 bit architectures such as
|
||||||
|
;; i686-linux.
|
||||||
|
(lambda _
|
||||||
|
(let-syntax ((disable-tests
|
||||||
|
(syntax-rules ()
|
||||||
|
((_ file test ...)
|
||||||
|
(substitute* file
|
||||||
|
((test name)
|
||||||
|
(string-append "DISABLED_" name)) ...)))))
|
||||||
|
;; See: https://github.com/protocolbuffers/protobuf/issues/8460.
|
||||||
|
(disable-tests "src/google/protobuf/any_test.cc"
|
||||||
|
"TestPackFromSerializationExceedsSizeLimit")
|
||||||
|
;; See: https://github.com/protocolbuffers/protobuf/issues/8459.
|
||||||
|
(disable-tests "src/google/protobuf/arena_unittest.cc"
|
||||||
|
"SpaceAllocated_and_Used"
|
||||||
|
"BlockSizeSmallerThanAllocation")
|
||||||
|
;; See: https://github.com/protocolbuffers/protobuf/issues/8082.
|
||||||
|
(disable-tests "src/google/protobuf/io/zero_copy_stream_unittest.cc"
|
||||||
|
"LargeOutput"))))
|
||||||
(add-after 'install 'move-static-libraries
|
(add-after 'install 'move-static-libraries
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Move static libraries to the "static" output.
|
;; Move static libraries to the "static" output.
|
||||||
|
@ -111,8 +131,7 @@ data in motion, or as a file format for data at rest.")
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(install-file file slib)
|
(install-file file slib)
|
||||||
(delete-file file))
|
(delete-file file))
|
||||||
(find-files lib "\\.a$"))
|
(find-files lib "\\.a$"))))))))
|
||||||
#t))))))
|
|
||||||
(home-page "https://github.com/google/protobuf")
|
(home-page "https://github.com/google/protobuf")
|
||||||
(synopsis "Data encoding for remote procedure calls (RPCs)")
|
(synopsis "Data encoding for remote procedure calls (RPCs)")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue