me
/
guix
Archived
1
0
Fork 0

gnu: capnproto: Update to 1.0 [fixes CVE-2022-46149].

* gnu/packages/serialization.scm (capnproto): Update to 1.0.
[arguments]: Remove obsolete 'do-not-require-/etc/services phase.
Don't explicitly return #t from phases.
master
Tobias Geerinckx-Rice 2023-07-23 02:00:00 +02:00
parent 75b95af9d6
commit b4e790988e
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 2 additions and 9 deletions

View File

@ -584,7 +584,7 @@ object, without whitespace.")
(define-public capnproto (define-public capnproto
(package (package
(name "capnproto") (name "capnproto")
(version "0.8.0") (version "1.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@ -597,20 +597,13 @@ object, without whitespace.")
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'do-not-require-/etc/services
(lambda _
;; Workaround for test that tries to resolve port name from
;; /etc/services, which is not present in build environment.
(substitute* "src/kj/async-io-test.c++" ((":http") ":80"))
#t))
(add-before 'check 'use-tmp-for-temporary-files (add-before 'check 'use-tmp-for-temporary-files
(lambda _ (lambda _
;; Use /tmp for temporary files, as the default /var/tmp directory ;; Use /tmp for temporary files, as the default /var/tmp directory
;; doesn't exist. ;; doesn't exist.
(substitute* "src/kj/filesystem-disk-test.c++" (substitute* "src/kj/filesystem-disk-test.c++"
(("VAR\\_TMP \"/var/tmp\"") (("VAR\\_TMP \"/var/tmp\"")
"VAR_TMP \"/tmp\"")) "VAR_TMP \"/tmp\"")))))))
#t)))))
(home-page "https://capnproto.org") (home-page "https://capnproto.org")
(synopsis "Capability-based RPC and serialization system") (synopsis "Capability-based RPC and serialization system")
(description (description