From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 qMWOKz9P5GIzzgAAbAwnHQ (envelope-from ) for ; Fri, 29 Jul 2022 23:21:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YJStKz9P5GIJSwAA9RJhRA (envelope-from ) for ; Fri, 29 Jul 2022 23:21:03 +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 8BF7F7B18 for ; Fri, 29 Jul 2022 23:21:03 +0200 (CEST) Received: from localhost ([::1]:40462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHXPq-0005le-Me for larch@yhetil.org; Fri, 29 Jul 2022 17:21:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHXPK-0005ks-5D for guix-devel@gnu.org; Fri, 29 Jul 2022 17:20:30 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:37569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHXPI-0004p0-6p for guix-devel@gnu.org; Fri, 29 Jul 2022 17:20:29 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 5D7CD320030E; Fri, 29 Jul 2022 17:20:26 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute4.internal (MEProxy); Fri, 29 Jul 2022 17:20:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm3; t=1659129625; x=1659216025; bh=Szt9KJ8R/ZS8WEOEc01kf5bfh ch46dCfIOBYuHRrtLU=; b=tpZouVMqDxPMP56YNx3lJtvXrN/ulj9ByeplHATmB lP9cNcy/GzJAbUCQd5VB3+6S43xEO3JVGDtKd76LhOsokEADVNoshoA7+jdOQ4mA PbcqWFESVWlDC/+yPRzAvtDLJzjRNIfMIFiZ0E3sFscdD+xh3itKOoqjaiFxn1jF py+fKfxgZbjClwg7MxGkBR5L6msNRuH3M2O1+h6EpjhlL6TOUFxM/ydx1oCtkvCD mwgZi0GLsdiA5pyje001QmdBWbcu3fUHOHOWjtQ8EGMy/ktuNITc78vXNYspxsic Jfr9zcCqxf6LeMSx6Zfzq0l/Td9vN19QnpEdgEiGnoKRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1659129625; x=1659216025; bh=S zt9KJ8R/ZS8WEOEc01kf5bfhch46dCfIOBYuHRrtLU=; b=iXD2Cu1QXwRdkH55p F1/PDi59o8E3MJ7aSFS6l+b9BCstu+AzrGNIE5NBlvqC12pAjY/XPoeyCmRSYlsH tXYaf2kZ72C68isk72kMmUx4Bu/BOwyp8U1toipx52/Qq2l5upM172obNJMts96E /b9q83pFzJe1C4Lf2CERrpbq4d0N64ipsQa3YVv40FNJ/8Er0391kDlG+F9o/0lv zPy5qCitRL5DP2A4luKykTSGUTM3GwIdWJtwVB4+2aooNsSa6Z3s++eWNI5qM46N XsHHBzlfW+rbNmvQpq9PwKBr/kqCl5hq0hTp+c0sC2EQcpDMHB7Crtc6e6RKNvmy dD3XQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddujedgudeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfr hhhilhhiphcuofgtifhrrghthhdfuceophhhihhlihhpsehphhhilhhiphhmtghgrhgrth hhrdgtohhmqeenucggtffrrghtthgvrhhnpeevffefleefueeujeegleegjeelgfehgefh teetjeejjedvgedthffggfegfeeihfenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtgho mh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9DB41C6008B; Fri, 29 Jul 2022 17:20:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-758-ge0d20a54e1-fm-20220729.001-ge0d20a54 Mime-Version: 1.0 Message-Id: <21016dde-9075-43b2-a539-e72967f55603@www.fastmail.com> In-Reply-To: <34fac706c704d5ab01a067c20f0d1407a1f7e565.camel@gmail.com> References: <615054d08116af35720a08a6fdb836e84cf0e873.camel@gmail.com> <65282c9d3d91b215499ab792604e11d0127e5215.camel@telenet.be> <228ccb21e58b37a659568787af29adaa69d39c2e.camel@gmail.com> <43be80d161b85330aebab5da7de527c1e4670557.camel@telenet.be> <34fac706c704d5ab01a067c20f0d1407a1f7e565.camel@gmail.com> Date: Fri, 29 Jul 2022 17:20:04 -0400 From: "Philip McGrath" To: "Liliana Marie Prikler" , "Maxime Devos" , guix-devel@gnu.org Subject: Re: The case for moving raw binaries Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.25; envelope-from=philip@philipmcgrath.com; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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=1659129663; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Szt9KJ8R/ZS8WEOEc01kf5bfhch46dCfIOBYuHRrtLU=; b=DIJupkYF9ZJY+bZ6RhCfnoVDjeUz4+B6MdiJ1QYweZ9paHRE5J8f4FSNPcZgkUBWovJJv2 I7nFceGM3Ss8Zl0Y4ZC4FNKPrtNfDeSr0aHhU++KqkuSijyTbVHRnd2iJfeLRgdW284jD6 Zokd20bbbw4vmPeDRwXgE6bhiXqlZrp/m8qdGT/1/2OP5xCPZWKRlrYzxP+ccBsj1qRObJ uWOlL9uIm5JzQnhQf6XuBUQZlpAFQxL1+fk4eIwscMvGNnWj9Jk3Kgn1iM+FvA8UpiQMoH GZ/CExEdC47EcTq13QdhfuZIixuAJcBpmVdokFkVVwsCzOZYHTkco4PosFC9kA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659129663; a=rsa-sha256; cv=none; b=uV9KoSMn54vLY/hFc6pV6WB/7aXnDKBZQy7auxz3O6KJ5zVCkqGuVDB1/OBKHVe6ik1D62 esSLIf3Jx+NODCMAFAUBz0B0ERzshq83dj6Eb9hGwVnQFHhiTI7A1aLnABoH85LXmT2FQ7 A2hHVdvEa33NAvDlBVna1Am/P49cZuNwLJ7dUzkRK8vFTUW/8Pg02XjxOuaPTT3hz1gFM3 Hrqe2git2mWiMbcr8LCxY+OPjvK4Z8Qu7ibhJHWSCX7DVQ6LXZ+/QMfUxL9qR0hkbviK4y /Xms58AO7UFAE3WAMDorzPkN7nsa/bC3SsM6maGqw1k7YtP1UgC5UgSMLndURg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b=tpZouVMq; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=iXD2Cu1Q; dmarc=none; 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: 2.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b=tpZouVMq; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=iXD2Cu1Q; dmarc=none; 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: 8BF7F7B18 X-Spam-Score: 2.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: mBR7lomBrgz4 Hi, On Fri, Apr 29, 2022, at 12:59 PM, Liliana Marie Prikler wrote: > Am Freitag, dem 29.04.2022 um 11:27 +0200 schrieb Maxime Devos: >> [...] >>=20 >> I thought that >>=20 >> =C2=A0 (if already-wrapped? >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; PROG is already a wrapper: add the = new "export VAR=3DVALUE" >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; lines just before the last line. >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [...]) >>=20 >> in 'wrap-program' would avoid creating ..foo-real-real? > You are correct, I was going on old info that I haven't checked since. > > This leaves us with >> That said, the proposed new behaviour seems reasonable to me -- >> "pidof emacs" would then actually find Emacs. > and the annoyance that "." shell-completes to all the wrapped binaries. > For the former, there is IIRC still a bug in tramp (and I'm sure other > emacs packages), because a process name doesn't match the expected > regexp. > > As for where to move things, I'm starting to lean a little closer > towards having an own output. That way, we don't need to worry about > stuff from different directories (e.g. bin and sbin) shadowing each > other (even though that shouldn't occur), but more importantly, if we > need to copy data into rawbin so that it's correctly resolved, we can > do that. The only thing that doesn't quite work is relative resolution > of commands, which would go through the wrapper-less binaries instead. > However, given that the wrapperless binary is invoked from a wrapped > binary, I am 73.69% certain, that this ought not to create too much of > a problem w.r.t. the set environment variables. > > WDYT? I was mildly annoyed recently with several programs that use the ".foo-r= eal" 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 n= eed any special cooperation like setting up an output or an environment = variable. -Philip