[bug#33308,v2,2/2] gnu: capnproto: Update to 0.7.0.

Message ID 20181126190433.25295-2-mail@cbaines.net
State Accepted
Commit 9c5f4b82bb0ed6a0447a68f9cb18c4da5f692acf
Headers show
Series Update mosh and capnproto. | expand

Checks

Context Check Description
cbaines/applying patch success Successfully applied

Commit Message

Christopher Baines Nov. 26, 2018, 7:04 p.m. UTC
* gnu/packages/serialization.scm (capnproto): Update to 0.7.0.
[arguments]: Add new 'use-tmp-for-tempory-files phase.
---
 gnu/packages/serialization.scm | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Comments

Christopher Baines Dec. 5, 2018, 8:34 p.m. UTC | #1
I've now gone ahead and pushed these two patches [1]. Thanks for taking
a look :)

1: As 9c5f4b82bb0ed6a0447a68f9cb18c4da5f692acf and
9c5f4b82bb0ed6a0447a68f9cb18c4da5f692acf

Patch

diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 2df0ce1364..2d61f7451b 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -306,7 +306,7 @@  it a convenient format to store user input files.")
 (define-public capnproto
   (package
     (name "capnproto")
-    (version "0.6.1")
+    (version "0.7.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -314,7 +314,7 @@  it a convenient format to store user input files.")
                     version ".tar.gz"))
               (sha256
                (base32
-                "010s9yhq4531wvdfrdf2477zswhck6cjfby79w73rff3v06090l0"))))
+                "0hfdnhlbskagzgvby8wy6lrxj53zfzpfqimbhga68c0ji2yw1969"))))
     (build-system gnu-build-system)
     (arguments
      `(#:phases
@@ -324,6 +324,14 @@  it a convenient format to store user input files.")
              ;; 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-tempory-files
+           (lambda _
+             ;; Use /tmp for tempory files, as the default /var/tmp directory
+             ;; doesn't exist.
+             (substitute* "src/kj/filesystem-disk-test.c++"
+               (("VAR\\_TMP \"/var/tmp\"")
+                "VAR_TMP \"/tmp\""))
              #t)))))
     (home-page "https://capnproto.org")
     (synopsis "Capability-based RPC and serialization system")