unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19743: 'wrap-program' should preserve symbolic links
@ 2015-02-01 21:41 Ludovic Courtès
  2015-02-16 14:27 ` bug#19743: Close Andreas Enge
       [not found] ` <20150215164206.GA6486@debian>
  0 siblings, 2 replies; 3+ messages in thread
From: Ludovic Courtès @ 2015-02-01 21:41 UTC (permalink / raw)
  To: 19743

[-- Attachment #1: Type: text/plain, Size: 133 bytes --]

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

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 477 bytes --]

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)))
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-23 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-01 21:41 bug#19743: 'wrap-program' should preserve symbolic links Ludovic Courtès
2015-02-16 14:27 ` bug#19743: Close Andreas Enge
     [not found] ` <20150215164206.GA6486@debian>
2015-02-23 19:45   ` bug#19743: 'wrap-program' should preserve symbolic links Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).