[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/19: gnu: glibc/hurd: Make glibc aware of "--with-headers" argument.
From: |
Manolis Fragkiskos Ragkousis |
Subject: |
17/19: gnu: glibc/hurd: Make glibc aware of "--with-headers" argument. |
Date: |
Mon, 28 Dec 2015 19:17:06 +0000 |
phant0mas pushed a commit to branch wip-hurd
in repository guix.
commit 18a912ccecd5a407dc2d6a118f0d6f272d3decee
Author: Manolis Ragkousis <address@hidden>
Date: Sat Aug 22 21:41:47 2015 +0300
gnu: glibc/hurd: Make glibc aware of "--with-headers" argument.
* gnu/packages/patches/glibc-hurd-check-sysheaders.patch: New file
* gnu/packages/base.scm (glibc/hurd)[source]: Add patch.
* gnu-system.am (dist_patch_DATA): Add it.
---
gnu-system.am | 1 +
gnu/packages/base.scm | 1 +
.../patches/glibc-hurd-check-sysheaders.patch | 117 ++++++++++++++++++++
3 files changed, 119 insertions(+), 0 deletions(-)
diff --git a/gnu-system.am b/gnu-system.am
index e13a156..88f254c 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -491,6 +491,7 @@ dist_patch_DATA =
\
gnu/packages/patches/glibc-versioned-locpath.patch \
gnu/packages/patches/glibc-hurd-libs.patch \
gnu/packages/patches/glibc-hurd-disable-memmove-fix.patch \
+ gnu/packages/patches/glibc-hurd-check-sysheaders.patch \
gnu/packages/patches/gmp-arm-asm-nothumb.patch \
gnu/packages/patches/gmp-faulty-test.patch \
gnu/packages/patches/gnucash-price-quotes-perl.patch \
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index f6be78d..fc358f7 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -664,6 +664,7 @@ with the Linux kernel.")
"0fkmn1kfsbhyrkf1wqqvc47dl5bzflnbcggjjfp5s9c489z916zw"))
(patches (list (search-patch "glibc-hurd-libs.patch")
(search-patch
"glibc-hurd-disable-memmove-fix.patch")
+ (search-patch "glibc-hurd-check-sysheaders.patch")
(search-patch
"libpthread-remove-duplicate.patch")))))
;; Libc provides <hurd.h>, which includes a bunch of Hurd and Mach headers,
diff --git a/gnu/packages/patches/glibc-hurd-check-sysheaders.patch
b/gnu/packages/patches/glibc-hurd-check-sysheaders.patch
new file mode 100644
index 0000000..4167b6d
--- /dev/null
+++ b/gnu/packages/patches/glibc-hurd-check-sysheaders.patch
@@ -0,0 +1,117 @@
+With this patch glibc takes into account the '--with-headers' argument.
+
+From 39b09d8cb8ee3b3ca0ca9fcd772df3fab41c02f8 Mon Sep 17 00:00:00 2001
+From: Manolis Ragkousis <address@hidden>
+Date: Fri, 14 Aug 2015 01:20:59 +0300
+Subject: [PATCH] Check sysheaders when looking for Mach and Hurd headers.
+
+* sysdeps/mach/configure.ac: Add sysheaders check.
+* sysdeps/mach/configure: Regenerate.
+* sysdeps/mach/hurd/configure.ac: Add sysheaders check.
+* sysdeps/mach/hurd/configure: Regenerate.
+---
+ sysdeps/mach/configure | 9 +++++++++
+ sysdeps/mach/configure.ac | 9 +++++++++
+ sysdeps/mach/hurd/configure | 9 +++++++++
+ sysdeps/mach/hurd/configure.ac | 9 +++++++++
+ 4 files changed, 36 insertions(+)
+
+diff --git a/sysdeps/mach/configure b/sysdeps/mach/configure
+index 290a5ff..d7c102c 100644
+--- a/sysdeps/mach/configure
++++ b/sysdeps/mach/configure
+@@ -165,6 +165,11 @@ fi
+ config_vars="$config_vars
+ MIG = $MIG"
+
++if test -n "$sysheaders"; then
++ OLD_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
++fi
++
+ ### Sanity checks for Mach header installation
+
+
+@@ -553,3 +558,7 @@ if test $hurd_cv_mig_retcode = yes; then
+ $as_echo "#define HAVE_MIG_RETCODE 1" >>confdefs.h
+
+ fi
++
++if test -n "$sysheaders"; then
++ CPPFLAGS=$OLD_CPPFLAGS
++fi
+diff --git a/sysdeps/mach/configure.ac b/sysdeps/mach/configure.ac
+index 52d47e0..f972270 100644
+--- a/sysdeps/mach/configure.ac
++++ b/sysdeps/mach/configure.ac
+@@ -6,6 +6,11 @@ if test "x$MIG" = xMISSING; then
+ fi
+ LIBC_CONFIG_VAR([MIG], [$MIG])
+
++if test -n "$sysheaders"; then
++ OLD_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
++fi
++
+ ### Sanity checks for Mach header installation
+ AC_CHECK_HEADER(mach/mach_types.h,,
+ [AC_MSG_ERROR([cannot find Mach headers])], -)
+@@ -124,3 +129,7 @@ if test $hurd_cv_mig_retcode = yes; then
+ fi])
+
+ hurd_MIG_RETCODE
++
++if test -n "$sysheaders"; then
++ CPPFLAGS=$OLD_CPPFLAGS
++fi
+diff --git a/sysdeps/mach/hurd/configure b/sysdeps/mach/hurd/configure
+index a0f9721..4b2ad37 100644
+--- a/sysdeps/mach/hurd/configure
++++ b/sysdeps/mach/hurd/configure
+@@ -17,6 +17,11 @@ case "$machine" in
+ ;;
+ esac
+
++if test -n "$sysheaders"; then
++ OLD_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
++fi
++
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
+ $as_echo_n "checking Hurd header version... " >&6; }
+@@ -50,3 +55,7 @@ $as_echo "$libc_cv_hurd_version" >&6; }
+ if test "x$libc_cv_hurd_version" != xok; then
+ as_fn_error $? "Hurd headers not installed or too old" "$LINENO" 5
+ fi
++
++if test -n "$sysheaders"; then
++ CPPFLAGS=$OLD_CPPFLAGS
++fi
+diff --git a/sysdeps/mach/hurd/configure.ac b/sysdeps/mach/hurd/configure.ac
+index ad915a5..db783a0 100644
+--- a/sysdeps/mach/hurd/configure.ac
++++ b/sysdeps/mach/hurd/configure.ac
+@@ -17,6 +17,11 @@ case "$machine" in
+ ;;
+ esac
+
++if test -n "$sysheaders"; then
++ OLD_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
++fi
++
+ AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
+ AC_TRY_COMPILE(dnl
+ [#include <hurd/version.h>], [
+@@ -29,3 +34,7 @@ AC_TRY_COMPILE(dnl
+ if test "x$libc_cv_hurd_version" != xok; then
+ AC_MSG_ERROR(Hurd headers not installed or too old)
+ fi
++
++if test -n "$sysheaders"; then
++ CPPFLAGS=$OLD_CPPFLAGS
++fi
+--
+2.5.0
+
- 08/19: gnu: base: Added glibc-for-target macro., (continued)
- 08/19: gnu: base: Added glibc-for-target macro., Manolis Fragkiskos Ragkousis, 2015/12/28
- 10/19: gnu: base: Build glibc-hurd for i586-pc-gnu instead of i686-pc-gnu., Manolis Fragkiskos Ragkousis, 2015/12/28
- 07/19: gnu: base: Updated glibc-hurd to 2.19 and removed patches., Manolis Fragkiskos Ragkousis, 2015/12/28
- 09/19: gnu: cross-base: Build the correct cross-mig., Manolis Fragkiskos Ragkousis, 2015/12/28
- 12/19: gnu: base: Disable bogus code in Hurd's glibc., Manolis Fragkiskos Ragkousis, 2015/12/28
- 14/19: gnu: glibc/hurd: Use hurd-kernel-headers package., Manolis Fragkiskos Ragkousis, 2015/12/28
- 13/19: gnu: hurd: Add hurd-kernel-headers package., Manolis Fragkiskos Ragkousis, 2015/12/28
- 11/19: gnu: make-bootstrap: Produce the correct %glibc-bootstrap-tarball for Hurd systems., Manolis Fragkiskos Ragkousis, 2015/12/28
- 15/19: gnu: cross-gcc, cross-libc: Use hurd-kernel-headers., Manolis Fragkiskos Ragkousis, 2015/12/28
- 16/19: gnu: base: Add libmachuser.so and libhurduser.so to libc.so's search path., Manolis Fragkiskos Ragkousis, 2015/12/28
- 17/19: gnu: glibc/hurd: Make glibc aware of "--with-headers" argument.,
Manolis Fragkiskos Ragkousis <=
- 18/19: gnu: commencement: Add support for a native GNU/Hurd system., Manolis Fragkiskos Ragkousis, 2015/12/28
- 19/19: gnu: glibc-hurd: Update to 20151031., Manolis Fragkiskos Ragkousis, 2015/12/28