From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: 'python-build-system' Date: Tue, 30 Apr 2013 17:04:06 +0200 Message-ID: <8761z4kql5.fsf@gnu.org> References: <87sj34zvn1.fsf@karetnikov.org> <87ehdwkntv.fsf@gnu.org> <87sj2b8llf.fsf@karetnikov.org> <877gjmr2to.fsf@karetnikov.org> <87d2tdrv2o.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXC6U-00008Q-0P for bug-guix@gnu.org; Tue, 30 Apr 2013 11:04:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXC6L-0006yt-I8 for bug-guix@gnu.org; Tue, 30 Apr 2013 11:04:25 -0400 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=53365 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXC6L-0006nW-9L for bug-guix@gnu.org; Tue, 30 Apr 2013 11:04:17 -0400 In-Reply-To: <87d2tdrv2o.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 29 Apr 2013 21:33:03 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Nikita Karetnikov skribis: > >> --- a/guix/build/utils.scm >> +++ b/guix/build/utils.scm >> @@ -680,8 +680,8 @@ contents: >> This is useful for scripts that expect particular programs to be in $PA= TH, for >> programs that expect particular shared libraries to be in $LD_LIBRARY_P= ATH, or >> modules in $GUILE_LOAD_PATH, etc." >> - (let ((prog-real (string-append "." prog "-real")) >> - (prog-tmp (string-append "." prog "-tmp"))) >> + (let ((prog-real (string-append (dirname prog) "/." (basename prog) "= -real")) >> + (prog-tmp (string-append (dirname prog) "/." (basename prog) "= -tmp"))) > > OK. > >> (define (export-variable lst) >> ;; Return a string that exports an environment variable. >> (match lst >> @@ -709,11 +709,11 @@ modules in $GUILE_LOAD_PATH, etc." >> (with-output-to-file prog-tmp >> (lambda () >> (format #t >> - "#!~a~%~a~%exec ~a~%" >> + "#!~a~%~a~%exec ~a $@~%" > > Make it "#!~a~%~a~%exec ~a \"$@\"~%". > >> (which "bash") >> (string-join (map export-variable vars) >> "\n") >> - (canonicalize-path prog-real)))) >> + prog-real))) > > Keep =E2=80=98canonicalize-path=E2=80=99 here, it doesn=E2=80=99t hurt. I=E2=80=99ve applied your patch with these modifications. Thanks, Ludo=E2=80=99.