From: Ryan Prior via Guix-patches via <guix-patches@gnu.org>
To: "45284@debbugs.gnu.org" <45284@debbugs.gnu.org>
Subject: [bug#45284] Double wrapper for protonvpn
Date: Wed, 23 Dec 2020 03:42:48 +0000 [thread overview]
Message-ID: <hi1hZzTSBsgxKsytOVex922VrDUMxlzSWf782iFOzJJ9rs8OEB_ZVC--I5dxg5-6nj7z3TWSCCwhOyaAfWkcP7Hy-4nl750gPjGVAXvFmBA=@protonmail.com> (raw)
In-Reply-To: <20201217045258.3365-1-rprior@protonmail.com>
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
Hi there! This patch updates the protonvpn-cli package to use a wrapper, so now it doesn't propagate anything.
I ran into a hitch when wrapping the program the same way it's typically done didn't work. I was getting a "bad interpreter" error from the kernel when I ran the program. Digging into it, I discovered it's because the program was double-wrapped, and the second wrapping garbled the work done by the first wrapping.
Investigating further, I determined the messiness stems from python-build-system automatically wrapping my output for me to set the PYTHONPATH. From my searching in gnu/packages/python-* sources, there isn't much explicit wrapping in python land.
So y'all know me, I decided to try the dumbest possible thing first: I wrapped the wrapper.
It works fine. But you end up with a situation like:
- invoke protonvpn
- which sets PYTHONPATH and invokes .protonvpn-real
- which sets PATH and calls ..protonvpn-real-real
Additionally, in the build output we have a "wrap" phase and then a "wrap-wrapper" phase.
So what do you think? Is my dumb solution that works thus not dumb, and we should ship it? Or is there a better way of composing wrappers so that I'm not creating this billiards game situation with the entrypoint?
Cheers,
Ryan
[-- Attachment #2: Type: text/html, Size: 1520 bytes --]
next prev parent reply other threads:[~2020-12-23 3:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 4:53 [bug#45284] [PATCH] gnu: protonvpn-cli: Update to 2.2.6 Ryan Prior via Guix-patches via
2020-12-17 4:57 ` [bug#45284] Propagated packages Ryan Prior via Guix-patches via
2020-12-17 9:55 ` Efraim Flashner
2020-12-23 3:38 ` [bug#45284] [PATCH] gnu: protonvpn-cli: Stop propagating inputs Ryan Prior via Guix-patches via
2020-12-24 21:20 ` Leo Famulari
2020-12-23 3:42 ` Ryan Prior via Guix-patches via [this message]
2020-12-24 21:21 ` bug#45284: Double wrapper for protonvpn Leo Famulari
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='hi1hZzTSBsgxKsytOVex922VrDUMxlzSWf782iFOzJJ9rs8OEB_ZVC--I5dxg5-6nj7z3TWSCCwhOyaAfWkcP7Hy-4nl750gPjGVAXvFmBA=@protonmail.com' \
--to=guix-patches@gnu.org \
--cc=45284@debbugs.gnu.org \
--cc=rprior@protonmail.com \
/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.