* [PATCH] gnu: libffi: Symlink header files instead of moving them into {$prefix}/include to make them consistent with installed pkg-config file.
@ 2014-01-27 12:24 Sree Harsha Totakura
2014-01-27 14:32 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Sree Harsha Totakura @ 2014-01-27 12:24 UTC (permalink / raw)
To: guix-devel
* gnu/packages/libffi.scm (libffi): Symlink header files instead of moving them.
---
gnu/packages/libffi.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index d1a834d..978481a 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -32,8 +32,10 @@
(with-directory-excursion
(string-append out "/lib/libffi-3.0.13/include")
(for-each (lambda (h)
- (format #t "moving `~a' to includedir~%" h)
- (rename-file h (string-append out "/include/" h)))
+ (format #t "Linking `~a' to includedir~%" h)
+ (symlink
+ (string-append out "/lib/libffi-3.0.13/include/" h)
+ (string-append out "/include/" h)))
(scandir "."
(lambda (x)
(not (member x '("." ".."))))))))))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: libffi: Symlink header files instead of moving them into {$prefix}/include to make them consistent with installed pkg-config file.
2014-01-27 12:24 [PATCH] gnu: libffi: Symlink header files instead of moving them into {$prefix}/include to make them consistent with installed pkg-config file Sree Harsha Totakura
@ 2014-01-27 14:32 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-01-27 14:32 UTC (permalink / raw)
To: Sree Harsha Totakura; +Cc: guix-devel
Sree Harsha Totakura <sreeharsha@totakura.in> skribis:
> --- a/gnu/packages/libffi.scm
> +++ b/gnu/packages/libffi.scm
> @@ -32,8 +32,10 @@
> (with-directory-excursion
> (string-append out "/lib/libffi-3.0.13/include")
> (for-each (lambda (h)
> - (format #t "moving `~a' to includedir~%" h)
> - (rename-file h (string-append out "/include/" h)))
> + (format #t "Linking `~a' to includedir~%" h)
> + (symlink
> + (string-append out "/lib/libffi-3.0.13/include/" h)
> + (string-append out "/include/" h)))
> (scandir "."
> (lambda (x)
> (not (member x '("." ".."))))))))))
I pushed a slightly different version in ‘core-updates’, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-27 14:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-27 12:24 [PATCH] gnu: libffi: Symlink header files instead of moving them into {$prefix}/include to make them consistent with installed pkg-config file Sree Harsha Totakura
2014-01-27 14:32 ` 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).