Subject: bug#19743: closed (Close)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 16 Feb 2015 14:28:04 +0000

Your bug report

#19743: 'wrap-program' should preserve symbolic links

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19743: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19743
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Close
From: Andreas Enge <[email-masked]>
To: [email-masked]
Date: Mon, 16 Feb 2015 15:27:20 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Applied in commit da466f7ff63e34aca271e603090f25ba471f009e.

Andreas

Subject: 'wrap-program' should preserve symbolic links
From: [email-masked] (Ludovic Courtès)
To: [email-masked]
Date: Sun, 01 Feb 2015 22:41:57 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

When ‘wrap-program’ is called on a symbolic link, it should preserve its
symboliclinkness instead of copying it.

Ludo’.

diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index 4407f9a..56f682c 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -837,7 +837,7 @@ the previous wrapper."
     (if (zero? number)
         (let ((prog-real (string-append (dirname prog) "/."
                                         (basename prog) "-real")))
-          (copy-file prog prog-real)
+          (rename-file prog prog-real)
           prog-real)
         (wrapper-file-name number)))