guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The case for moving raw binaries


From: Ludovic Courtès
Subject: Re: The case for moving raw binaries
Date: Thu, 04 Aug 2022 10:54:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Hi,

Liliana Marie Prikler <liliana.prikler@gmail.com> skribis:

> Am Freitag, dem 29.07.2022 um 17:20 -0400 schrieb Philip McGrath:
>> Hi,
>> 
>> [...]
>> I was mildly annoyed recently with several programs that use the
>> ".foo-real" name in their `--help` output, for example:
>> 
>> ```
>> $ guix shell --pure reuse -- reuse -h
>> usage: .reuse-real [-h] [--debug] [--include-submodules]
>> ```
>> 
>> I wondered about just changing `wrap-program` to put the real program
>> at `.real/foo` instead of `.foo-real`. One advantage is that it
>> wouldn't need any special cooperation like setting up an output or an
>> environment variable.
> Even as the one who made the suggestion that issue has an easier
> workaround: Use exec -a to pass the 0th argument unchanged.

That’s already happening:

--8<---------------cut here---------------start------------->8---
$ head -3 < $(guix build reuse)/bin/reuse | tail -1
exec -a "$0" 
"/gnu/store/iwsddc43xqxz4ibncrd7cgv4qjdy0jjd-reuse-1.0.0/bin/.reuse-real" "$@"
--8<---------------cut here---------------end--------------->8---

I’m not sure why it doesn’t have the desired effect though.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]