all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: glibc/hurd: Make glibc aware of "--with-headers" argument.
@ 2015-08-26 22:01 Manolis Ragkousis
  2015-09-02 12:39 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Manolis Ragkousis @ 2015-08-26 22:01 UTC (permalink / raw)
  To: Guix-devel

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

Hello guys

With this patch glibc takes into account the '--with-headers' argument.

Samuel reviewed the glibc patch and pushed it to hurd's glibc so we
can safely use it.

Manolis

[-- Attachment #2: 0001-gnu-glibc-hurd-Make-glibc-aware-of-with-headers-argu.patch --]
[-- Type: text/x-patch, Size: 5630 bytes --]

From c690517dac618d3955866b3e8d2d8cde8f0ac7a9 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Sat, 22 Aug 2015 21:41:47 +0300
Subject: [PATCH] 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(+)
 create mode 100644 gnu/packages/patches/glibc-hurd-check-sysheaders.patch

diff --git a/gnu-system.am b/gnu-system.am
index 4dc5f91..eb52fab 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -470,6 +470,7 @@ dist_patch_DATA =						\
   gnu/packages/patches/glibc-locales.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/gobject-introspection-absolute-shlib-path.patch \
   gnu/packages/patches/gobject-introspection-cc.patch		\
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 1939551..1f3cf1b 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -623,6 +623,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 <manolis837@gmail.com>
+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
+
-- 
2.5.0


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

* Re: [PATCH] gnu: glibc/hurd: Make glibc aware of "--with-headers" argument.
  2015-08-26 22:01 [PATCH] gnu: glibc/hurd: Make glibc aware of "--with-headers" argument Manolis Ragkousis
@ 2015-09-02 12:39 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-09-02 12:39 UTC (permalink / raw)
  To: Manolis Ragkousis; +Cc: Guix-devel

Manolis Ragkousis <manolis837@gmail.com> skribis:

> With this patch glibc takes into account the '--with-headers' argument.
>
> Samuel reviewed the glibc patch and pushed it to hurd's glibc so we
> can safely use it.

Then OK for ‘wip-hurd’.

Thanks, and sorry for the late reply!

Ludo’.

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

end of thread, other threads:[~2015-09-02 12:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-26 22:01 [PATCH] gnu: glibc/hurd: Make glibc aware of "--with-headers" argument Manolis Ragkousis
2015-09-02 12:39 ` Ludovic Courtès

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.