From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qOrGMhD662JXGQEAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 18:55:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IGbKMRD662LeWAEAG6o9tA (envelope-from ) for ; Thu, 04 Aug 2022 18:55:44 +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 6BCC770F9 for ; Thu, 4 Aug 2022 18:55:44 +0200 (CEST) Received: from localhost ([::1]:52560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJe8N-0000h3-LM for larch@yhetil.org; Thu, 04 Aug 2022 12:55:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJe6n-0007f8-Jc for guix-devel@gnu.org; Thu, 04 Aug 2022 12:54:05 -0400 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:33500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJe6k-0004Rs-OC; Thu, 04 Aug 2022 12:54:05 -0400 Received: by mail-ed1-x541.google.com with SMTP id b96so489762edf.0; Thu, 04 Aug 2022 09:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=MfaK6IRRg32D4zvteDnKRLHnrdaMX8xp1Zqunr5DkhA=; b=GwSph+4MAcDvNFcpqkmBGmtKUtN+q8uIFLYQfEDPIb6kiirD1ZuWK0ESawyLZhEeak asyrjrs4w6ylQ2Lt0uij0MvOGapOQ1eF5hAB85fKmrNlDj9imL5gIQe+LIMbkIaeVrWM 4Yv75Trn8ChuToU1yQ9hjqrq8NlJQMzO2yYyTZcTv1yGMqj5bx5lU1eXYOvF/Mhr5k9p pyXAXhQjkHJLXQcoUWu/eEaUt4weUtjnIGPHPNX3dxYY9R81X/XFBAOoaYnlQY/176qq HjXxrwZskO5zWSyq6APfpL2IsdAax/byAJevcU9ptKzm15UKsbG7I9fDY4NWxV3FjZIf W0EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=MfaK6IRRg32D4zvteDnKRLHnrdaMX8xp1Zqunr5DkhA=; b=3MDB1ZoI65MJYVgdv+5N6REIXkaO0Xb36rNX12pL9JiKENHKpQw018wmHdXnCkYmNK ra7conEoRzbN0c1lRTWzQAfhQaRopNqJlbXlL7SzlN9BWP/EsSde7kuORO6cRmjs7aD8 FgulRw9ss1pRC2uQXTqGrxM5qIOvcynMoJnS3SjvXI1Je5I4AEvU3QiQZabESXPfObis o++0cLY+3eVKMNhMwoBDChql7y4pOU1fPMGOr+As4PIWp1QydpaDxoH653qcd38KzGIM QzRmLajd0pyQNr/fbo5Yz75L4wLk1jycewIfh9F4r4O32AW1xeVucS7Rsero2WAsWXf5 kOaQ== X-Gm-Message-State: ACgBeo06691ZA6iZ/l5qDWK4Us0fH7ZwSsXTsqjY1OYOb5ptQgm7f13g 8cH3+MCVKLJID9A14p8FxVOA4LlRvVk= X-Google-Smtp-Source: AA6agR58QUl39nnB+Nr6FrEG7Wdo+sUSBh0MwcdTNH8glvfM2If2ORAj1rR8fC85m3BbyWpDeTM0kg== X-Received: by 2002:aa7:cb87:0:b0:43b:e650:6036 with SMTP id r7-20020aa7cb87000000b0043be6506036mr2974141edt.350.1659632039831; Thu, 04 Aug 2022 09:53:59 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id lb22-20020a170907785600b0072f9e7ce354sm525348ejc.139.2022.08.04.09.53.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 09:53:59 -0700 (PDT) Message-ID: <6f0f00cfa9f95af8f226c508c2074792bbbf5c89.camel@gmail.com> Subject: Re: The case for moving raw binaries From: Liliana Marie Prikler To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Cc: Philip McGrath , Maxime Devos , guix-devel@gnu.org Date: Thu, 04 Aug 2022 18:53:58 +0200 In-Reply-To: <87czdgpewg.fsf@gnu.org> 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> <87czdgpewg.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::541; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x541.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1659632144; 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=MfaK6IRRg32D4zvteDnKRLHnrdaMX8xp1Zqunr5DkhA=; b=ZbhigSX0+jeAPh+rFcxWDz2qoVvxs2q/lGSRn3arfAIRxODKlb+UAv3pzKa2ymvYQ+VEFl 7cCPSbxmhB4UnX/x2NbZzRzElIIG/gKfg5OiSfRKSr4OGv2Pts7S7Csj8fVkPdLKcuhhpq vAqRD4DLAbq9toD+2vHMmI+AABE+euJA56cGTMtTHqwf7+W/pCI6dXt8jkMBjUHbM+dRsC Qv1zBQLwUDxtQ4f5uI+YOKPgM6KwxcohtTrAfqRHJiLfOFhEezoYhWSctJgHhnKMebvFG1 634/hTVhX+6hS2YpM9k/17ZTzwzLGPlr9IkBHVcuRwJq6Ak6NKzqWu7JD+JMJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659632144; a=rsa-sha256; cv=none; b=jdA8PqbVPf+CFHjPm8nBmiy+6QDxp/tRXKFzshPWuX/9Jpo/5pM+mggvVw5IXhMgvF+FzQ 9m0Q7HioCaWod4qpF0/xOiDzkWvR5XeeVUankp/jNCy0nxzzOtjJNcO0y4taypMf/Lion3 hxCz6jmdLc+Rrvjs01ulowi8sPkWMtIOmZcE/u7Rr9uIp+Tp4VoW0CrApXm019vpx+zfc2 u1gvE3PvHCkiSwY3CFJhy+/ka+kxDS6z39NqgrI84cMCvyjitF/b5WwLWAcl5ta9uyh29H sjAfTdByL+w9uGLyxNHNEvcuVEBUHlEC4ElvMNsIRNgEOXffBRax0fftyybswQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GwSph+4M; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GwSph+4M; dmarc=pass (policy=none) header.from=gmail.com; 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: 6BCC770F9 X-Spam-Score: -3.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: KEP1YLM9278O Am Donnerstag, dem 04.08.2022 um 10:54 +0200 schrieb Ludovic Courtès: > Hi, > > Liliana Marie Prikler 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. I found out: it's because reuse is a python script and the exec -a hack stops working because python initializes sys.args using the filename. Cheers