GNU bug report logs -
#53880
[PATCH 0/2] Fix build of protonvpn-cli
Previous Next
Reported by: Josselin Poiret <dev <at> jpoiret.xyz>
Date: Tue, 8 Feb 2022 18:04:01 UTC
Severity: normal
Tags: patch
Done: Brice Waegeneire <brice <at> waegenei.re>
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 53880 in the body.
You can then email your comments to 53880 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#53880
; Package
guix-patches
.
(Tue, 08 Feb 2022 18:04:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Josselin Poiret <dev <at> jpoiret.xyz>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 08 Feb 2022 18:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
These two patches fix the build failure of protonvpn-cli. The first
one fixes the wrap target, since the wrapper code now properly handles
re-wrapping a wrapped binary. The second removes the sanity-check
phase as the main entry point tries to create a directory under ~user,
which fails, and setting HOME=/tmp will not work since expanding ~user
uses the passwd database.
Best,
Josselin Poiret (2):
gnu: protonvpn-cli: Do not try to wrap the wrapper.
gnu: protonvpn-cli: Remove sanity-check phase.
gnu/packages/vpn.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53880
; Package
guix-patches
.
(Tue, 08 Feb 2022 18:06:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 53880 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/vpn.scm (protonvpn-cli)[arguments]: Try to wrap the
original program, and not the wrapper, as wrap-program handles that
properly.
---
gnu/packages/vpn.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index 7f1d10d1eb..150dfa31b5 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -753,7 +753,7 @@ (define-public protonvpn-cli
;; Wrap entrypoint with paths to its hard dependencies.
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((entrypoint (string-append (assoc-ref outputs "out")
- "/bin/.protonvpn-real")))
+ "/bin/protonvpn")))
(wrap-program entrypoint
#:sh (search-input-file inputs "bin/bash")
`("PATH" ":" prefix
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53880
; Package
guix-patches
.
(Tue, 08 Feb 2022 18:06:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 53880 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/vpn.scm (protonvpn-cli)[arguments]: Remove sanity-check
phase.
---
gnu/packages/vpn.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index 150dfa31b5..170ec1b663 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -768,7 +768,11 @@ (define-public protonvpn-cli
"openvpn"
"procps"
"which")))))
- #t)))))
+ #t))
+ ;; The `protonvpn' script wants to write to `~user' to initialize its
+ ;; logger, so simply setting HOME=/tmp won't cut it. Remove
+ ;; sanity-check.
+ (delete 'sanity-check))))
(native-inputs
(list python-docopt))
(inputs
--
2.34.0
Reply sent
to
Brice Waegeneire <brice <at> waegenei.re>
:
You have taken responsibility.
(Sat, 12 Feb 2022 13:22:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Josselin Poiret <dev <at> jpoiret.xyz>
:
bug acknowledged by developer.
(Sat, 12 Feb 2022 13:22:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 53880-done <at> debbugs.gnu.org (full text, mbox):
Hello Josselin,
Josselin Poiret <dev <at> jpoiret.xyz> writes:
> Josselin Poiret (2):
> gnu: protonvpn-cli: Do not try to wrap the wrapper.
> gnu: protonvpn-cli: Remove sanity-check phase.
>
> gnu/packages/vpn.scm | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
Thank you for the patch, it fixes <https://bugs.gnu.org/53855>. I've build the
package and ran the binary succesfully. It's pushed as
9c8f68f4796f23c11173fa3f90c69bc85b224ac6 with an added copyright header.
Cheers,
- Brice
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 13 Mar 2022 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.