unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: base: Add libmachuser.so and libhurduser.so to libc.so's search path.
@ 2015-07-31 18:24 Manolis Ragkousis
  2015-08-18 15:38 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Manolis Ragkousis @ 2015-07-31 18:24 UTC (permalink / raw)
  To: Guix-devel

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



[-- Attachment #2: 0001-gnu-base-Add-libmachuser.so-and-libhurduser.so-to-li.patch --]
[-- Type: text/x-patch, Size: 1553 bytes --]

From aaad86209c236ea13bcc088fc470bce3f775fee3 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Fri, 24 Jul 2015 22:29:28 +0300
Subject: [PATCH] gnu: base: Add libmachuser.so and libhurduser.so to libc.so's
 search path.

* gnu/packages/base.scm (glibc/hurd): Add augment-libc.so phase.
---
 gnu/packages/base.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 8c03dd8..07a06c9 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -635,7 +635,19 @@ with the Linux kernel.")
 
     (arguments
      (substitute-keyword-arguments (package-arguments glibc/linux)
-       ((#:configure-flags original-configure-flags)
+       ((#:phases original-phases)
+        ;; Add libmachuser.so and libhurduser.so to libc.so's search path.
+        ;; See <http://lists.gnu.org/archive/html/bug-hurd/2015-07/msg00051.html>.
+        `(alist-cons-after
+          'install 'augment-libc.so
+          (lambda* (#:key outputs #:allow-other-keys)
+            (let* ((out (assoc-ref outputs "out")))
+              (substitute* (string-append out "/lib/libc.so")
+                (("/[^ ]+/lib/libc.so.0.3")
+                 (string-append out "/lib/libc.so.0.3" " libmachuser.so" " libhurduser.so"))))
+            #t)
+          ,original-phases))
+        ((#:configure-flags original-configure-flags)
         `(append (list "--host=i586-pc-gnu"
 
                        ;; We need this to get a working openpty() function.
-- 
2.4.6


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

* Re: [PATCH] gnu: base: Add libmachuser.so and libhurduser.so to libc.so's search path.
  2015-07-31 18:24 [PATCH] gnu: base: Add libmachuser.so and libhurduser.so to libc.so's search path Manolis Ragkousis
@ 2015-08-18 15:38 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-08-18 15:38 UTC (permalink / raw)
  To: Manolis Ragkousis; +Cc: Guix-devel

Manolis Ragkousis <manolis837@gmail.com> skribis:

> From aaad86209c236ea13bcc088fc470bce3f775fee3 Mon Sep 17 00:00:00 2001
> From: Manolis Ragkousis <manolis837@gmail.com>
> Date: Fri, 24 Jul 2015 22:29:28 +0300
> Subject: [PATCH] gnu: base: Add libmachuser.so and libhurduser.so to libc.so's
>  search path.
>
> * gnu/packages/base.scm (glibc/hurd): Add augment-libc.so phase.

OK!  For wip-hurd, I guess?

Ludo’.

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

end of thread, other threads:[~2015-08-18 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 18:24 [PATCH] gnu: base: Add libmachuser.so and libhurduser.so to libc.so's search path Manolis Ragkousis
2015-08-18 15:38 ` 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).