From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SHGgDyqK62JHhwAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 10:58:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MG1ODyqK62JAaQEAauVa8A (envelope-from ) for ; Thu, 04 Aug 2022 10:58:18 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0055029138 for ; Thu, 4 Aug 2022 10:58:17 +0200 (CEST) Received: from localhost ([::1]:42184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJWgL-0006sq-0C for larch@yhetil.org; Thu, 04 Aug 2022 04:58:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJWcu-0004oj-4s for guix-devel@gnu.org; Thu, 04 Aug 2022 04:54:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJWcs-0000Hk-K7; Thu, 04 Aug 2022 04:54:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=DM7mkMzMbPWeddTD5DL1JJQCsxBZr4VS5m2YC7Wzr6A=; b=PPqpIE7Rhj7uMYhNes4E WNkgAB21yQpuyQ4sLTortO61m4WpYdShZUBqRRUtxHj/72LqcLRYUn8fEzqO42AuL0gEoWdRcmtKZ f4Bqew+hCSKHacYogtIt18QC3bse4hq0pppj/wbIkzNO7lfNbFM50778lygVhpBTxiN16EB5d9kSl Sm4pz7OmUun5+296au9GxvYl+Ol99ySoVWlLQngzGOMae02DDPWTUV+LxzsMYya5M1wnTDYzOVoO+ c8ARADK2T/N6v2lFa5TpyJ8/9OlvCZd/0803s3APyT/Ljoh5TaUHVEpB+CtzGKOO9pRoynxP77e31 e8fCoeKJpiKINQ==; Received: from [193.50.110.201] (port=35942 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJWcs-0002LF-5C; Thu, 04 Aug 2022 04:54:42 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Liliana Marie Prikler Cc: Philip McGrath , Maxime Devos , guix-devel@gnu.org Subject: Re: The case for moving raw binaries References: <615054d08116af35720a08a6fdb836e84cf0e873.camel@gmail.com> <65282c9d3d91b215499ab792604e11d0127e5215.camel@telenet.be> <228ccb21e58b37a659568787af29adaa69d39c2e.camel@gmail.com> <43be80d161b85330aebab5da7de527c1e4670557.camel@telenet.be> <34fac706c704d5ab01a067c20f0d1407a1f7e565.camel@gmail.com> <21016dde-9075-43b2-a539-e72967f55603@www.fastmail.com> <13b8c0fc0e22400a0b455a828f31166c4986b132.camel@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 17 Thermidor an 230 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour du Lin X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 04 Aug 2022 10:54:39 +0200 In-Reply-To: <13b8c0fc0e22400a0b455a828f31166c4986b132.camel@gmail.com> (Liliana Marie Prikler's message of "Sat, 30 Jul 2022 08:11:22 +0200") Message-ID: <87czdgpewg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659603498; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DM7mkMzMbPWeddTD5DL1JJQCsxBZr4VS5m2YC7Wzr6A=; b=q5b10QqfXRV3fAr9AExlIS9ngSoMkgcyfuSRUAVXJw5ZxzmmrEDb8ycYAGz51FoSbXZGrS wHNLyYfAz3vV6cty10J4WcwkEfNJhwgFHLpugPhJX3fZzHopoHB+gf5IHdhUP/2DrcVA0D MRows5NyiJ/Q1ODXTnl4CkjD36ew+I5Y7EUVa0BzJ5kLo8X0NU60vxNHWm8IRxgh1dKQli aST4O8oYgnrxlr5CD7boFOZoWl3VPRAdwFTgE+7ocBb2/bZYFLFkADdZOG2Zp52HeeGAAi VAjoxNXXCIQdCvdk2zVjJuT8D9VhWOjzOnn82JeuzKV3Sgm2pibopZuzY991DQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659603498; a=rsa-sha256; cv=none; b=S7082f7KkisOSR8I/662n4tAUfeVkvAepySG6t1zpJ07Fo+GpQ7NIVOTdOSubCqfge/E7w YbQcWyjcN/k9pQ5Qo3c4I0Qv2toU+9jD6uQELsQsQhYcGQJ+R6CXOdjZjh7rlUVo1Fo43f IC5JNIWQaYPj7c6lla7W5rXY5ETCVbidzoSyrcJiNgJryfQ5l5cekC30ncrds9LA968mTC FyhJ0wvhYEf/icwhCQ6JvMRUVIX2NbZmYrKiqzVZppj6Si950inaUVTLJmE8667z5pdRVL S7ANAem9bBlvoP4xBmRSmZVy6q0YpN8qTTpAnXwSXx3icTyNEdT0Nl1p6LQ2+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=PPqpIE7R; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=PPqpIE7R; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0055029138 X-Spam-Score: -6.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y0MgNOrISK3A Hi, Liliana Marie Prikler skribis: > Am Freitag, dem 29.07.2022 um 17:20 -0400 schrieb Philip McGrath: >> Hi, >>=20 >> [...] >> I was mildly annoyed recently with several programs that use the >> ".foo-real" name in their `--help` output, for example: >>=20 >> ``` >> $ guix shell --pure reuse -- reuse -h >> usage: .reuse-real [-h] [--debug] [--include-submodules] >> ``` >>=20 >> 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=E2=80=99s 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=E2=80=99m not sure why it doesn=E2=80=99t have the desired effect though. Ludo=E2=80=99.