GNU bug report logs - #41964
[PATCH 0/2] Add pass-tomb.

Previous Next

Package: guix-patches;

Reported by: Brice Waegeneire <brice <at> waegenei.re>

Date: Sat, 20 Jun 2020 15:10:01 UTC

Severity: normal

Tags: patch

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41964 in the body.
You can then email your comments to 41964 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#41964; Package guix-patches. (Sat, 20 Jun 2020 15:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brice Waegeneire <brice <at> waegenei.re>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 20 Jun 2020 15:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] Add pass-tomb.
Date: Sat, 20 Jun 2020 17:09:12 +0200
Brice Waegeneire (2):
  gnu: tomb: Add 'getent' to PATH.
  gnu: Add 'pass-tomb'.

 gnu/packages/crypto.scm         |  3 ++-
 gnu/packages/password-utils.scm | 41 +++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)

-- 
2.26.2





Information forwarded to guix-patches <at> gnu.org:
bug#41964; Package guix-patches. (Sat, 20 Jun 2020 15:12:02 GMT) Full text and rfc822 format available.

Message #8 received at 41964 <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: 41964 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: tomb: Add 'getent' to PATH.
Date: Sat, 20 Jun 2020 17:11:10 +0200
* gnu/packages/crypto.scm (tomb)[arguments]: In 'wrap' phase add
'getent' to the PATH.
---
 gnu/packages/crypto.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index be8f8b9f05..5cee32b0bb 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy <at> bioneland.org>
 ;;; Copyright © 2020 Marius Bakke <mbakke <at> fastmail.com>
 ;;; Copyright © 2020 Jakub Kądziołka <kuba <at> kadziolka.net>
+;;; Copyright © 2020 Brice Waegeneire <brice <at> waegenei.re>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -389,7 +390,7 @@ no man page, refer to the home page for usage details.")
                                  (error "program not found:" program)))
                            '("seq" "mkfs.ext4" "pinentry"
                              "gpg" "cryptsetup" "gettext" "lsof"
-                             "qrencode" "steghide" "findmnt")))))
+                             "qrencode" "steghide" "findmnt" "getent")))))
                #t)))
          (delete 'check)
          (add-after 'wrap 'check
-- 
2.26.2





Information forwarded to guix-patches <at> gnu.org:
bug#41964; Package guix-patches. (Sat, 20 Jun 2020 15:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 41964 <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: 41964 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add 'pass-tomb'.
Date: Sat, 20 Jun 2020 17:11:11 +0200
* gnu/packages/password-utils.scm (pass-tomb): New variable.
---
 gnu/packages/password-utils.scm | 41 +++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 6bd1e94c91..c356dba309 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -1210,3 +1210,44 @@ desired length.  It can also generate their corresponding hashes for a given
 encryption algorithm if so desired.")
       (home-page "https://github.com/khorben/makepasswd")
       (license license:gpl3))))
+
+(define-public pass-tomb
+  (package
+    (name "pass-tomb")
+    (version "1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/roddhjav/pass-tomb")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qj7vx7svk1ljwihj3kv310k17mafnf919n30n4qn1yxmmsvj924"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags
+       (let ((out (assoc-ref %outputs "out")))
+         (list (string-append "PREFIX=" out)
+               (string-append "BASHCOMPDIR=" out "/etc/bash_completion.d")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'set-tomb-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((tomb (assoc-ref inputs "tomb")))
+               (substitute* "tomb.bash"
+                 ((":-tomb")
+                  (string-append ":-" tomb "/bin/tomb"))))))
+         (delete 'configure)
+         ;; No test suite
+         (delete 'check))))
+    (inputs
+     `(("tomb" ,tomb)))
+    (home-page "https://github.com/roddhjav/pass-tomb")
+    (synopsis "Pass extension keeping the tree of passwords encrypted")
+    (description "Pass-tomb provides a convenient solution to put your
+password store in a Tomb and then keep your password tree encrypted when you
+are not using it.  It uses the same GPG key to encrypt passwords and tomb,
+therefore you don't need to manage more key or secret.  Moreover, you can ask
+pass-tomb to automatically close your store after a given time.")
+    (license license:gpl3+)))
-- 
2.26.2





Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Sat, 11 Jul 2020 21:52:01 GMT) Full text and rfc822 format available.

Notification sent to Brice Waegeneire <brice <at> waegenei.re>:
bug acknowledged by developer. (Sat, 11 Jul 2020 21:52:02 GMT) Full text and rfc822 format available.

Message #16 received at 41964-done <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Brice Waegeneire <brice <at> waegenei.re>
Cc: 41964-done <at> debbugs.gnu.org
Subject: Re: [bug#41964] [PATCH 0/2] Add pass-tomb.
Date: Sat, 11 Jul 2020 23:51:23 +0200
Le Sat, 20 Jun 2020 17:09:12 +0200,
Brice Waegeneire <brice <at> waegenei.re> a écrit :

> Brice Waegeneire (2):
>   gnu: tomb: Add 'getent' to PATH.
>   gnu: Add 'pass-tomb'.
> 
>  gnu/packages/crypto.scm         |  3 ++-
>  gnu/packages/password-utils.scm | 41
> +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+),
> 1 deletion(-)
> 

Pushed as 12d69fc5745759b11d6e19cdcdad64d34ecd9dd4 and
36a1925f21ee6787d8b80025f1b96238309f4b96.

I tried to enable tests in pass-tomb (because there were actually
tests) but it didn't work because it checks there is no swap partition,
and tries to use /tmp/zsh which is not accessible in the build
container.  One of the test dependencies was kcov, which I added in a
separate patch, but ended up not using, as it's only required for tests
and we disable them.

Note that the usual way to disable tests is by using the argument

#:tests? #f

instead of deleting the check phase. I've fixed that before pushing.

Thanks for working on this!




Information forwarded to guix-patches <at> gnu.org:
bug#41964; Package guix-patches. (Fri, 17 Jul 2020 18:53:01 GMT) Full text and rfc822 format available.

Message #19 received at 41964 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Brice Waegeneire <brice <at> waegenei.re>
Cc: 41964 <at> debbugs.gnu.org
Subject: Re: [bug#41964] [PATCH 2/2] gnu: Add 'pass-tomb'.
Date: Fri, 17 Jul 2020 20:52:43 +0200
[Message part 1 (text/plain, inline)]
On Sat, 20 Jun 2020 17:11:11 +0200
Brice Waegeneire <brice <at> waegenei.re> wrote:

> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'set-tomb-path
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (let ((tomb (assoc-ref inputs "tomb")))
> +               (substitute* "tomb.bash"
> +                 ((":-tomb")
> +                  (string-append ":-" tomb "/bin/tomb"))))))

Phase should end in #t.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#41964; Package guix-patches. (Fri, 17 Jul 2020 18:54:02 GMT) Full text and rfc822 format available.

Message #22 received at 41964 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Brice Waegeneire <brice <at> waegenei.re>
Cc: 41964 <at> debbugs.gnu.org
Subject: Re: [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH.
Date: Fri, 17 Jul 2020 20:53:00 +0200
[Message part 1 (text/plain, inline)]
LGTM!
[Message part 2 (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Aug 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.