GNU bug report logs - #40039
'wrap-script' introduces spurious argument

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ludovic Courtès <ludovic.courtes@HIDDEN>; dated Thu, 12 Mar 2020 14:27:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 40039 <at> debbugs.gnu.org:


Received: (at 40039) by debbugs.gnu.org; 9 Sep 2021 19:03:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 09 15:03:06 2021
Received: from localhost ([127.0.0.1]:36271 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mOPKE-00034i-AE
	for submit <at> debbugs.gnu.org; Thu, 09 Sep 2021 15:03:06 -0400
Received: from mail2.protonmail.ch ([185.70.40.22]:53017)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <attila@HIDDEN>) id 1mOPKA-00033X-T0
 for 40039 <at> debbugs.gnu.org; Thu, 09 Sep 2021 15:03:05 -0400
Date: Thu, 09 Sep 2021 19:02:51 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name;
 s=protonmail2; t=1631214175;
 bh=xslX4J8T0uv/v7t8uh0uXDJBV1T1PAhGls4af/nkx6k=;
 h=Date:To:From:Reply-To:Subject:From;
 b=Ct89Dj+0XoaDFgoTjGjNjFEU8ZRPFFAzalJ62dLbE6Y+SKnJSh0VpSF9tW4e+X4IB
 AfMOogKUu3SLknrECB2ahkkWgAQqSgui821pHdYTFtkYAZPpqv2CMeYllzI+hvGyDS
 65oGfb//ksWD+5h6xjmPT3LQLUZvtToee4Pc9N5CyqwxmYqmCFGrl9vtrQH8QZft37
 fWF72Babkr0sq1IyHkBgHJDt4J6Z7jqCBWHAmQtVgAmuWPHwprPEkiuMgqxhkIfvMm
 aduBfyy2i0GcogddlP4jYpVWYDvcOSt530CuRBWGPg0dZwolS4YGEpduJhAXEKU5Sq
 CeWfhHllpRsgw==
To: "40039 <at> debbugs.gnu.org" <40039 <at> debbugs.gnu.org>
From: Attila Lendvai <attila@HIDDEN>
Subject: (No Subject)
Message-ID: <17aao-2MRYlPVbMhh6TI3GVeht_ewLvkBD4MB9OJpuWQQf-OOa8zJRTZuzOAugdQ9MvutN5CEDq0TwDpcoHSgtTzaV5iy-HWIN9aoTLZVbg=@lendvai.name>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="b1_KH4kVhBLJnL3p1kOe7rKz8Mzd0NjOvhFc9DLQQi0Q"
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: any ETA on this fix? i think i need it. i tried to add a
 `wrap-script-or-program`
 to `python-build-system`: attempt to use `wrap-scipt`,
 and in case of a `no-interpreter-found`
 error fall back to `wrap-program`. (motivated by trezor-agent r [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 2.0 SLIGHTLY_BAD_SUBJECT   Subject contains something slightly spammy
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_MSPIKE_H4      RBL: Very Good reputation (+4)
 [185.70.40.22 listed in wl.mailspike.net]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 HTML_MESSAGE           BODY: HTML included in message
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
X-Debbugs-Envelope-To: 40039
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Attila Lendvai <attila@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

This is a multi-part message in MIME format.

--b1_KH4kVhBLJnL3p1kOe7rKz8Mzd0NjOvhFc9DLQQi0Q
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

YW55IEVUQSBvbiB0aGlzIGZpeD8gaSB0aGluayBpIG5lZWQgaXQuCgppIHRyaWVkIHRvIGFkZCBh
IGB3cmFwLXNjcmlwdC1vci1wcm9ncmFtYCB0byBgcHl0aG9uLWJ1aWxkLXN5c3RlbWA6IGF0dGVt
cHQgdG8gdXNlIGB3cmFwLXNjaXB0YCwgYW5kIGluIGNhc2Ugb2YgYSBgbm8taW50ZXJwcmV0ZXIt
Zm91bmRgIGVycm9yIGZhbGwgYmFjayB0byBgd3JhcC1wcm9ncmFtYC4gKG1vdGl2YXRlZCBieSB0
cmV6b3ItYWdlbnQgcmVseWluZyBvbiBzeXMuYXJndlswXSwgd2hpY2ggaXMgcnVpbmVkIGJ5IGB3
cmFwLXByb2dyYW1gKQoKdGhlIHJlc3VsdCBvZiBteSBjaGFuZ2Ugd2FzIHRoYXQgYnVpbGRpbmcg
YHNlcmZgIGRp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-guix@HIDDEN:
bug#40039; Package guix. Full text available.

Message received at 40039 <at> debbugs.gnu.org:


Received: (at 40039) by debbugs.gnu.org; 29 Apr 2021 15:23:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 29 11:23:44 2021
Received: from localhost ([127.0.0.1]:56631 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lc8Vu-0001LB-Bk
	for submit <at> debbugs.gnu.org; Thu, 29 Apr 2021 11:23:44 -0400
Received: from mout-p-102.mailbox.org ([80.241.56.152]:45594)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <btild@HIDDEN>) id 1lc8Vq-0001Kv-Jo
 for 40039 <at> debbugs.gnu.org; Thu, 29 Apr 2021 11:23:37 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:2:0])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4FWK5X2w7wzQk1J;
 Thu, 29 Apr 2021 17:23:28 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h=
 content-type:content-type:mime-version:subject:subject
 :message-id:from:from:date:date:received; s=mail20150812; t=
 1619709804; bh=Xa/mUBiFJwu8Zew6Ke/pLbtj5kUZr4l12jwfZOax38w=; b=O
 FVj7wMB196qeuxlkzBXXy27rnwr271ZmuxP8OIe1x+PbG1DM+HScQluVzQJqIyrK
 V5ACJkugbAcSJ+EPu8/779bSLq+ESamU/DasHlcu1JQRtqCHI2DFpuJ88Fhm6H9I
 J3FqbORU2G5QfXD79rjZHqsiviFhuoIXzo7MwcnlUlOhDh6xDcqkBjp6SRcMTHMO
 6abSjWP5eINrddi9yTRv2gId+klwGfUMdqOq8sxICCe1GRVW0sDOFRU+oBUE2CLJ
 E72n4roZM8OsQ1t1sO9pKdj1xhy88f9+nWHNVvv7JpdI3Ei68/q9TFMYMXHZ46tC
 7YC6/FftG3GbprhIhTLEA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1619709806;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type;
 bh=GwgZx/OQfHV+QOA3fVl3I59b16u4Zz0FcGVAOXVxZ9M=;
 b=mlxmR8OPDGq1gEe3XoIaolblqQQIGqw7qjAtMIng7VauLxwUuFrV2ShCYIvLETSSrN+cg8
 azkWlfpDINzVUXDatGb3vr6vqf5/DQWcdb3l6LB/IRY/si7n9rxvOSv1GXpUAM9p3JgqT1
 Azm9+mMdlkw8mLx35qfnoefCnLQd7cCqb1plVs0BqzrGzDQ2RTGZyihNqKfb6dSnlDEBp+
 ZMcSOdTIMN8QEYUTGUVhyBIyJxko7f83qSH5I45+Al7FK9CcVoRCkvqBohiUcjslXe5efD
 Qy2vxEw8Pl0kQ933+2jkUWFSTuYKw1s9Qf5MyVI6UpSVuIPYckRUUDxSXxox5w==
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de
 [80.241.56.122]) (amavisd-new, port 10030)
 with ESMTP id 7qFaKnUMitcN; Thu, 29 Apr 2021 17:23:24 +0200 (CEST)
Date: Thu, 29 Apr 2021 17:23:23 +0200 (CEST)
From: Brendan Tildesley <btild@HIDDEN>
To: "40039 <at> debbugs.gnu.org" <40039 <at> debbugs.gnu.org>
Message-ID: <964865602.98225.1619709804547@HIDDEN>
Subject: 'wrap-script' introduces spurious argument
MIME-Version: 1.0
Content-Type: multipart/mixed; 
 boundary="----=_Part_98223_1806971170.1619709804029"
X-Priority: 3
Importance: Normal
X-MBO-SPAM-Probability: 
X-Rspamd-Score: -11.15 / 15.00 / 15.00
X-Rspamd-Queue-Id: 1CBCA17DF
X-Rspamd-UID: 636fb9
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40039
Cc: Ricardo Wurmus <rekado@HIDDEN>,
 =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

------=_Part_98223_1806971170.1619709804029
Content-Type: multipart/alternative; 
	boundary="----=_Part_98224_247220008.1619709804029"

------=_Part_98224_247220008.1619709804029
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Same patch as before, but with a test case. Have a play with it and see if it makes sense.

------=_Part_98224_247220008.1619709804029
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div style="" class="default-style">
   Same patch as before, but with a test case. Have a play with it and see if it makes sense.
   <br>
  </div>
 </body>
</html>
------=_Part_98224_247220008.1619709804029--

------=_Part_98223_1806971170.1619709804029
Content-Type: text/x-patch; charset=UTF-8;
 name=0001-utils-Fix-wrap-script-argument-handling.patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename=0001-utils-Fix-wrap-script-argument-handling.patch
X-Part-Id: a4b4391ed11c4f00b181fbe350e1536e

RnJvbSAyMWQ1ZjRlMDFiZTdmOWI4NjY0OWY0MTc2ZjUzZTE0ODU0YjU4ZDUzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBCcmVuZGFuIFRpbGRlc2xleSA8bWFpbEBicmVuZGFuLnNjb3Q+
CkRhdGU6IFRodSwgMjkgQXByIDIwMjEgMjA6MzM6MDggKzEwMDAKU3ViamVjdDogW1BBVENIXSB1
dGlsczogRml4IHdyYXAtc2NyaXB0IGFyZ3VtZW50IGhhbmRsaW5nLgoKKiBndWl4L2J1aWxkL3V0
aWxzLnNjbSAod3JhcC1zY3JpcHQpOgpEb24ndCBhZGQgKGNhciBjbCkgb25lIHRvbyBtYW55IHRp
bWVzLCBjbCBpdHMgc2VsZiBjb250YWlucyBpdCdzIGNhci4KU3BsaXQgdGhlIGFndW1lbnRzIHN0
cmluZyB3aXRoIHN0cmluZy10b2tlbml6ZSB0byBhdm9pZCBsZWF2aW5nIGFuIGVtcHR5CnN0cmlu
ZyBhcmd1bWVudCB3aGVuIHRoZXJlIHNob3VsZCBiZSBub25lLiBUaGVzZSB0d28gYnVncyBzZWVt
ZWQgdG8KYmUgcGFydGlhbGx5IGNhbmNlbGxpbmcgZWFjaCBvdGhlciBvdXQgc28gdGhhdCBzY3Jp
cHRzIHN0aWxsIHdvcmtlZCB3aGVuCnJhbiB3aXRoIG5vIGFyZ3VtZW50cy4KCiogdGVzdHMvYnVp
bGQtdXRpbHMuc2NtOiBBZGp1c3Qgd3JhcC1zY3JpcHQgdG8gYWJvdmUgY2hhbmdlcy4KQWRkIHR3
byB0ZXN0cyB0byBlbnN1cmUgdGhlIGNvbW1hbmQgbGluZSBhcmd1bWVudHMgYXBwZWF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AoYXBwbHkgZXhlY2wgLGludGVycHJldGVyCiAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAoY2FyIGNsKQotICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgKGNvbnMgKGNhciBjbCkKLSAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChhcHBlbmQKLSAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnLChzdHJpbmctc3BsaXQgYXJncyAj
XHNwYWNlKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIGNsKSkpKSkpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAoYXBwZW5kCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
Jywoc3RyaW5nLXRva2VuaXplIGFyZ3MgY2hhci1zZXQ6Z3JhcGhpYykKKyAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbCkpKSkpCiAgICAgICAgICAgICAgICAg
ICAgKHRlbXBsYXRlIChzdHJpbmctYXBwZW5kIHByb2cgIi5YWFhYWFgiKSkKICAgICAgICAgICAg
ICAgICAgICAob3V0ICAgICAgKG1rc3RlbXAhIHRlbXBsYXRlKSkKICAgICAgICAgICAgICAgICAg
ICAoc3QgICAgICAgKHN0YXQgcHJvZykpCmRpZmYgLS1naXQgYS90ZXN0cy9idWlsZC11dGlscy5z
Y20gYi90ZXN0cy9idWlsZC11dGlscy5zY20KaW5kZXggNjU0YjQ4MGVkOS4uZjNmMzFkZWFmNiAx
MDA2NDQKLS0tIGEvdGVzdHMvYnVpbGQtdXRpbHMuc2NtCisrKyBiL3Rlc3RzL2J1aWxkLXV0aWxz
LnNjbQpAQCAtMSw2ICsxLDcgQEAKIDs7OyBHTlUgR3Vp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jb21tYW5kLWxpbmUpKSkKICAgICAgICAgICAgICAgICAoYXBwbHkgZXhlY2wgIi9hbnl0
aGluZy9jYWJiYWdlLWJhc2gtMS4yLjMvYmluL3B5dGhvbjMiCiAgICAgICAgICAgICAgICAgICAg
ICAgIChjYXIgY2wpCi0gICAgICAgICAgICAgICAgICAgICAgIChjb25zIChjYXIgY2wpCi0gICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIChhcHBlbmQgJygiIiAiLWFuZCIgIi1hcmdzIikgY2wp
KSkpKQorICAgICAgICAgICAgICAgICAgICAgICAoYXBwZW5kICcoIi1hbmQiICItYXJncyIpIGNs
KSkpKQogICAgICBzY3JpcHQtY29udGVudHMpCiAgICAgKGNhbGwtd2l0aC10ZW1wb3JhcnktZGly
ZWN0b3J5CiAgICAgIChsYW1iZGEgKGRpcmVjdG9yeSkKQEAgLTI0MSw0ICsyMzksNTEgQEAgcHJp
bnQoJ2hlbGxvIHdvcmxkJykiKSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAiL3NvbWUvb3RoZXIvcGF0aCIpKSkKICAgICAgICAgICNmKSkpKSkKIAorKGRlZmlu
ZSAoYXJnLXRlc3QgYmFzaC1hcmdzKQorICAoY2FsbC13aXRoLXRlbXBvcmFyeS1kaXJlY3RvcnkK
KyAgIChsYW1iZGEgKGRpcmVjdG9yeSkKKyAgICAgKGxldCAoKHNjcmlwdC1maWxlLW5hbWUgKHN0
cmluZy1hcHBlbmQgZGlyZWN0b3J5ICIvYmFzaC10ZXN0LnNoIikpKQorICAgICAgIChjYWxsLXdp
dGgtb3V0cHV0LWZpbGUgc2NyaXB0LWZpbGUtbmFtZQorICAgICAgICAgKGxhbWJkYSAocG9ydCkK
KyAgICAgICAgICAgKGRpc3BsYXkgKHN0cmluZy1hcHBlbmQgIlwKKyMhIiAod2hpY2ggImJhc2gi
KSBiYXNoLWFyZ3MgIgorZWNobyBcIiQjJDAkKiR7QX1cIiIpCisgICAgICAgICAgICAgICAgICAg
IHBvcnQpKSkKKworICAgICAgIChkaXNwbGF5ICJVbndyYXBwZWQgc2NyaXB0IGNvbnRlbnRzOlxu
IikKKyAgICAgICAoY2FsbC13aXRoLWlucHV0LWZpbGUgc2NyaXB0LWZpbGUtbmFtZQorICAgICAg
ICAgKGxhbWJkYSAocG9ydCkgKGRpc3BsYXkgKGdldC1zdHJpbmctYWxsIHBvcnQpKSkpCisgICAg
ICAgKG5ld2xpbmUpIChuZXdsaW5lKQorICAgICAgIChjaG1vZCBzY3JpcHQtZmlsZS1uYW1lICNv
Nzc3KQorICAgICAgIChzZXRlbnYgIkEiICJBIikKKyAgICAgICAobGV0KiAoKHJ1bi1zY3JpcHQg
KGxhbWJkYSBfCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG9wZW4tcGlwZSoKKyAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgT1BFTl9SRUFECisgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIHNjcmlwdC1maWxlLW5hbWUgIjEiICIyIiAiMyAzIiAiNCIpKSkKKyAgICAgICAgICAg
ICAgKHBpcGUgKHJ1bi1zY3JpcHQpKQorICAgICAgICAgICAgICAodW53cmFwcGVkLW91dHB1dCAo
Z2V0LXN0cmluZy1hbGwgcGlwZSkpKQorICAgICAgICAgKGNsb3NlLXBpcGUgcGlwZSkKKworICAg
ICAgICAgKHdyYXAtc2NyaXB0IHNjcmlwdC1maWxlLW5hbWUgYCgiQSIgPSAoIkFcbkEiKSkpCisK
KyAgICAgICAgIChkaXNwbGF5ICJXcmFwcGVkIHNjcmlwdCBjb250ZW50czpcbiIpCisgICAgICAg
ICAoY2FsbC13aXRoLWlucHV0LWZpbGUgc2NyaXB0LWZpbGUtbmFtZQorICAgICAgICAgICAobGFt
YmRhIChwb3J0KSAoZGlzcGxheSAoZ2V0LXN0cmluZy1hbGwgcG9ydCkpKSkKKyAgICAgICAgIChu
ZXdsaW5lKSAobmV3bGluZSkKKworICAgICAgICAgKGxldCogKChwaXBlIChydW4tc2NyaXB0KSkK
KyAgICAgICAgICAgICAgICAod3JhcHBlZC1vdXRwdXQgKGdldC1zdHJpbmctYWxsIHBpcGUpKSkK
KyAgICAgICAgICAgKGNsb3NlLXBpcGUgcGlwZSkKKyAgICAgICAgICAgKGRpc3BsYXkgIi4vYmFz
aC10ZXN0LnNoIDEgMiAzXFwgMyA0ICMgT3V0cHV0OlxuIikKKyAgICAgICAgICAgKGRpc3BsYXkg
dW53cmFwcGVkLW91dHB1dCkgKG5ld2xpbmUpCisgICAgICAgICAgIChkaXNwbGF5ICIuL2Jhc2gt
dGVzdC5zaCAxIDIgM1xcIDMgNCAjIE91dHB1dCAod3JhcHBlZCk6XG4iKQorICAgICAgICAgICAo
ZGlzcGxheSB3cmFwcGVkLW91dHB1dCkgKG5ld2xpbmUpCisgICAgICAgICAgIChzdHJpbmc9PyAo
c3RyaW5nLWFwcGVuZCB1bndyYXBwZWQtb3V0cHV0ICJBXG4iKSB3cmFwcGVkLW91dHB1dCkpKSkp
KSkKKworKHRlc3QtYXNzZXJ0ICJ3cmFwLXNjcmlwdCwgYXJndW1lbnQgaGFuZGxpbmciCisgIChh
cmctdGVzdCAiIikpCisKKyh0ZXN0LWFzc2VydCAid3JhcC1zY3JpcHQsIGFyZ3VtZW50IGhhbmRs
aW5nLCBiYXNoIC0tbm9yYyIKKyAgKGFyZy10ZXN0ICIgLS1ub3JjIikpCisKICh0ZXN0LWVuZCkK
LS0gCjIuMzEuMQoK
------=_Part_98223_1806971170.1619709804029--




Information forwarded to bug-guix@HIDDEN:
bug#40039; Package guix. Full text available.

Message received at 40039 <at> debbugs.gnu.org:


Received: (at 40039) by debbugs.gnu.org; 13 Sep 2020 12:22:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 13 08:22:17 2020
Received: from localhost ([127.0.0.1]:49613 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kHR1N-0006eB-HF
	for submit <at> debbugs.gnu.org; Sun, 13 Sep 2020 08:22:17 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21164)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kHR1L-0006e3-IJ
 for 40039 <at> debbugs.gnu.org; Sun, 13 Sep 2020 08:22:16 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1599999729; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=nbAVbyBBZDiyGdhY6tMiQzuHEEViMuvdWJgBBK2hVxvgoDPJVgu6BNPPDSEGKpdD9UIYuU+yFx2yS1QFvrtyup2ioGDHAjYg1myr3YhCcrjrigzFs9apDZkDYaomDnnBjwCToXp8MCqUqDjT4ccgXej35k8J/SF95/7aRhqI0Dw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1599999729;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=ZQITkW/OBYCEOTxQzlVxaSbxtB41fJ3RlM5075pNPE4=; 
 b=SJRP1nIrPZkwTburYuUXBes/bIivKBGUmBcOnhmjUknd5d44lFvU48Gy0MOZZfkatc0TffXb6f67CSmJ4ykg9KvKZbgK+LIcPUeyBR02avoIrzP4MpvXYN2rQiYPSCelp6jAv/MjA+0nc4cQMjoQ/4ElPLAClK+y2wa9AAi+wUU=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1599999729; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=ZQITkW/OBYCEOTxQzlVxaSbxtB41fJ3RlM5075pNPE4=;
 b=XFdjfyeNg5zq3iG7obo6FpqifgrQxoFCmQisPZeme+7yjWjcCBWSnSY0LKj156ki
 7/TlUj6P6nw4TQQ7APo0lYAhli7nOi03O1EBOGL9i84YAJkIOEdLViAHlYN6GNqPpwK
 Xh45Mr4kFtXwkVKn/ShUtMtEy2FGnTBpEIXxMB0g=
Received: from localhost (p4fd5aca2.dip0.t-ipconnect.de [79.213.172.162]) by
 mx.zohomail.com with SMTPS id 1599999727652230.51592256205333;
 Sun, 13 Sep 2020 05:22:07 -0700 (PDT)
References: <87k13psl82.fsf@HIDDEN>
 <2969f516-ca88-ffa6-dd65-f6a29682d42c@HIDDEN>
 <87pnd4lm5p.fsf@HIDDEN>
 <3489a6d8-59fb-3452-4220-0936b76caae2@HIDDEN>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Brendan Tildesley <brendan.tildesley@HIDDEN>
Subject: Re: bug#40039: 'wrap-script' introduces spurious argument
In-reply-to: <3489a6d8-59fb-3452-4220-0936b76caae2@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Sun, 13 Sep 2020 14:23:24 +0200
Message-ID: <87pn6pzwzn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 3.8 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Brendan Tildesley <brendan.tildesley@HIDDEN> writes: >
   Hi Ricardo, Ludovic... I was wondering if we could revisit and fix > this.
    Yes, let’s try to fix this. I think it would be good to have a bunch of
    automated tests that we can work with to validate the feature even in somewhat
    obscure circumstances. 
 
 Content analysis details:   (3.8 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [79.213.172.162 listed in zen.spamhaus.org]
  0.1 URIBL_CSS_A            Contains URL's A record listed in the Spamhaus CSS
                             blocklist
                             [URIs: elephly.net]
  0.1 URIBL_CSS              Contains an URL's NS IP listed in the Spamhaus CSS
                             blocklist
                             [URIs: elephly.net]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [136.143.188.51 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [136.143.188.51 listed in wl.mailspike.net]
X-Debbugs-Envelope-To: 40039
Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 40039 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 2.8 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Brendan Tildesley <brendan.tildesley@HIDDEN> writes: >
   Hi Ricardo, Ludovic... I was wondering if we could revisit and fix > this.
    Yes, let’s try to fix this. I think it would be good to have a bunch of
    automated tests that we can work with to validate the feature even in somewhat
    obscure circumstances. 
 
 Content analysis details:   (2.8 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [136.143.188.51 listed in wl.mailspike.net]
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [79.213.172.162 listed in zen.spamhaus.org]
  0.1 URIBL_CSS_A            Contains URL's A record listed in the Spamhaus CSS
                             blocklist
                             [URIs: elephly.net]
  0.1 URIBL_CSS              Contains an URL's NS IP listed in the Spamhaus CSS
                             blocklist
                             [URIs: elephly.net]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [136.143.188.51 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager


Brendan Tildesley <brendan.tildesley@HIDDEN> writes:

> Hi Ricardo, Ludovic... I was wondering if we could revisit and fix
> this.

Yes, let=E2=80=99s try to fix this.  I think it would be good to have a bun=
ch of
automated tests that we can work with to validate the feature even in
somewhat obscure circumstances.

It=E2=80=99s been a while since I originally wrote the code, so some decisi=
ons
are no longer obvious to me, but I=E2=80=99ll try to familiarize myself wit=
h it
once again.

--=20
Ricardo




Information forwarded to bug-guix@HIDDEN:
bug#40039; Package guix. Full text available.

Message received at 40039 <at> debbugs.gnu.org:


Received: (at 40039) by debbugs.gnu.org; 13 Sep 2020 02:35:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 12 22:35:49 2020
Received: from localhost ([127.0.0.1]:49247 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kHHro-0004hV-Ua
	for submit <at> debbugs.gnu.org; Sat, 12 Sep 2020 22:35:49 -0400
Received: from mail-pl1-f172.google.com ([209.85.214.172]:35143)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brendan.tildesley@HIDDEN>) id 1kHHrl-0004hF-C9
 for 40039 <at> debbugs.gnu.org; Sat, 12 Sep 2020 22:35:46 -0400
Received: by mail-pl1-f172.google.com with SMTP id t6so1480966plz.2
 for <40039 <at> debbugs.gnu.org>; Sat, 12 Sep 2020 19:35:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language;
 bh=BaAKH3aeX8dFekrXoQKbPOOWuB7IZwh8ym9obHdrrgw=;
 b=r5AU4HEV16+iEYC8TJHFUKpF1E+ebxTMM40qVhnaBG739p/GpmAG/A95XVyB1ErPQF
 Yj7yTuDOxfyK/p7roDGNvLseyloFWIeCDldtlVspRKNymuG43uR74PJvzsUL1FvVx2np
 g4jho6FMSRVsQr4KMzrpMLEcRYAvH1gMq4Q1DKpfHeNJt1/ft3TNDMD5PiAtOBZq8TTI
 BHdMiezynT+H/tPcuU7We8LPFaPZi1kf27C/DgAA77hirdJVgcJIVqt8nqMuQ9O5C7IS
 nQtXvXTfr6hhXM2dqLXsCCkarERgN63xmhdlqJQ97/J4QuOs78/C3X2UftMVjeRaIUPv
 GTMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:cc:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language;
 bh=BaAKH3aeX8dFekrXoQKbPOOWuB7IZwh8ym9obHdrrgw=;
 b=S0gTE7rlHikeT2OqRttU9fvNkJccJce+cpqGxDA5KbyxrXyzQx93UlnCx1JU2/PTin
 CJmSY4dMrjS+i7fBpl6jvDq1gjobuKBmgqtTKcmZnovjRnLOCuj0o1f+Wf8Yb8qYMXNW
 GH6Ogbh3itAIoAerP73qfcSsbxoLRg9/0SgBxORmC0jKDd7ZLGKQwgDjd/TIDXJkOUB5
 Hfw1O1c3xV6j+FRMC0kWT+0Al47kbZ3lL7u0M4uNoj4CEqtfxnN5Omf8w5qqetTD75cT
 UUOUN9eTEBfCMt/mlypfkPSOKVC89DRfuFyI2PQ5+RiPG7+d4CGNkg+UlFfS1Kw2dKEP
 wZuQ==
X-Gm-Message-State: AOAM532SsjPvinsV79tOT+O3ZeKKWHCejGeBN3yR3TWqElTC7HR6/RLz
 c6Cy+OspqVqIjrmIHvaoeKARl2XJzXmLtQ==
X-Google-Smtp-Source: ABdhPJwzAOuL1LXaR9vGzRvXyrg6PUZEeREdU2f4N1hAueiAjswdx44UdVoi6b33GcX7He+sJdWOIQ==
X-Received: by 2002:a17:90a:bf8c:: with SMTP id
 d12mr8603970pjs.157.1599964539047; 
 Sat, 12 Sep 2020 19:35:39 -0700 (PDT)
Received: from [10.1.1.247] ([14.2.156.188])
 by smtp.googlemail.com with ESMTPSA id m14sm6196786pfo.202.2020.09.12.19.35.36
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 12 Sep 2020 19:35:38 -0700 (PDT)
Subject: Re: bug#40039: 'wrap-script' introduces spurious argument
To: Ricardo Wurmus <rekado@HIDDEN>, =?UTF-8?Q?Ludovic_Court=c3=a8s?=
 <ludo@HIDDEN>
References: <87k13psl82.fsf@HIDDEN>
 <2969f516-ca88-ffa6-dd65-f6a29682d42c@HIDDEN> <87pnd4lm5p.fsf@HIDDEN>
From: Brendan Tildesley <brendan.tildesley@HIDDEN>
Message-ID: <3489a6d8-59fb-3452-4220-0936b76caae2@HIDDEN>
Date: Sun, 13 Sep 2020 12:35:47 +1000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Icedove/68.12.0
MIME-Version: 1.0
In-Reply-To: <87pnd4lm5p.fsf@HIDDEN>
Content-Type: multipart/alternative;
 boundary="------------661310287346F7D430A39975"
Content-Language: en-US
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: 40039
Cc: 40039 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

This is a multi-part message in MIME format.
--------------661310287346F7D430A39975
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi Ricardo, Ludovic... I was wondering if we could revisit and fix this. 
I believe there is more than 1 bug here.

Suppose we have the script test.sh

    #!/run/current-system/profile/bin/bash
    echo "$@"

./test.sh returns:

hi

Wrapping with wrap-script returns

  ./test.sh hi

(notice the extract space at the start.)

With Ludovic's change to char-set:graphicY

.test.sh hi

The leading space is gone at least. Finally, after removing one of the 
(car cl)'s, if finally just returns hi.


--------------661310287346F7D430A39975
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Ricardo, Ludovic... I was wondering if we could revisit and
      fix this. I believe there is more than 1 bug here.</p>
    <p>Suppose we have the script test.sh<br>
    </p>
    <blockquote>#!/run/current-system/profile/bin/bash<br>
      echo "$@"</blockquote>
    <p>./test.sh returns: <br>
    </p>
    <p>hi</p>
    <p>Wrapping with wrap-script returns</p>
    <p> ./test.sh hi</p>
    <p>(notice the extract space at the start.)</p>
    <p>With Ludovic's change to char-set:graphicY</p>
    <p>.test.sh hi</p>
    <p>The leading space is gone at least. Finally, after removing one
      of the (car cl)'s, if finally just returns hi.<br>
    </p>
  </body>
</html>

--------------661310287346F7D430A39975--




Information forwarded to bug-guix@HIDDEN:
bug#40039; Package guix. Full text available.

Message received at 40039 <at> debbugs.gnu.org:


Received: (at 40039) by debbugs.gnu.org; 22 Mar 2020 11:42:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 22 07:42:58 2020
Received: from localhost ([127.0.0.1]:48647 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jFz0D-0001L5-0B
	for submit <at> debbugs.gnu.org; Sun, 22 Mar 2020 07:42:58 -0400
Received: from mout-p-102.mailbox.org ([80.241.56.152]:63466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1jFz0A-0001Ka-ID
 for 40039 <at> debbugs.gnu.org; Sun, 22 Mar 2020 07:42:48 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mout-p-102.mailbox.org (Postfix) with ESMTPS id 48lbGm2LtCzKmcP;
 Sun, 22 Mar 2020 12:42:40 +0100 (CET)
X-Virus-Scanned: amavisd-new at heinlein-support.de
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot;
 s=MBO0001; t=1584877358;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=xxPw/zognEwQq+tcIJKPM1mWLninuMaYSFxfg7kB7AI=;
 b=nXOxoD6klsN6XPo2lbijrkMXalSGYyU6pVahAf8fjGhFVHzf+PXTIWQ5Pipc/FjcSUFIPq
 /9QJzWCbNrTQ6p3dgUJzHc57dHOQ3Kt4ng15zGBC3v7ISO4lqwQB67IfiL5/IVxkKzpgAR
 vfp/yWGy2rjdYFcdXCkmDCRahYZFnjjI9SVw0BwNmhvBJECP35TtrUaq+FU3aJzW6LgxIA
 iB2sq8XsrBSj6NVif283emWcsWvjy6/1ck8swQVT6Cn8XvF1XOnY6M92wYoU6Lf1yKqZzZ
 tIblkSG3NdSfzTG0M7JbFrA1VElZBn4akvC61noqJOxK1EbL1lWg/+7+zhzeVA==
Received: from smtp1.mailbox.org ([80.241.60.240])
 by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de
 [80.241.56.116]) (amavisd-new, port 10030)
 with ESMTP id nrKH-ujkXnWm; Sun, 22 Mar 2020 12:42:36 +0100 (CET)
Subject: Re: bug#40039: 'wrap-script' introduces spurious argument
To: 40039 <at> debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=c3=a8s?= <ludo@HIDDEN>
References: <87k13psl82.fsf@HIDDEN>
 <2969f516-ca88-ffa6-dd65-f6a29682d42c@HIDDEN> <87pnd4lm5p.fsf@HIDDEN>
From: Brendan Tildesley <mail@HIDDEN>
Message-ID: <da7aaff2-7d12-ed30-d9b4-3b9f5bd37357@HIDDEN>
Date: Sun, 22 Mar 2020 22:42:29 +1100
MIME-Version: 1.0
In-Reply-To: <87pnd4lm5p.fsf@HIDDEN>
Content-Type: multipart/mixed; boundary="------------A995F65986B32EABB79186C5"
Content-Language: en-US
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 40039
Cc: Ricardo Wurmus <rekado@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

This is a multi-part message in MIME format.
--------------A995F65986B32EABB79186C5
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

I'm currently packaging libratbag which provides the cli interface 
ratbagctl. when launched without arguments, it normally the current devices

######################
## with wrap-program (correct):
b@ui ~/guix [env]$ ratbagctl
warbling-mara:       Logitech G102 Prodigy Gaming Mouse

b@ui ~/guix [env]$ head `which ratbagctl`
#!/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash
export 
PYTHONPATH="/gnu/store/88v8lvs02sdqgzv7w96g19fvh8hffzzp-libratbag-0.13/lib/python3.7/site-packages/:/gnu/store/h4jkr0qg86zjn1kq6iq8v33pcadj9r13-python-evdev-1.3.0/lib/python3.7/site-packages/:/gnu/store/z5fdc5aa9hs4c3p79ajzgxhazv7702y8-python-pygobject-3.28.3/lib/python3.7/site-packages/"
exec -a "$0" 
"/gnu/store/88v8lvs02sdqgzv7w96g19fvh8hffzzp-libratbag-0.13/bin/.ratbagctl-real" 
"$@"


######################
## with wrap-script:
b@ui ~/guix [env]$ ratbagctl
usage: /gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl 
<device>
        {info,name,profile,resolution,dpi,rate,button,led} ...
/gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl 
<device>: error: invalid choice: 
'/gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl' 
(choose from 'info', 'name', 'profile', 'resolution', 'dpi', 'rate', 
'button', 'led')

b@ui ~/guix [env]$ ratbagctl list
/gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl 
<device>: error: invalid choice: 
'/gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl' 
(choose from 'info', 'name', 'profile', 'resolution', 'dpi', 'rate', 
'button', 'led')
b@ui ~/guix [env]$ ratbagctl info rastkasnts atkatkaf ftbaontb 
aesbtabtowf ~5qawylftarsnvbawlpfyq
usage: /gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl 
<device>
        {info,name,profile,resolution,dpi,rate,button,led} ...
/gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl 
<device>: error: invalid choice: 
'/gnu/store/754ylqjs68va7rswr3fscwa0kyazsbjq-profile/bin/ratbagctl' 
(choose from 'info', 'name', 'profile', 'resolution', 'dpi', 'rate', 
'button', 'led')
b@ui ~/guix [env]$

b@ui ~/guix [env]$ head `which ratbagctl`
#!/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/bin/guile 
--no-auto-compile
#!#; Guix wrapper
#\-(begin (setenv "PYTHONPATH" 
"/gnu/store/1hcpppqc6268siki64vs1ygq1qsr8w35-libratbag-0.13/lib/python3.7/site-packages/:/gnu/store/h4jkr0qg86zjn1kq6iq8v33pcadj9r13-python-evdev-1.3.0/lib/python3.7/site-packages/:/gnu/store/z5fdc5aa9hs4c3p79ajzgxhazv7702y8-python-pygobject-3.28.3/lib/python3.7/site-packages/"))
#\-(let ((cl (command-line))) (apply execl 
"/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/bin/python3" 
(car cl) (cons (car cl) (append (quote ("")) cl))))
#!/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/bin/python3

####################

Here I make a copy of the guix build utils module and modify the 
wrap-script, removing #\space as suggested, so it defaults to 
char-set:graphic. This results in the above guile wrapper chaging to:

#\-(let ((cl (command-line))) (apply execl 
"/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/bin/python3" 
(car cl) (cons (car cl) (append (quote ()) cl))))

The behaviour changes somewhat. Now running ratbagctl prints the 
commants list, which is what should happen when the wrong arguments are 
provided, e.g., `ratbagctl qwfqwfqf`


b@ui ~/guix [env]$ ratbagctl
usage: ratbagctl [OPTIONS] list
        ratbagctl [OPTIONS] <device> {COMMAND} ...


b@ui ~/guix [env]$ ratbagctl list
usage: /gnu/store/fgl1w0lh1pzqg8j4gi8j1yi29aa122ja-profile/bin/ratbagctl 
<device>
        {info,name,profile,resolution,dpi,rate,button,led} ...
/gnu/store/fgl1w0lh1pzqg8j4gi8j1yi29aa122ja-profile/bin/ratbagctl 
<device>: error: invalid choice: 'list' (choose from 'info', 'name', 
'profile', 'resolution', 'dpi', 'rate', 'button', 'led')


























--------------A995F65986B32EABB79186C5
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-WRAPSCRIPT.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment;
 filename="0001-WRAPSCRIPT.patch"

From 3b5db2c77598961b0b60c901a9bbed8f0524a93f Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <mail@HIDDEN>
Date: Sun, 22 Mar 2020 22:40:18 +1100
Subject: [PATCH] WRAPSCRIPT

---
 gnu/packages/gnome.scm | 131 ++++++++++++++++++++++++++++++++-
 my-wrap.scm            | 162 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 292 insertions(+), 1 deletion(-)
 create mode 100644 my-wrap.scm

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index a08cd00d72..d614677214 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -27,7 +27,7 @@
 ;;; Copyright © 2017, 2018 nee <nee-git@HIDDEN>
 ;;; Copyright © 2017 Chris Marusich <cmmarusich@HIDDEN>
 ;;; Copyright © 2017 Mohammed Sadiq <sadiq@HIDDEN>
-;;; Copyright © 2017 Brendan Tildesley <mail@HIDDEN>
+;;; Copyright © 2017, 2020 Brendan Tildesley <mail@HIDDEN>
 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@HIDDEN>
 ;;; Copyright © 2018 Jovany Leandro G.C <bit4bit@HIDDEN>
 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@HIDDEN>
@@ -158,12 +158,14 @@
   #:use-module (gnu packages spice)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages ssh)
+  #:use-module (gnu packages swig)
   #:use-module (gnu packages tex)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
   #:use-module (gnu packages virtualization)
+  #:use-module (gnu packages valgrind)
   #:use-module (gnu packages vpn)
   #:use-module (gnu packages web)
   #:use-module (gnu packages webkit)
@@ -186,6 +188,10 @@
   #:use-module (guix utils)
   #:use-module (guix gexp)
   #:use-module (guix monads)
+  #:use-module (guix)
+
+  #:use-module (my-wrap)
+
   #:use-module (guix store)
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
@@ -9956,3 +9962,126 @@ manage remote and virtual systems.")
               license:cc-by2.0
               ;; For all others.
               license:lgpl2.0+))))
+
+
+(define-public python-evdev
+  (package
+    (name "python-evdev")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "evdev" version))
+       (sha256
+        (base32
+         "0kb3636yaw9l8xi8s184w0r0n9ic5dw3b8hx048jf9fpzss4kimi"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("kernel-headers" ,linux-libre-headers)))
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'patch-patch
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "setup.py"
+               (("/usr/include/linux")
+                (string-append
+                 (assoc-ref inputs "kernel-headers") "/include/linux")))
+             #t)))))
+    (home-page
+     "https://github.com/gvalkov/python-evdev")
+    (synopsis
+     "Bindings to the Linux input handling subsystem")
+    (description
+     "Bindings to the Linux input handling subsystem")
+    (license license:lgpl2.1)))
+
+(define-public libratbag
+  (package
+    (name "libratbag")
+    (version "0.13")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append
+                "https://github.com/libratbag/libratbag/archive/v" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1j8ryzrljqcp0c1wqzzpgr5fqdmwqr5z99avkxwfs7kqwm8ii9xh"))))
+    (build-system meson-build-system)
+    (native-inputs `(("pkg-config" ,pkg-config)
+                     ("check" ,check)
+                     ("swing" ,swig)
+                     ("valgrind" ,valgrind)))
+    (inputs `(("guile" ,guile-3.0)   ;;; for wrap-script
+              ("glib" ,glib)
+              ("json-glib" ,json-glib)
+              ("libevdev" ,libevdev)
+              ("udev" ,eudev)
+                                        ;("gobject-introspection" ,gobject-introspection)
+              ("python-pygobject" ,python-pygobject)
+              ("python-evdev" ,python-evdev)
+              ("libsystemd" ,elogind)
+
+              ))
+    (arguments
+     `(#:imported-modules ((my-wrap)
+                           (guix build meson-build-system)
+                           (guix build gnu-build-system)
+                           (guix build utils)
+                           (guix build glib-or-gtk-build-system)
+                           (guix build gremlin)
+                           (guix elf))
+       ;;#:modules ((wrap))
+       #:configure-flags
+       (list "-Dsystemd=false"
+             "-Dlogind-provider=elogind")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+
+             (use-modules (my-wrap))
+
+
+             (let*
+                 ((out (assoc-ref outputs "out" ))
+                  (site "/lib/python3.7/site-packages/")
+                  (out-site (string-append (assoc-ref outputs "out" ) site))
+                  (evdev (string-append (assoc-ref inputs "python-evdev") site))
+                  (pygo (string-append (assoc-ref inputs "python-pygobject") site))
+
+                  (python-wrap
+                   `("PYTHONPATH" = (,out-site ,evdev ,pygo)))
+
+                  (gi-wrap ;; wraps json-glibs girepository directory. doesnt seem to matter at all??
+                   `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
+
+               ;; Do we even need to wrap the daemon?
+               ;; (wrap-program (string-append out "/bin/" "ratbagd")
+               ;;   python-wrap ;; gi-wrap
+               ;;   )
+               ;; TODO: switch to wrap-script when it's fixed
+               (wrap-script** (string-append out "/bin/" "ratbagctl")
+                              python-wrap ;; gi-wrap
+                              )
+
+               #t))))))
+    (home-page "https://github.com/libratbag/libratbag")
+    (synopsis "DBus daemon for configuring gaming mice")
+    (description "libratbag provides ratbagd, a DBus daemon to configure input
+devices, mainly gaming mice.  The daemon provides a generic way to access the
+various features exposed by these mice and abstracts away hardware-specific
+and kernel-specific quirks. There is also the ratbagctl command line interface
+for configuring devices.
+
+libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat,
+Steelseries.
+
+ratbagd can be enabled by adding the following service to your
+operating-system definition:
+(simple-service 'ratbagd dbus-root-service-type (list libratbag))
+")
+    (license license:expat)))
diff --git a/my-wrap.scm b/my-wrap.scm
new file mode 100644
index 0000000000..f47ea210f6
--- /dev/null
+++ b/my-wrap.scm
@@ -0,0 +1,162 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@HIDDEN>
+;;; Copyright © 2013 Andreas Enge <andreas@HIDDEN>
+;;; Copyright © 2013 Nikita Karetnikov <nikita@HIDDEN>
+;;; Copyright © 2015, 2018 Mark H Weaver <mhw@HIDDEN>
+;;; Copyright © 2018 Arun Isaac <arunisaac@HIDDEN>
+;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@HIDDEN>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (my-wrap)
+  #:use-module (srfi srfi-1)
+  #:use-module (srfi srfi-11)
+  #:use-module (srfi srfi-26)
+  #:use-module (srfi srfi-34)
+  #:use-module (srfi srfi-35)
+  #:use-module (srfi srfi-60)
+  #:use-module (ice-9 ftw)
+  #:use-module (ice-9 match)
+  #:use-module (ice-9 regex)
+  #:use-module (ice-9 rdelim)
+  #:use-module (ice-9 format)
+  #:use-module (ice-9 threads)
+  #:use-module (rnrs bytevectors)
+  #:use-module (rnrs io ports)
+  #:use-module (guix build utils)
+  #:export ( wrap-script**))
+
+
+;;;
+;;; Guile 2.0 compatibility later.
+;;;
+
+;; The bootstrap Guile is Guile 2.0, so provide a compatibility layer.
+
+(define wrap-script**
+  (let ((interpreter-regex
+         (make-regexp
+          (string-append "^#! ?(/[^ ]+/bin/("
+                         (string-join '("python[^ ]*"
+                                        "Rscript"
+                                        "perl"
+                                        "ruby"
+                                        "bash"
+                                        "sh") "|")
+                         "))( ?.*)")))
+        (coding-line-regex
+         (make-regexp
+          ".*#.*coding[=:][[:space:]]*([-a-zA-Z_0-9.]+)")))
+    (lambda* (prog #:key (guile (which "guile")) #:rest vars)
+      "Wrap the script PROG such that VARS are set first.  The format of VARS
+is the same as in the WRAP-PROGRAM procedure.  This procedure differs from
+WRAP-PROGRAM in that it does not create a separate shell script.  Instead,
+PROG is modified directly by prepending a Guile script, which is interpreted
+as a comment in the script's language.
+
+Special encoding comments as supported by Python are recreated on the second
+line.
+
+Note that this procedure can only be used once per file as Guile scripts are
+not supported."
+      (define update-env
+        (match-lambda
+          ((var sep '= rest)
+           `(setenv ,var ,(string-join rest sep)))
+          ((var sep 'prefix rest)
+           `(let ((current (getenv ,var)))
+              (setenv ,var (if current
+                               (string-append ,(string-join rest sep)
+                                              ,sep current)
+                               ,(string-join rest sep)))))
+          ((var sep 'suffix rest)
+           `(let ((current (getenv ,var)))
+              (setenv ,var (if current
+                               (string-append current ,sep
+                                              ,(string-join rest sep))
+                               ,(string-join rest sep)))))
+          ((var '= rest)
+           `(setenv ,var ,(string-join rest ":")))
+          ((var 'prefix rest)
+           `(let ((current (getenv ,var)))
+              (setenv ,var (if current
+                               (string-append ,(string-join rest ":")
+                                              ":" current)
+                               ,(string-join rest ":")))))
+          ((var 'suffix rest)
+           `(let ((current (getenv ,var)))
+              (setenv ,var (if current
+                               (string-append current ":"
+                                              ,(string-join rest ":"))
+                               ,(string-join rest ":")))))))
+      (let-values (((interpreter args coding-line)
+                    (call-with-ascii-input-file prog
+                      (lambda (p)
+                        (let ((first-match
+                               (false-if-exception
+                                (regexp-exec interpreter-regex (read-line p)))))
+                          (values (and first-match (match:substring first-match 1))
+                                  (and first-match (match:substring first-match 3))
+                                  (false-if-exception
+                                   (and=> (regexp-exec coding-line-regex (read-line p))
+                                          (lambda (m) (match:substring m 0))))))))))
+        (if interpreter
+            (let* ((header (format #f "\
+#!~a --no-auto-compile
+#!#; ~a
+#\\-~s
+#\\-~s
+"
+                                   guile
+                                   (or coding-line "Guix wrapper")
+                                   (cons 'begin (map update-env
+                                                     (match vars
+                                                       ((#:guile _ . vars) vars)
+                                                       (_ vars))))
+                                   `(let ((cl (command-line)))
+                                      (apply execl ,interpreter
+                                             (car cl)
+                                             (cons (car cl)
+                                                   (append
+                                                    ',(string-tokenize args)
+                                                    cl))))))
+                   (template (string-append prog ".XXXXXX"))
+                   (out      (mkstemp! template))
+                   (st       (stat prog))
+                   (mode     (stat:mode st)))
+              (with-throw-handler #t
+                (lambda ()
+                  (call-with-ascii-input-file prog
+                    (lambda (p)
+                      (format out header)
+                      (dump-port p out)
+                      (close out)
+                      (chmod template mode)
+                      (rename-file template prog)
+                      (set-file-time prog st))))
+                (lambda (key . args)
+                  (format (current-error-port)
+                          "wrap-script: ~a: error: ~a ~s~%"
+                          prog key args)
+                  (false-if-exception (delete-file template))
+                  (raise (condition
+                          (&wrap-error (program prog)
+                                       (type key))))
+                  #f)))
+            (raise (condition
+                    (&wrap-error (program prog)
+                                 (type 'no-interpreter-found)))))))))
+
-- 
2.25.1


--------------A995F65986B32EABB79186C5--




Information forwarded to bug-guix@HIDDEN:
bug#40039; Package guix. Full text available.

Message received at 40039 <at> debbugs.gnu.org:


Received: (at 40039) by debbugs.gnu.org; 22 Mar 2020 10:27:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 22 06:27:42 2020
Received: from localhost ([127.0.0.1]:48609 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jFxpW-0005OM-OJ
	for submit <at> debbugs.gnu.org; Sun, 22 Mar 2020 06:27:42 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21168)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1jFxpT-0005O8-RY
 for 40039 <at> debbugs.gnu.org; Sun, 22 Mar 2020 06:27:40 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1584872856; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=mkrdVhehKK6P57NTwTwmMGVPPaC/A+9tB1yYNTDSpV7mZHhdp0cPqF1BUATh6dS3sbM0KnzzFDSYDvJk/JwuN1pg/EuWHbvRBLsJEZBlMKmlZHxtFY7GvxEM8g505AXdN7PcV95K+I0avMKXislyuZoYYBKTvBl7jISTqVkGfDE=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1584872856;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=1fK2UO46IMejtXVA/flwhJ9lblAeBHoGH2v5NJK024U=; 
 b=bIzfcawah2pJIfJKxEpS3d2SIIUl4IFlvMSq4XbVesQmyzjxp2sYOl4Q2My2sxeVfjFcvZpshwy/fr9Muyxha7Plp7N/iDT4rVkDUWK5K4o3Yy1f6x3p+tJrsXjFvgiicdbwiFzNsytzPdZOU8uT3Prdr2U+nT5yAtNihftvRoU=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1584872856; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=1fK2UO46IMejtXVA/flwhJ9lblAeBHoGH2v5NJK024U=;
 b=V8j1qPKBshjJ/nVNlNPJ1NtaBUZk4ga4XYkusBzKeYzLNHVY2VqCha8aE+iFAyJJ
 vtZokmaoOEquFM5f/gk6bCbwBaTcMj05bFI4AoKPL6qE3b+A1OCCebQH3ZacKhGYLnR
 w1q4U6nq6jfH8GHNy+wfd7bJKhB2P24CNgTmx+8A=
Received: from localhost (p4FD5A849.dip0.t-ipconnect.de [79.213.168.73]) by
 mx.zohomail.com with SMTPS id 1584872854436198.28428473567635;
 Sun, 22 Mar 2020 03:27:34 -0700 (PDT)
References: <87k13psl82.fsf@HIDDEN>
 <2969f516-ca88-ffa6-dd65-f6a29682d42c@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Ricardo Wurmus <rekado@HIDDEN>
To: Brendan Tildesley <brendan.tildesley@HIDDEN>
Subject: Re: bug#40039: 'wrap-script' introduces spurious argument
In-reply-to: <2969f516-ca88-ffa6-dd65-f6a29682d42c@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Sun, 22 Mar 2020 11:27:30 +0100
Message-ID: <87pnd4lm5p.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40039
Cc: 40039 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Brendan Tildesley <brendan.tildesley@HIDDEN> writes:

> It appears the repeated (car cl) results in the executable path
> getting sent to it's self as the first argument. I'm not sure how
> things managed to work up until now? I tested the following change and
> it fixed the one case I was using, but am not sure it is correct. why
> was the cons (car cl) there in the first place?

See the documentation of execl:

 -- Scheme Procedure: execl filename arg ...
 -- C Function: scm_execl (filename, args)
     Executes the file named by FILENAME as a new process image.  The
     remaining arguments are supplied to the process; from a C program
     they are accessible as the =E2=80=98argv=E2=80=99 argument to =E2=80=
=98main=E2=80=99.
     Conventionally the first ARG is the same as FILENAME.  All
     arguments must be strings.

     If ARG is missing, FILENAME is executed with a null argument list,
     which may have system-dependent side-effects.

     This procedure is currently implemented using the =E2=80=98execv=E2=80=
=99 system
     call, but we call it =E2=80=98execl=E2=80=99 because of its Scheme cal=
ling
     interface.

--=20
Ricardo




Information forwarded to bug-guix@HIDDEN:
bug#40039; Package guix. Full text available.

Message received at 40039 <at> debbugs.gnu.org:


Received: (at 40039) by debbugs.gnu.org; 22 Mar 2020 00:53:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 21 20:53:59 2020
Received: from localhost ([127.0.0.1]:48482 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jFosJ-0002ZK-Dr
	for submit <at> debbugs.gnu.org; Sat, 21 Mar 2020 20:53:59 -0400
Received: from mail-pl1-f178.google.com ([209.85.214.178]:33171)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brendan.tildesley@HIDDEN>) id 1jFosH-0002Z7-R2
 for 40039 <at> debbugs.gnu.org; Sat, 21 Mar 2020 20:53:58 -0400
Received: by mail-pl1-f178.google.com with SMTP id g18so4250891plq.0
 for <40039 <at> debbugs.gnu.org>; Sat, 21 Mar 2020 17:53:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-transfer-encoding:content-language;
 bh=t/H7tzkdVIkpm0+n1wVuDAcofjNLx4YTKUbJCpCgKwo=;
 b=Bs1PkanvjyZdDjLCLJTN1VYRZ60a8YPaJT8+XLTEFmuHn41ZqeP3N2pPukPVNmP8+/
 YGXX8athmCOaenRBf/0C6sxOWlr2dCQnSG2/GT0HTU8KlP2Lc61k6BLteG6NvyYofylP
 xtykAk78cWxK2l9stY4cFdQIq4nYX7hhHYaGXB/wUeerxX20zZFqTjfD29FI8w03DfxK
 hgq7dkTbZsIemxd1heVnngSiT0Uu46nvLjxtHZEqHc5oAFZH6Utri8Z8KiXaq1QTbF5x
 CXLZ5yvztQrApOSG0/Bs918WlrSrBaHdAHYtfOdkFSrB93moVX50DU1LC8pDh7XnBbdW
 nKPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-transfer-encoding:content-language;
 bh=t/H7tzkdVIkpm0+n1wVuDAcofjNLx4YTKUbJCpCgKwo=;
 b=O6YS4W9eO23o3mTHVwo05oO9YyWry6A12gQCFfRQYVzd7zslDvjApSmpNaZxqn6p7E
 LrgYxuQDAlt2OWMgWNDM3GL5hiSTHuVsgOjx9NYukqQKmtwmcRBfVrrXgm74fDmLXNi0
 pQUd8WG9zidC6YoONtSdP4Dtu5xSLr55UeUb0+DT+SO1lo7AxE0vA/6Lb3nPc7j3uIqJ
 a50Bhch3XJfPgDhpqJZnelnWkDb0vEqqdrVAh75shZoQ3GPYn7ctBDf7tiCdLQuS9zgi
 986ajRj/KA2XfDr8f01DuXBKKbGlXrW5ZQC97P9z+ApFqmzB42gc8UyE3xiVH5TKBRvX
 3i/A==
X-Gm-Message-State: ANhLgQ3o6PWgsN+zaeQBmK6gxVTYL6hn/cSODDXLrzeUPAfvuFtBiFdY
 nfH6QPTv0CeeFv5iML3yvXUrsOWm
X-Google-Smtp-Source: ADFU+vuueFDMVynsUBXj/p2pCG6lH/z4q1bDMGV6ts5GehqSG34mWYnoXqDF9QtwXOQNX4Ub1JXm2A==
X-Received: by 2002:a17:90a:5888:: with SMTP id
 j8mr14358260pji.61.1584838431510; 
 Sat, 21 Mar 2020 17:53:51 -0700 (PDT)
Received: from [10.1.1.62] ([14.2.140.165])
 by smtp.googlemail.com with ESMTPSA id l59sm4564946pjb.2.2020.03.21.17.53.49
 for <40039 <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 21 Mar 2020 17:53:50 -0700 (PDT)
To: 40039 <at> debbugs.gnu.org
From: Brendan Tildesley <brendan.tildesley@HIDDEN>
Subject: Re: 'wrap-script' introduces spurious argument
Message-ID: <2969f516-ca88-ffa6-dd65-f6a29682d42c@HIDDEN>
Date: Sun, 22 Mar 2020 11:53:47 +1100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.1.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40039
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

It appears the repeated (car cl) results in the executable path getting 
sent to it's self as the first argument. I'm not sure how things managed 
to work up until now? I tested the following change and it fixed the one 
case I was using, but am not sure it is correct. why was the cons (car 
cl) there in the first place?


diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index b8be73ead4..9610f39d71 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -946,7 +946,7 @@ FILE are kept unchanged."
                                                    "patch-shebang: ~a: 
changing `~a' to `~a'~%"
                                                    file (string-append 
interp " " arg1) bin)
                                            (patch p bin rest))
-                                      (begin
+                                      (begin
                                          (format (current-error-port)
                                                  "patch-shebang: ~a: 
changing `~a' to `~a'~%"
                                                  file interp bin)
@@ -1292,11 +1292,10 @@ not supported."
                                                         (_ vars))))
                                     `(let ((cl (command-line)))
                                        (apply execl ,interpreter
-                                             (car cl)
-                                             (cons (car cl)
-                                                   (append
- ',(string-split args #\space)
-                                                    cl))))))
+                                             (car cl) ;; The program.
+                                             (append
+                                              ',(string-tokenize args 
#\space)
+                                              cl)))))
                     (template (string-append prog ".XXXXXX"))
                     (out      (mkstemp! template))
                     (st       (stat prog))





Information forwarded to bug-guix@HIDDEN:
bug#40039; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Mar 2020 14:26:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 12 10:26:35 2020
Received: from localhost ([127.0.0.1]:57624 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jCOnC-0004X0-Kg
	for submit <at> debbugs.gnu.org; Thu, 12 Mar 2020 10:26:34 -0400
Received: from lists.gnu.org ([209.51.188.17]:55398)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1jCOnA-0004Ws-4O
 for submit <at> debbugs.gnu.org; Thu, 12 Mar 2020 10:26:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35145)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1jCOn5-0005XT-8N
 for bug-Guix@HIDDEN; Thu, 12 Mar 2020 10:26:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1jCOn3-0002ik-T8
 for bug-Guix@HIDDEN; Thu, 12 Mar 2020 10:26:26 -0400
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:18602)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1jCOn3-0002fb-IW
 for bug-Guix@HIDDEN; Thu, 12 Mar 2020 10:26:25 -0400
X-IronPort-AV: E=Sophos;i="5.70,545,1574118000"; d="scan'208";a="342152139"
Received: from unknown (HELO ribbon) ([193.50.110.213])
 by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 12 Mar 2020 15:26:22 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: bug-Guix@HIDDEN
Subject: 'wrap-script' introduces spurious argument
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 23 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?=
 =?utf-8?Q?=C3=A9volution?=
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, 12 Mar 2020 15:26:21 +0100
Message-ID: <87k13psl82.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 192.134.164.104
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,

I have a script that starts with:

--8<---------------cut here---------------start------------->8---
#!/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash
#=20
--8<---------------cut here---------------end--------------->8---

When I call =E2=80=98wrap-script=E2=80=99 on it, it leads to:

--8<---------------cut here---------------start------------->8---
#!/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/bin/guile --=
no-auto-compile
#!#; Guix wrapper
#\-(begin (setenv "PATH" "/gnu/store/9kzrrccpzl6i1sfwb0drb00gi2gwk0x0-coreu=
tils-8.31/bin"))
#\-(let ((cl (command-line))) (apply execl "/gnu/store/29jhbbg1hf557x8j53f9=
sxd9imlmf02a-bash-minimal-5.0.7/bin/bash" (car cl) (cons (car cl) (append (=
quote ("")) cl))))
#!/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash
#=20
--8<---------------cut here---------------end--------------->8---

The expression (append '("") cl) is incorrect: the empty string
shouldn=E2=80=99t be added here.

I think one way to fix it is:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index b8be73ead4..f9698773c3 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -1295,7 +1295,8 @@ not supported."
                                              (car cl)
                                              (cons (car cl)
                                                    (append
-                                                    ',(string-split args #\space)
+                                                    ',(string-tokenize args
+                                                                       char-set:graphic)
                                                     cl))))))
                    (template (string-append prog ".XXXXXX"))
                    (out      (mkstemp! template))

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

DQpMdWRv4oCZLg0K
--=-=-=--




Acknowledgement sent to Ludovic Courtès <ludovic.courtes@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#40039; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 9 Sep 2021 19:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.