[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/20: gnu: base: Disable bogus code in Hurd's glibc.
From: |
Manolis Fragkiskos Ragkousis |
Subject: |
12/20: gnu: base: Disable bogus code in Hurd's glibc. |
Date: |
Thu, 11 Feb 2016 13:39:41 +0000 |
phant0mas pushed a commit to branch wip-hurd
in repository guix.
commit 6aefbc419574901870df40b213f9c21c26f625c9
Author: Manolis Ragkousis <address@hidden>
Date: Fri Jul 31 19:08:39 2015 +0300
gnu: base: Disable bogus code in Hurd's glibc.
* gnu/packages/patches/glibc-hurd-disable-memmove-fix.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-disable-memmove-fix.patch | 29 ++++++++++++++++++++
3 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/gnu-system.am b/gnu-system.am
index 9fd4ee5..bd6e759 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -496,6 +496,7 @@ dist_patch_DATA =
\
gnu/packages/patches/glibc-o-largefile.patch \
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/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 94fc6c1..b6890e6 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -675,6 +675,7 @@ with the Linux kernel.")
(base32
"0fkmn1kfsbhyrkf1wqqvc47dl5bzflnbcggjjfp5s9c489z916zw"))
(patches (list (search-patch "glibc-hurd-libs.patch")
+ (search-patch
"glibc-hurd-disable-memmove-fix.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-disable-memmove-fix.patch
b/gnu/packages/patches/glibc-hurd-disable-memmove-fix.patch
new file mode 100644
index 0000000..0146768
--- /dev/null
+++ b/gnu/packages/patches/glibc-hurd-disable-memmove-fix.patch
@@ -0,0 +1,29 @@
+We need to disable this, or else memmove will not work properly in Hurd's
glibc.
+
+From 69f807d6a4afa43e7a596e04f22923567b235ce9 Mon Sep 17 00:00:00 2001
+From: Samuel Thibault <address@hidden>
+Date: Wed, 29 Jul 2015 10:34:01 +0200
+Subject: [PATCH] Disable the fix for now, the resulting code seems bogus
+
+---
+ .topmsg | 11 +++++++++++
+ sysdeps/mach/pagecopy.h | 3 +++
+ 2 files changed, 14 insertions(+)
+
+diff --git a/sysdeps/mach/pagecopy.h b/sysdeps/mach/pagecopy.h
+index 29b73ce..9d1f4de 100644
+--- a/sysdeps/mach/pagecopy.h
++++ b/sysdeps/mach/pagecopy.h
+@@ -20,7 +20,10 @@
+
+ /* Threshold at which vm_copy is more efficient than well-optimized copying
+ by words. This parameter should be tuned as necessary. */
++#define PAGE_THRESHOLD (16384) /* XXX Tune this. */
++#if 0
+ #define PAGE_COPY_THRESHOLD (16384) /* XXX Tune this. */
++#endif
+
+ #define PAGE_SIZE __vm_page_size
+ #define PAGE_COPY_FWD(dstp, srcp, nbytes_left, nbytes)
\
+--
+2.4.6
\ No newline at end of file
- 02/20: gnu: cross-base: Add support to cross-build libc for GNU/Hurd., (continued)
- 02/20: gnu: cross-base: Add support to cross-build libc for GNU/Hurd., Manolis Fragkiskos Ragkousis, 2016/02/11
- 03/20: gnu: cross-base: Make it aware of non-Linux (ie. Hurd) systems., Manolis Fragkiskos Ragkousis, 2016/02/11
- 04/20: gnu: gcc: Also substitute the dynamic linker name for GNU (ie. Hurd) systems., Manolis Fragkiskos Ragkousis, 2016/02/11
- 05/20: gnu: hurd: Pass --build to gnumach-headers when not cross building., Manolis Fragkiskos Ragkousis, 2016/02/11
- 06/20: gnu: hurd: Pass --build to hurd-headers when not cross building., Manolis Fragkiskos Ragkousis, 2016/02/11
- 07/20: gnu: base: Updated glibc-hurd to 2.19 and removed patches., Manolis Fragkiskos Ragkousis, 2016/02/11
- 08/20: gnu: base: Added glibc-for-target macro., Manolis Fragkiskos Ragkousis, 2016/02/11
- 09/20: gnu: cross-base: Build the correct cross-mig., Manolis Fragkiskos Ragkousis, 2016/02/11
- 10/20: gnu: base: Build glibc-hurd for i586-pc-gnu instead of i686-pc-gnu., Manolis Fragkiskos Ragkousis, 2016/02/11
- 11/20: gnu: make-bootstrap: Produce the correct %glibc-bootstrap-tarball for Hurd systems., Manolis Fragkiskos Ragkousis, 2016/02/11
- 12/20: gnu: base: Disable bogus code in Hurd's glibc.,
Manolis Fragkiskos Ragkousis <=
- 13/20: gnu: hurd: Add hurd-kernel-headers package., Manolis Fragkiskos Ragkousis, 2016/02/11
- 14/20: gnu: glibc/hurd: Use hurd-kernel-headers package., Manolis Fragkiskos Ragkousis, 2016/02/11
- 15/20: gnu: cross-gcc, cross-libc: Use hurd-kernel-headers., Manolis Fragkiskos Ragkousis, 2016/02/11
- 16/20: gnu: base: Add libmachuser.so and libhurduser.so to libc.so's search path., Manolis Fragkiskos Ragkousis, 2016/02/11
- 17/20: gnu: glibc/hurd: Make glibc aware of "--with-headers" argument., Manolis Fragkiskos Ragkousis, 2016/02/11
- 18/20: gnu: commencement: Add support for a native GNU/Hurd system., Manolis Fragkiskos Ragkousis, 2016/02/11
- 19/20: gnu: glibc-hurd: Update to 20151031., Manolis Fragkiskos Ragkousis, 2016/02/11
- 20/20: gnu: glibc/linux: Rename linux-headers input to kernel-headers., Manolis Fragkiskos Ragkousis, 2016/02/11