emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#19742: closed ('wrap-program' should really preser


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19742: closed ('wrap-program' should really preserve argv[0])
Date: Mon, 16 Feb 2015 14:27:03 +0000

Your message dated Mon, 16 Feb 2015 15:26:28 +0100
with message-id <address@hidden>
and subject line Close
has caused the debbugs.gnu.org bug report #19742,
regarding 'wrap-program' should really preserve argv[0]
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19742: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19742
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 'wrap-program' should really preserve argv[0] Date: Sun, 01 Feb 2015 22:39:53 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
It should be enough, and more appropriate, to simply preserve argv[0] in
wrappers.

Ludo’.

diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index 4407f9a..ebe70a3 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -870,8 +870,7 @@ the previous wrapper."
     (with-output-to-file prog-tmp
       (lambda ()
         (format #t
-                "#!~a~%~a~%exec -a \"~a\" \"~a\" \"address@hidden"~%"
-                (which "bash")
+                "#!~a~%~a~%exec -a \"$0\" \"~a\" \"address@hidden"~%"
                 (string-join (map export-variable vars)
                              "\n")
                 (canonicalize-path prog)

--- End Message ---
--- Begin Message --- Subject: Close Date: Mon, 16 Feb 2015 15:26:28 +0100 User-agent: Mutt/1.5.23 (2014-03-12)
Applied in commit b01f89675d03202851a00c38d4995424bbb1879f.

Andreas



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]