From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: wrap-program =?utf-8?Q?=E2=80=93=3E?= wrap-script Date: Thu, 19 Dec 2019 17:19:10 +0100 Message-ID: <875zicp9tt.fsf@gnu.org> References: <87h8263le2.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39681) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihyW9-00067w-Ex for guix-devel@gnu.org; Thu, 19 Dec 2019 11:19:14 -0500 In-Reply-To: <87h8263le2.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 11 Dec 2019 16:57:41 +0100") 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 Hello! Ricardo Wurmus skribis: > 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). Neat! > I noticed two things: > > 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. Or we could say that it=E2=80=99s not different from other shebangs: it=E2= =80=99s up to the packager to provide all the necessary dependencies. > 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. The would immediately reach hundreds of packages, so it=E2=80=99s a good id= ea! Thanks, Ludo=E2=80=99.