GNU bug report logs -
#66868
[PATCH 0/2] Fix passff-host.
Previous Next
Reported by: Clément Lassieur <clement <at> lassieur.org>
Date: Wed, 1 Nov 2023 03:13:01 UTC
Severity: normal
Tags: patch
Done: Clément Lassieur <clement <at> lassieur.org>
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 66868 in the body.
You can then email your comments to 66868 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#66868
; Package
guix-patches
.
(Wed, 01 Nov 2023 03:13:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Clément Lassieur <clement <at> lassieur.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 01 Nov 2023 03:13:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Here are the patches related to this conversation:
https://lists.gnu.org/archive/html/guix-devel/2023-10/msg00262.html
Thanks
Clément Lassieur (2):
gnu: password-store: Add missing ‘tail’ input.
gnu: passff-host: Add explicit references to inputs and remove some.
gnu/packages/browser-extensions.scm | 40 ++++++++++++++---------------
gnu/packages/password-utils.scm | 5 ++--
2 files changed, 22 insertions(+), 23 deletions(-)
base-commit: 26565f1bc8548011bc0e1b821a9a957db1bc2d8f
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66868
; Package
guix-patches
.
(Wed, 01 Nov 2023 03:18:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 66868 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/password-utils.scm (password-store)[arguments]: Add “tail” to
the list of requisites.
[inputs]: Add COREUTILS.
Change-Id: I7f59e6c0abfb5396b9548edaec08d3b0a7c0eb23
---
gnu/packages/password-utils.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 9558da1dee12..385bd6498577 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -678,7 +678,7 @@ (define-public password-store
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(requisites '("getopt" "git" "gpg" "qrencode" "sed"
- "tree" "which" "wl-copy" "xclip"))
+ "tail" "tree" "which" "wl-copy" "xclip"))
(path (map (lambda (pkg)
(dirname (search-input-file
inputs (string-append "/bin/" pkg))))
@@ -699,7 +699,8 @@ (define-public password-store
(separator #f) ;single entry
(files '("lib/password-store/extensions")))))
(inputs
- (list dmenu
+ (list coreutils
+ dmenu
util-linux
git
gnupg
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66868
; Package
guix-patches
.
(Wed, 01 Nov 2023 03:18:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 66868 <at> debbugs.gnu.org (full text, mbox):
This removes ‘coreutils’, ‘grep’, ‘sed’, ‘which’, ‘bash-minimal’ and
‘gnu-make’ inputs, which were only used by the Makefile and
install_host_app.sh. Instead of running install_host_app.sh (through
‘make’) which does a few text substitutions, do the text substitutions with
Scheme code. This simplifies things and avoids unnecessary native inputs.
* gnu/packages/browser-extensions.scm (passff-host)[build-system]: Change to
copy-build-system.
[arguments]: Copy passff.json and passff.py. Do text substitutions on
them rather than running make. Refer to ‘password-store’ and ‘python’ through
inputs rather than directly.
[inputs]: Add PASSWORD-STORE and PYTHON.
Change-Id: I8fdb757516a7c30eae36b15f2a8d91e1445b19a5
---
gnu/packages/browser-extensions.scm | 40 ++++++++++++++---------------
1 file changed, 19 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/browser-extensions.scm b/gnu/packages/browser-extensions.scm
index 99dc7de109c3..ea4043f23b47 100644
--- a/gnu/packages/browser-extensions.scm
+++ b/gnu/packages/browser-extensions.scm
@@ -167,28 +167,26 @@ (define-public passff-host
(sha256
(base32
"1p18l1jh20x4v8dj64z9qjlp96fxsl5h069iynxfpbkzj6hd74yl"))))
- (build-system trivial-build-system)
+ (build-system copy-build-system)
(arguments
- (list
- #:modules '((guix build utils))
- #:builder
- #~(begin
- (use-modules (guix build utils))
- (setenv "PATH" (string-join '(#$coreutils
- #$grep
- #$password-store
- #$python
- #$sed
- #$which) "/bin:" 'suffix))
- (copy-recursively #$source ".")
- (patch-shebang "src/install_host_app.sh"
- (list (in-vicinity #$bash-minimal "bin")))
- (substitute* "src/install_host_app.sh"
- (("(TARGET_DIR_FIREFOX=).*" all var)
- (string-append var #$output "/lib/icecat/native-messaging-hosts"
- "\n")))
- (invoke #$(file-append gnu-make "/bin/make")
- (string-append "VERSION=" #$version) "install-unix"))))
+ (let ((native-manifests "lib/icecat/native-messaging-hosts"))
+ (list
+ #:install-plan
+ `'(("src" ,native-manifests #:include ("passff.json" "passff.py")))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'substitute
+ (lambda _
+ (substitute* "src/passff.json"
+ (("PLACEHOLDER")
+ (format #f "~a/~a/passff.py" #$output #$native-manifests)))
+ (substitute* "src/passff.py"
+ (("_VERSIONHOLDER_") #$version)
+ (("^COMMAND = .*")
+ (format #f "COMMAND = \"~a/bin/pass\"~%"
+ #$(this-package-input "password-store"))))
+ (patch-shebang "src/passff.py")))))))
+ (inputs (list password-store python))
(synopsis "Host app for the WebExtension PassFF")
(description "This piece of software wraps around the zx2c4 pass shell
command. It has to be installed for the PassFF browser extension to work
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66868
; Package
guix-patches
.
(Wed, 01 Nov 2023 03:25:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 66868 <at> debbugs.gnu.org (full text, mbox):
I'll also remove some now useless #:use-modules statements.
bug closed, send any further explanations to
66868 <at> debbugs.gnu.org and Clément Lassieur <clement <at> lassieur.org>
Request was from
Clément Lassieur <clement <at> lassieur.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 Nov 2023 00:13:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 02 Dec 2023 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.