all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: manolis837@gmail.com
To: guix-devel@gnu.org
Subject: [PATCH] gnu: glibc-hurd: Force mach/hurd/libpthread subdirs to build first.
Date: Sun, 13 Nov 2016 15:19:46 +0200	[thread overview]
Message-ID: <20161113131946.4185-2-manolis837@gmail.com> (raw)
In-Reply-To: <20161113131946.4185-1-manolis837@gmail.com>

From: Manolis Ragkousis <manolis837@gmail.com>

* gnu/packages/base.scm (glibc/hurd): Avoid linking errors by forcing
mach/hurd/libpthread glibc subdirs to build before anything else.
---
 gnu/packages/base.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 1c01874..abefe4e 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -714,7 +714,17 @@ with the Linux kernel.")
              ;; Use the right 'pwd'.
              (substitute* "configure"
                (("/bin/pwd") "pwd")))
-          ,original-phases)))
+           (alist-replace
+            'build
+            (lambda _
+              ;; Force mach/hurd/libpthread subdirs to build first in order to avoid
+              ;; linking errors.
+              (zero?
+               (and (system* "make" "mach/subdir_lib")
+                    (system* "make" "hurd/subdir_lib")
+                    (system* "make" "libpthread/subdir_lib")
+                    (system* "make"))))
+            ,original-phases))))
         ((#:configure-flags original-configure-flags)
         `(append (list "--host=i586-pc-gnu"
 
-- 
2.10.2

  reply	other threads:[~2016-11-13 13:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-13 13:19 [PATCH] gnu: glibc-hurd: Force mach/hurd/libpthread subdirs to build manolis837
2016-11-13 13:19 ` manolis837 [this message]
2016-11-14 13:05   ` [PATCH] gnu: glibc-hurd: Force mach/hurd/libpthread subdirs to build first Ludovic Courtès
2016-11-30 13:21     ` Manolis Ragkousis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161113131946.4185-2-manolis837@gmail.com \
    --to=manolis837@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.