From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: wrap-program =?utf-8?B?4oCT?= =?utf-8?Q?=3E?= wrap-script Date: Tue, 17 Dec 2019 12:57:52 +0200 Message-ID: <20191217105752.GE2105@E5400> References: <87h8263le2.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="//IivP0gvsAy3Can" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35540) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihAZ7-0006Wy-9W for guix-devel@gnu.org; Tue, 17 Dec 2019 05:58:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihAZ6-0003pH-44 for guix-devel@gnu.org; Tue, 17 Dec 2019 05:58:57 -0500 Received: from flashner.co.il ([178.62.234.194]:37846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ihAZ5-0002qA-UM for guix-devel@gnu.org; Tue, 17 Dec 2019 05:58:56 -0500 Content-Disposition: inline In-Reply-To: <87h8263le2.fsf@elephly.net> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org --//IivP0gvsAy3Can Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 11, 2019 at 04:57:41PM +0100, Ricardo Wurmus wrote: > Hi Guix, >=20 > I=E2=80=99ve just pushed a change to use wrap-script in one package. The > purpose of wrap-script is to wrap an executable without having to create > a separate wrapper shell script. It does this by prepending a Guile > script to the top of the file, which sets the environment variables and > then re-executes itself with the target interpreter (e.g. Python). >=20 > I noticed two things: >=20 > 1) wrap-script does not automatically pull in Guile as a dependency, so > if Guile isn=E2=80=99t among the inputs it will create a bad shebang. Th= is > should be fixed on core-updates. I thought the build systems had an implicit guile in them. Looks like I had that exactly backwards. >=20 > 2) we aren=E2=80=99t using wrap-script anywhere. I think a good use case= would > be the Python build system=E2=80=99s =E2=80=9Cwrap=E2=80=9D phase where w= e currently use > wrap-program. Most of the time we=E2=80=99d be dealing with Python scrip= ts, so > using wrap-script would be more appropriate here. It turns out we are using it in vpnc-scripts. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --//IivP0gvsAy3Can Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl34tK0ACgkQQarn3Mo9 g1Fn8hAAit5VBBYtbK4JT1pNgjZqQEhDD5YuD2MAV29q22g646KjXE5j6guQdgo7 NzdsMnxCmh+8Z53666hNO58axYl7tDcTa9Jdb+I+d69og5uyMb0N006W6L9e2PGy vup5rTnCBsU/VmUstTxvDtjRobVRgwfl1AOuwXIWGssEHwNP05RfR1a9lWmehr5Y vBaT4isKmc7HsQ8I8KMfhkvtekITQLE8vFrf4LzAuwRQcTJt9LIfiNdjGGewPF/e WTJIwkQizGhWL5mvDvH5mLQcufaw6mt0oAm/gy5zSgt9jdbjdOkE8XRKclPjzPVS cuf0Jzi9Z07w6QBNhMAl6E+BOH0nwBivZ3L8fkrcCSJziAIu8mFZFTlMKO2zz+64 5LkGBmVb/0+EshF8M2+5eaGJvrFKLK/cf3TpB2LUKWNtjIrssHY7Ip7C4NdmOcR9 Vi76Sj09CwV3gUH8701uzMElbzhUmSsHLO+RWIHbKEDGru/Wk4GWNmT5UdXTRNoN QInOhDfrMzbDpL70c5gMRkbWkWy79Imfo8e/w9y7+r5x1DaNKy4VObMYReJDrlkY pbEs2f++ahdh+PipfbYr6SSU/PrBd9+gh+xbov5vUiSdfWx4wuGuMkg2vqxKHqxQ J0d7YHaz81D04XnoBZRQPC1VE07S/JmXqH419Te8ZSagmgHj35M= =l8UY -----END PGP SIGNATURE----- --//IivP0gvsAy3Can--