all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 44785@debbugs.gnu.org
Subject: [bug#44785] [PATCH v2 22/22] gnu: sequoia: Update to 0.20.0.
Date: Mon, 23 Nov 2020 13:27:15 +0100	[thread overview]
Message-ID: <cfabe9c5cb824e5f9247fef353045e3544838f0a.1606131551.git.h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <cover.1606131550.git.h.goebel@crazy-compilers.com>

* gnu/packages/sequoia.scm (sequoia): Update to 0.20.0. [cargo-inputs,
  cargo-development-inputs] Update dependencies. [phases]{unpin-deps}: Adjust
  path of file to substitute.  {adjust-prefix} Rename to {fix-environment} and
  set another envormnet variable. {keep-SOURCE_DATE_EPOCH}: New phase.
---
 gnu/packages/sequoia.scm | 64 +++++++++++++++++++++++++++-------------
 1 file changed, 43 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/sequoia.scm b/gnu/packages/sequoia.scm
index 8f2b351031..6550a71a1a 100644
--- a/gnu/packages/sequoia.scm
+++ b/gnu/packages/sequoia.scm
@@ -32,6 +32,7 @@
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz) ;; python-setuptools
+  #:use-module (gnu packages rust)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tls))
@@ -39,7 +40,7 @@
 (define-public sequoia
   (package
     (name "sequoia")
-    (version "0.17.0")
+    (version "0.20.0")
     (source
      (origin
        (method git-fetch)
@@ -47,7 +48,7 @@
              (url "https://gitlab.com/sequoia-pgp/sequoia.git")
              (commit (string-append "v" version))))
        (sha256
-        (base32 "1rf9q67qmjfkgy6r3mz1h9ibfmc04r4j8nzacqv2l75x4mwvf6xb"))
+        (base32 "1c76sz4y0n4jhf1gq4b87v5c07i09mmd3i6sqki09bd96m3ldgkf"))
        (file-name (git-file-name name version))))
     (build-system cargo-build-system)
     (outputs '("out" "python"))
@@ -55,7 +56,8 @@
      `(("clang" ,clang)
        ("pkg-config" ,pkg-config)
        ("python-pytest" ,python-pytest)
-       ("python-pytest-runner" ,python-pytest-runner)))
+       ("python-pytest-runner" ,python-pytest-runner)
+       ("python-wrapper" ,python-wrapper)))
     (inputs
      `(("capnproto" ,capnproto)
        ("gmp" ,gmp)
@@ -66,21 +68,24 @@
        ("sqlite" ,sqlite)))
     (arguments
      `(#:tests? #f ;; building the tests requires 9.7GB total
+       #:rust ,rust-1.46
        #:cargo-inputs
-       (("rust-assert-cli" ,rust-assert-cli-0.6)
-        ("rust-anyhow" ,rust-anyhow-1.0)
-        ("rust-base64" ,rust-base64-0.11)
+       (("rust-anyhow" ,rust-anyhow-1.0)
+        ("rust-backtrace" ,rust-backtrace-0.3)
+        ("rust-base64" ,rust-base64-0.13)
         ;;("rust-buffered-reader" included
-        ("rust-bzip2" ,rust-bzip2-0.3)
+        ("rust-bzip2" ,rust-bzip2-0.4)
         ("rust-capnp" ,rust-capnp-0.10)
         ("rust-capnp-rpc" ,rust-capnp-rpc-0.10)
         ("rust-capnpc" ,rust-capnpc-0.10)
-        ("rust-chrono" ,rust-chrono-0.4)
-        ("rust-clap" ,rust-clap-2)
+        ("rust-chrono" ,rust-chrono-0.4)  ;; for sqv, sop
+        ("rust-clap" ,rust-clap-2)        ;; for sqv
         ("rust-colored" ,rust-colored-1.9.1)
         ("rust-crossterm" ,rust-crossterm-0.13)
         ("rust-ctor" ,rust-ctor-0.1)
         ("rust-dirs" ,rust-dirs-2.0)
+        ("rust-dyn-clone" ,rust-dyn-clone-1)
+        ("rust-ed25519-dalek" ,rust-ed25519-dalek-1)
         ;;("rust-failure" included
         ("rust-filetime" ,rust-filetime-0.2)
         ("rust-flate2" ,rust-flate2-1)
@@ -90,33 +95,40 @@
         ("rust-hyper" ,rust-hyper-0.12)
         ("rust-hyper-tls" ,rust-hyper-tls-0.3)
         ("rust-idna" ,rust-idna-0.2)
-        ("rust-itertools" ,rust-itertools-0.8)
-        ("rust-lalrpop-util" ,rust-lalrpop-util-0.17)
+        ("rust-itertools" ,rust-itertools-0.9) ;; for sq
+        ("rust-lalrpop" ,rust-lalrpop-0.19)
+        ("rust-lalrpop-util" ,rust-lalrpop-util-0.19)
         ("rust-lazy-static" ,rust-lazy-static-1)
         ("rust-libc" ,rust-libc-0.2)
-        ("rust-memsec" ,rust-memsec-0.5)
+        ("rust-memsec" ,rust-memsec-0.6)
         ("rust-native-tls" ,rust-native-tls-0.2)
         ("rust-nettle" ,rust-nettle-7)
+        ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.6)
         ("rust-parity-tokio-ipc" ,rust-parity-tokio-ipc-0.4)
         ("rust-percent-encoding" ,rust-percent-encoding-2)
-        ("rust-prettytable-rs" ,rust-prettytable-rs-0.8)
+        ("rust-prettytable-rs" ,rust-prettytable-rs-0.8)  ;; for sq
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quickcheck" ,rust-quickcheck-0.9)
         ("rust-rand" ,rust-rand-0.7)
         ("rust-regex" ,rust-regex-1)
-        ("rust-rusqlite" ,rust-rusqlite-0.19)
-        ("rust-structopt" ,rust-structopt-0.3)
-        ("rust-tempfile" ,rust-tempfile-3)
+        ("rust-rusqlite" ,rust-rusqlite-0.24)
+        ("rust-structopt" ,rust-structopt-0.3) ;; for sop
+        ("rust-tempfile" ,rust-tempfile-3) ;; for sq
         ("rust-thiserror" ,rust-thiserror-1)
         ("rust-tokio" ,rust-tokio-0.1)
         ("rust-tokio-core" ,rust-tokio-core-0.1)
         ("rust-unicode-normalization" ,rust-unicode-normalization-0.1)
         ("rust-url" ,rust-url-2)
+        ("rust-win-crypto-ng" ,rust-win-crypto-ng-0.2)
+        ("rust-winapi" ,rust-winapi-0.3)
         ("rust-zbase32" ,rust-zbase32-0.1))
        #:cargo-development-inputs
-       (("rust-bindgen" ,rust-bindgen-0.51) ;; FIXME for nettle-sys and rusqlite
-        ("rust-lalrpop" ,rust-lalrpop-0.17)
-        ("rust-rpassword" ,rust-rpassword-4))
+       (("rust-assert-cli" ,rust-assert-cli-0.6) ;; dev-dep for for sq, sqv
+        ("rust-bindgen" ,rust-bindgen-0.51) ;; FIXME for nettle-sys and rusqlite
+        ;;("rust-lalrpop" ,rust-lalrpop-0.19)
+        ("rust-quickcheck" ,rust-quickcheck-0.9)
+        ("rust-rand" ,rust-rand-0.7)
+        ("rust-rpassword" ,rust-rpassword-5))
        #:phases
        (modify-phases %standard-phases
          ;; Run make instead of using the rust build system, as
@@ -128,9 +140,12 @@
                  (invoke "make" "check")
                  #t)))
          (replace 'install (lambda _ (invoke "make" "install") #t))
-         (add-after 'unpack 'adjust-prefix
+         (add-after 'unpack 'fix-environment
            (lambda* (#:key outputs #:allow-other-keys)
+             ;; adjust prefix
              (setenv "PREFIX" (assoc-ref outputs "out"))
+             ;; fix install script detection
+             (setenv "INSTALL" "install")
              #t))
          (add-after 'unpack 'fix-fo-python-output
            (lambda* (#:key outputs #:allow-other-keys)
@@ -157,6 +172,13 @@
                (substitute* "openpgp-ffi/sequoia-openpgp.pc.in"
                  (("PREFIX") out))
                #t)))
+         (add-after 'unpack 'keep-SOURCE_DATE_EPOCH
+           (lambda _
+               ;; preempt Makefiles replacing SOURCE_DATE_EPOCH
+               (substitute* "Makefile"
+                 (("SOURCE_DATE_EPOCH\\s=" line)
+                  (string-append "#" line)))
+             #t))
          (add-after 'unpack 'set-missing-env-vars
            (lambda* (#:key inputs #:allow-other-keys)
              ;; FIXME: why do we need to set this here?
@@ -168,7 +190,7 @@
              ;; As the comment in that file explains, upstream encourages
              ;; unpinning, as the pinned version is only to make sure the crate
              ;; compiles on older versions of rustc
-             (substitute* '("openpgp/Cargo.toml" "tool/Cargo.toml")
+             (substitute* '("openpgp/Cargo.toml" "sq/Cargo.toml")
                (("= \"=") "= \""))
              #t)))))
     (home-page "https://sequoia-pgp.org")
-- 
2.21.3





  parent reply	other threads:[~2020-11-23 12:29 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-21 23:12 [bug#44785] [PATCH 00/22] Update sequoia to 0.20.0 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 01/22] gnu: Add rust-rpassword-5 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 02/22] gnu: Add rust-win-crypto-ng-0.2 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 03/22] gnu: Add rust-num-bigint-dig-0.6 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 04/22] gnu: Add rust-memsec-0.6 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 05/22] gnu: Add rust-ena-0.14: Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 06/22] gnu: Add rust-lalrpop-util-0.19 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 07/22] gnu: Add rust-lalrpop-0.19 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 08/22] gnu: Add rust-keccak-0.1 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 09/22] gnu: Add rust-merlin-2 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 10/22] gnu: Add rust-signature-derive-1 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 11/22] gnu: Add rust-signature-1 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 12/22] gnu: Add rust-ed25519-1 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 13/22] gnu: Add rust-curve25519-dalek-3 Hartmut Goebel
2020-11-21 23:13 ` [bug#44785] [PATCH 14/22] gnu: Add rust-ed25519-dalek-1 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 15/22] gnu: Add rust-dyn-clone-1 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 16/22] gnu: Add rust-bzip2-0.3 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 17/22] gnu: Add rust-base64-0.13 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 18/22] gnu: Add rust-hashlink-0.6 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 19/22] gnu: Add rust-hashbrown-0.9 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 20/22] gnu: Add rust-libsqlite3-sys-0.20 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 21/22] gnu: Add rust-rusqlite: Update to 0.24 Hartmut Goebel
2020-11-21 23:14 ` [bug#44785] [PATCH 22/22] gnu: sequoia: Update to 0.20.0 Hartmut Goebel
2020-11-23  8:50 ` [bug#44785] [PATCH 00/22] Update sequoia " Christopher Baines
2020-11-23 12:27   ` [bug#44785] [PATCH v2 00/22] Update sequoia to 0.20.0 - version 2 Hartmut Goebel
2020-11-23 12:26     ` [bug#44785] [PATCH v2 01/22] gnu: Add rust-rpassword-5 Hartmut Goebel
2020-11-23 12:26     ` [bug#44785] [PATCH v2 02/22] gnu: Add rust-win-crypto-ng-0.2 Hartmut Goebel
2020-11-23 12:26     ` [bug#44785] [PATCH v2 03/22] gnu: Add rust-num-bigint-dig-0.6 Hartmut Goebel
2020-11-23 12:26     ` [bug#44785] [PATCH v2 04/22] gnu: Add rust-memsec-0.6 Hartmut Goebel
2020-11-23 12:26     ` [bug#44785] [PATCH v2 05/22] gnu: Add rust-ena-0.14: Hartmut Goebel
2020-11-23 12:26     ` [bug#44785] [PATCH v2 06/22] gnu: Add rust-lalrpop-util-0.19 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 07/22] gnu: Add rust-lalrpop-0.19 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 08/22] gnu: Add rust-keccak-0.1 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 09/22] gnu: Add rust-merlin-2 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 10/22] gnu: Add rust-signature-derive-1 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 11/22] gnu: Add rust-signature-1 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 12/22] gnu: Add rust-ed25519-1 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 13/22] gnu: Add rust-curve25519-dalek-3 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 14/22] gnu: Add rust-ed25519-dalek-1 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 15/22] gnu: Add rust-dyn-clone-1 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 16/22] gnu: Add rust-bzip2-0.4 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 17/22] gnu: Add rust-base64-0.13 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 18/22] gnu: Add rust-hashlink-0.6 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 19/22] gnu: Add rust-hashbrown-0.9 Hartmut Goebel
2020-11-23 12:27     ` [bug#44785] [PATCH v2 20/22] gnu: Add rust-libsqlite3-sys-0.20 Hartmut Goebel
2020-11-23 12:27     ` [bug#44817] [PATCH v2 21/22] gnu: rust-rusqlite: Update to 0.24 Hartmut Goebel
2020-11-23 12:27     ` Hartmut Goebel [this message]
2020-11-28 12:31     ` [bug#44785] [PATCH v2 00/22] Update sequoia to 0.20.0 - version 2 Christopher Baines
2020-11-28 12:51       ` Hartmut Goebel
2020-11-28 13:26         ` Christopher Baines
2020-11-30  8:21           ` Hartmut Goebel
2020-11-30  9:52             ` Christopher Baines
2020-12-02 20:57               ` bug#44785: " Hartmut Goebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cfabe9c5cb824e5f9247fef353045e3544838f0a.1606131551.git.h.goebel@crazy-compilers.com \
    --to=h.goebel@crazy-compilers.com \
    --cc=44785@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.