* bug#67545: wrap-program gives different argv[0] for Python scripts
@ 2023-11-30 13:06 Rikard Nordgren
2023-12-12 4:23 ` Maxim Cournoyer
0 siblings, 1 reply; 2+ messages in thread
From: Rikard Nordgren @ 2023-11-30 13:06 UTC (permalink / raw)
To: 67545
For example the meld package is using wrap-program and the name of the
actual meld executable will be .meld-real. The idea is that the -a
option to exec in the wrapper script should change the name of argv[0],
but for Python scripts this doesn't work. This means that when doing
"meld --version" it gives ".meld-real 3.22.0" instead of the expected
"meld 3.22.0". Any ideas on how this could be fixed?
När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/
E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#67545: wrap-program gives different argv[0] for Python scripts
2023-11-30 13:06 bug#67545: wrap-program gives different argv[0] for Python scripts Rikard Nordgren
@ 2023-12-12 4:23 ` Maxim Cournoyer
0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2023-12-12 4:23 UTC (permalink / raw)
To: Rikard Nordgren; +Cc: 67545
Hi,
Rikard Nordgren <rikard.nordgren@farmaci.uu.se> writes:
> For example the meld package is using wrap-program and the name of the
> actual meld executable will be .meld-real. The idea is that the -a
> option to exec in the wrapper script should change the name of argv[0],
> but for Python scripts this doesn't work. This means that when doing
> "meld --version" it gives ".meld-real 3.22.0" instead of the expected
> "meld 3.22.0". Any ideas on how this could be fixed?
We already have a solution, in the form of 'wrap-script'. I have an old
series changing pyproject-build-system to use it instead of wrap-program
for core-updates, perhaps I should revive it.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-12 4:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-30 13:06 bug#67545: wrap-program gives different argv[0] for Python scripts Rikard Nordgren
2023-12-12 4:23 ` Maxim Cournoyer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).