From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fl9q4-00062f-0d for guix-patches@gnu.org; Thu, 02 Aug 2018 05:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fl9py-0004el-6j for guix-patches@gnu.org; Thu, 02 Aug 2018 05:24:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fl9py-0004eU-04 for guix-patches@gnu.org; Thu, 02 Aug 2018 05:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fl9px-0000We-QI for guix-patches@gnu.org; Thu, 02 Aug 2018 05:24:01 -0400 Subject: [bug#29951] [PATCH] WIP guix: Add wrap-script. Resent-Message-ID: References: <20180102204434.2716-1-rekado@elephly.net> From: Ricardo Wurmus In-reply-to: Date: Thu, 02 Aug 2018 10:37:26 +0200 Message-ID: <87o9elp3jt.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Jelle Licht Cc: h.goebel@crazy-compilers.com, 29951@debbugs.gnu.org Jelle Licht writes: > 2018-01-02 21:44 GMT+01:00 Ricardo Wurmus : > >> * guix/build/utils.scm (wrap-script): New procedure. >> --- [=E2=80=A6] >> >> +(define wrap-script >> + (let ((interpreter-regex >> + (make-regexp >> + (string-append "^#! ?(/bin/sh|/gnu/store/[^/]+/bin/(" >> > > Won't this be an issue for people using a customized store location? Yes. I suppose we could change this to use the actual store prefix. -- Ricardo