Skip to contentSkip to conversation

Patch and Upgrades

PATCH In review Saul Wold 3 participants 11 messages Jan 9, 2015 – Jan 14, 2015

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

cover Patch and Upgrades

Ross, Richard:

Here is another round of updates, these are cleaned up from the first batch.

libaio, blktrace and ltp do not build correctly with LSB and the -pie and -fpie so that patch is there.

Sau!

The following changes since commit b61a2acc321489c3427f0afa3059486dc144a13b:

bind: Update libxml2 check to make it deterministic. (2015-01-08 09:21:18 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib 2d305cab23e64b83ce9a0e0922c24143c4305992
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=sgw/updates

Saul Wold (5):
usbutils: Add version 008
gnu-efi: Upgrade to 3.0.1
security_flags: disable pie support for libaio, blktrace and ltp
libaio: Upgrade to 0.3.110
glibc: Fix up minimal build with libc-libm

 meta/conf/distro/include/security_flags.inc        |    3 +
 .../gnu-efi/gnu-efi/parallel-make.patch            |   22 -
 .../gnu-efi/{gnu-efi_3.0u.bb => gnu-efi_3.0.1.bb}  |   17 +-
 meta/recipes-bsp/usbutils/usbutils-008/iconv.patch |   41 +
 meta/recipes-bsp/usbutils/usbutils_008.bb          |   28 +
 .../glibc/glibc/eglibc-use-option-groups.patch     | 1379 ++++++++++----------
 meta/recipes-core/glibc/glibc_2.20.bb              |    3 +
 .../recipes-extended/libaio/libaio/00_arches.patch |  208 +--
 .../libaio/libaio/libaio-aarch64.patch             |   28 -
 .../libaio/libaio/libaio_fix_for_mips64.patch      |   68 +-
 .../recipes-extended/libaio/libaio/toolchain.patch |   27 -
 .../{libaio_0.3.109.bb => libaio_0.3.110.bb}       |   11 +-
 12 files changed, 838 insertions(+), 997 deletions(-)
 delete mode 100644 meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make.patch
 rename meta/recipes-bsp/gnu-efi/{gnu-efi_3.0u.bb => gnu-efi_3.0.1.bb} (55%)
 create mode 100644 meta/recipes-bsp/usbutils/usbutils-008/iconv.patch
 create mode 100644 meta/recipes-bsp/usbutils/usbutils_008.bb
 delete mode 100644 meta/recipes-extended/libaio/libaio/libaio-aarch64.patch
 delete mode 100644 meta/recipes-extended/libaio/libaio/toolchain.patch
 rename meta/recipes-extended/libaio/{libaio_0.3.109.bb => libaio_0.3.110.bb} (74%)
Signature · 1 line
2.1.0
author
#1 lore raw

PATCH v2 1/5 usbutils: Add version 008

The latest version of usbutil (v008) uses the latest version of udev (v196 or greater) which is only available as part of the systemd package. So add systemd as a DEPENDS and REQUIRED_DISTRO_FEATURE.

Add v008 version of iconv.patch

COPYING file is GPLv2, but has newer formatting and address change.

---
 meta/recipes-bsp/usbutils/usbutils-008/iconv.patch | 41 ++++++++++++++++++++++
 meta/recipes-bsp/usbutils/usbutils_008.bb          | 28 +++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 meta/recipes-bsp/usbutils/usbutils-008/iconv.patch
 create mode 100644 meta/recipes-bsp/usbutils/usbutils_008.bb
meta/recipes-bsp/usbutils/usbutils-008/iconv.patch new file +41 -0
new file mode 100644
index 0000000..6455567
@@ -0,0 +1,41 @@
+This patch adds support for detecting iconv support using autotools
+uclibc does not have iconv implementation inside libc like glibc, therefore
+the existing checks were not sufficient, it worked for glibc but not for
+uclibc. The new patch portably detects the iconv support and adds the
+libiconv to linker cmdline
+
+This patch should be submitted upstream too
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+
+Index: usbutils-008/configure.ac
+===================================================================
+--- usbutils-008.orig/configure.ac
++++ usbutils-008/configure.ac
+@@ -10,7 +10,9 @@ AC_USE_SYSTEM_EXTENSIONS
+ AC_SYS_LARGEFILE
+ 
+ AC_CHECK_HEADERS([byteswap.h])
+-AC_CHECK_FUNCS([nl_langinfo iconv])
++
++AM_GNU_GETTEXT
++AM_ICONV
+ 
+ PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0.0)
+ 
+Index: usbutils-008/Makefile.am
+===================================================================
+--- usbutils-008.orig/Makefile.am
++++ usbutils-008/Makefile.am
+@@ -29,7 +29,8 @@ lsusb_CPPFLAGS = \
+ 
+ lsusb_LDADD = \
+ 	$(LIBUSB_LIBS) \
+-	$(UDEV_LIBS)
++	$(UDEV_LIBS) \
++	$(LIBICONV)
+ 
+ man_MANS = \
+ 	lsusb.8	\
meta/recipes-bsp/usbutils/usbutils_008.bb new file +28 -0
new file mode 100644
index 0000000..b032d4e
@@ -0,0 +1,28 @@
+SUMMARY = "Host side USB console utilities"
+DESCRIPTION = "Contains the lsusb utility for inspecting the devices connected to the USB bus."
+HOMEPAGE = "http://www.linux-usb.org"
+SECTION = "base"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+DEPENDS = "libusb zlib virtual/libiconv systemd"
+
+SRC_URI = "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \
+           file://usb-devices-avoid-dependency-on-bash.patch \
+           file://Fix-NULL-pointer-crash.patch \
+           file://iconv.patch \
+          "
+
+RC_URI[md5sum] = "cb20148c2e784577e924a7b4c560c8fb"
+SRC_URI[sha256sum] = "6d5f16c2961df37e22e492c736a3e162a8fde24480f23a40d85f79af80d3fe95"
+
+inherit autotools gettext pkgconfig distro_features_check
+# This version of usbutils relies on the udev from systemd, so unless 
+# we can decouple udev from system, we require systemd for now.
+REQUIRED_DISTRO_FEATURES = "systemd"
+
+FILES_${PN}-dev += "${datadir}/pkgconfig"
+
+RDEPENDS_${PN} = "libudev"
+RDEPENDS_${PN}-ptest = "libboost-system libboost-thread"
Signature · 1 line
2.1.0
author
#2 lore raw

PATCH 3/5 security_flags: disable pie support for libaio, blktrace and ltp

In reply to Saul Wold

libaio when built with pie and fpie does not link correctly with blktrace or ltp so we need to disable those flags until a better solution comes along.

---
 meta/conf/distro/include/security_flags.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/conf/distro/include/security_flags.inc +3 -0
index 840f68a..d6f7e9c 100644
@@ -16,6 +16,7 @@ SECURITY_CFLAGS_pn-lttng-tools_arm = "${SECURITY_NO_PIE_CFLAGS}"
 
 SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-blktrace = "${SECURITY_NO_PIE_CFLAGS}"
 # Curl seems to check for FORTIFY_SOURCE in CFLAGS, but even assigned
 # to CPPFLAGS it gets picked into CFLAGS in bitbake.
 #TARGET_CPPFLAGS_pn-curl += "-D_FORTIFY_SOURCE=2"
@@ -43,6 +44,7 @@ SECURITY_CFLAGS_pn-gst-plugins-gl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gstreamer1.0-plugins-good = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-harfbuzz = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-kexec-tools = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libaio = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
@@ -51,6 +53,7 @@ SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcre = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libproxy = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-lttng-ust = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-mesa = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-mesa-gl = "${SECURITY_NO_PIE_CFLAGS}"
Signature · 1 line
2.1.0
author
#5 lore raw

PATCH v2 2/5 gnu-efi: Upgrade to 3.0.1

In reply to Saul Wold

This newer version adds ARM64 support and the license information is updated to correctly reflect BSD and GPLv2

Remove parallel-make.patch that was accepted upstream.

---
 .../gnu-efi/gnu-efi/parallel-make.patch            | 22 ----------------------
 .../gnu-efi/{gnu-efi_3.0u.bb => gnu-efi_3.0.1.bb}  | 17 +++++++++--------
 2 files changed, 9 insertions(+), 30 deletions(-)
 delete mode 100644 meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make.patch
 rename meta/recipes-bsp/gnu-efi/{gnu-efi_3.0u.bb => gnu-efi_3.0.1.bb} (55%)
meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make.patch deleted +0 -22
deleted file mode 100644
index 27c94e8..0000000
@@ -1,22 +0,0 @@
-Fix parallel make failure
-
-Upstream-Status: Submitted [Maintainer directly]
-
-Add a missing dependency which resulted in a race leading to failure
-on larger values of -j.
-
-Signed-off-by: Darren Hart <[email protected]>
-
-Index: gnu-efi-3.0/Makefile
-===================================================================
---- gnu-efi-3.0.orig/Makefile
-+++ gnu-efi-3.0/Makefile
-@@ -42,6 +42,8 @@ include $(SRCDIR)/Make.defaults
- 
- SUBDIRS = lib gnuefi inc apps
- 
-+gnuefi: lib
-+
- all:	check_gcc $(SUBDIRS)
- 
- $(SUBDIRS):
meta/recipes-bsp/gnu-efi/gnu-efi_3.0.1.bb renamed from meta/recipes-bsp/gnu-efi/gnu-efi_3.0u.bb +9 -8
similarity index 55%
rename from meta/recipes-bsp/gnu-efi/gnu-efi_3.0u.bb
rename to meta/recipes-bsp/gnu-efi/gnu-efi_3.0.1.bb
index dbf2a07..f2603db 100644
@@ -1,19 +1,20 @@
 SUMMARY = "Libraries for producing EFI binaries"
 HOMEPAGE = "http://sourceforge.net/projects/gnu-efi/"
 SECTION = "devel"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://debian/copyright;md5=5fb358a180f484b285b0d99acdc29666"
+LICENSE = "GPLv2+ | BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://README.efilib;md5=d234379cbdd5c97c64554da2fcd07a8e \
+                    file://gnuefi/crt0-efi-aarch64.S;endline=19;md5=16ba1cab9013de9dd9746d1ee44f5b14 \
+                    file://gnuefi/crt0-efi-arm.S;endline=10;md5=b413c332f01f0265911d4aba42d5cf2c \
+                   "
 
-SRC_URI = "http://downloads.sourceforge.net/gnu-efi/gnu-efi_3.0u.orig.tar.gz \
-           file://parallel-make.patch \
+SRC_URI = "http://downloads.sourceforge.net/${BPN}/${BP}.tar.bz2 \
            file://parallel-make-archives.patch \
           "
-SRC_URI[md5sum] = "d15d3c700e79a1e2938544d73edc572d"
-SRC_URI[sha256sum] = "3c0d450d5829204ca05dcb3b2aae772e52c379b7c7e09146759c6315606f934e"
 
-COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
+SRC_URI[md5sum] = "c4099c443b6b0c2b04dedc33e7814ec0"
+SRC_URI[sha256sum] = "e2e8d5940347eebfb00eaaeef107a8ba59e7838e40bc716c74d9a36fff648f1f"
 
-S = "${WORKDIR}/gnu-efi-3.0"
+COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
 
 def gnu_efi_arch(d):
     import re
Signature · 1 line
2.1.0
author
#6 lore raw

PATCH 4/5 libaio: Upgrade to 0.3.110

In reply to Saul Wold

Remove old patches and rebase existing ones
Add libc for x86 for stack-protector bounce function (__stack_chk_fail_local)

---
 .../recipes-extended/libaio/libaio/00_arches.patch | 208 ++-------------------
 .../libaio/libaio/libaio-aarch64.patch             |  28 ---
 .../libaio/libaio/libaio_fix_for_mips64.patch      |  68 ++++---
 .../recipes-extended/libaio/libaio/toolchain.patch |  27 ---
 .../{libaio_0.3.109.bb => libaio_0.3.110.bb}       |  11 +-
 5 files changed, 64 insertions(+), 278 deletions(-)
 delete mode 100644 meta/recipes-extended/libaio/libaio/libaio-aarch64.patch
 delete mode 100644 meta/recipes-extended/libaio/libaio/toolchain.patch
 rename meta/recipes-extended/libaio/{libaio_0.3.109.bb => libaio_0.3.110.bb} (74%)
meta/recipes-extended/libaio/libaio/00_arches.patch +18 -190
index 91f4588..9d6447d 100644
@@ -2,10 +2,10 @@ Upstream-Status: Inappropriate [embedded specific]
 
 from openembedded, added by Qing He <[email protected]>
 
-Index: libaio-0.3.109/src/syscall-m68k.h
+Index: libaio-0.3.110/src/syscall-m68k.h
 ===================================================================
 --- /dev/null
-+++ libaio-0.3.109/src/syscall-m68k.h
++++ libaio-0.3.110/src/syscall-m68k.h
 @@ -0,0 +1,78 @@
 +#define __NR_io_setup		241
 +#define __NR_io_destroy		242
@@ -85,164 +85,27 @@ Index: libaio-0.3.109/src/syscall-m68k.h
 +return (type) __res; \
 +}
 +
-Index: libaio-0.3.109/src/syscall-sparc.h
+Index: libaio-0.3.110/src/syscall.h
 ===================================================================
---- /dev/null
-+++ libaio-0.3.109/src/syscall-sparc.h
-@@ -0,0 +1,130 @@
-+/* $Id: unistd.h,v 1.74 2002/02/08 03:57:18 davem Exp $ */
-+
-+/*
-+ * System calls under the Sparc.
-+ *
-+ * Don't be scared by the ugly clobbers, it is the only way I can
-+ * think of right now to force the arguments into fixed registers
-+ * before the trap into the system call with gcc 'asm' statements.
-+ *
-+ * Copyright (C) 1995 David S. Miller ([email protected])
-+ *
-+ * SunOS compatibility based upon preliminary work which is:
-+ *
-+ * Copyright (C) 1995 Adrian M. Rodriguez ([email protected])
-+ */
-+
-+
-+#define __NR_io_setup		268
-+#define __NR_io_destroy		269
-+#define __NR_io_submit		270
-+#define __NR_io_cancel		271
-+#define __NR_io_getevents	272
-+
-+
-+#define io_syscall1(type,fname,sname,type1,arg1) \
-+type fname(type1 arg1) \
-+{ \
-+long __res; \
-+register long __g1 __asm__ ("g1") = __NR_##sname; \
-+register long __o0 __asm__ ("o0") = (long)(arg1); \
-+__asm__ __volatile__ ("t 0x10\n\t" \
-+		      "bcc 1f\n\t" \
-+		      "mov %%o0, %0\n\t" \
-+		      "sub %%g0, %%o0, %0\n\t" \
-+		      "1:\n\t" \
-+		      : "=r" (__res), "=&r" (__o0) \
-+		      : "1" (__o0), "r" (__g1) \
-+		      : "cc"); \
-+if (__res < -255 || __res >= 0) \
-+	return (type) __res; \
-+return -1; \
-+}
-+
-+#define io_syscall2(type,fname,sname,type1,arg1,type2,arg2) \
-+type fname(type1 arg1,type2 arg2) \
-+{ \
-+long __res; \
-+register long __g1 __asm__ ("g1") = __NR_##sname; \
-+register long __o0 __asm__ ("o0") = (long)(arg1); \
-+register long __o1 __asm__ ("o1") = (long)(arg2); \
-+__asm__ __volatile__ ("t 0x10\n\t" \
-+		      "bcc 1f\n\t" \
-+		      "mov %%o0, %0\n\t" \
-+		      "sub %%g0, %%o0, %0\n\t" \
-+		      "1:\n\t" \
-+		      : "=r" (__res), "=&r" (__o0) \
-+		      : "1" (__o0), "r" (__o1), "r" (__g1) \
-+		      : "cc"); \
-+if (__res < -255 || __res >= 0) \
-+	return (type) __res; \
-+return -1; \
-+}
-+
-+#define io_syscall3(type,fname,sname,type1,arg1,type2,arg2,type3,arg3) \
-+type fname(type1 arg1,type2 arg2,type3 arg3) \
-+{ \
-+long __res; \
-+register long __g1 __asm__ ("g1") = __NR_##sname; \
-+register long __o0 __asm__ ("o0") = (long)(arg1); \
-+register long __o1 __asm__ ("o1") = (long)(arg2); \
-+register long __o2 __asm__ ("o2") = (long)(arg3); \
-+__asm__ __volatile__ ("t 0x10\n\t" \
-+		      "bcc 1f\n\t" \
-+		      "mov %%o0, %0\n\t" \
-+		      "sub %%g0, %%o0, %0\n\t" \
-+		      "1:\n\t" \
-+		      : "=r" (__res), "=&r" (__o0) \
-+		      : "1" (__o0), "r" (__o1), "r" (__o2), "r" (__g1) \
-+		      : "cc"); \
-+if (__res < -255 || __res>=0) \
-+	return (type) __res; \
-+return -1; \
-+}
-+
-+#define io_syscall4(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \
-+type fname(type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
-+{ \
-+long __res; \
-+register long __g1 __asm__ ("g1") = __NR_##sname; \
-+register long __o0 __asm__ ("o0") = (long)(arg1); \
-+register long __o1 __asm__ ("o1") = (long)(arg2); \
-+register long __o2 __asm__ ("o2") = (long)(arg3); \
-+register long __o3 __asm__ ("o3") = (long)(arg4); \
-+__asm__ __volatile__ ("t 0x10\n\t" \
-+		      "bcc 1f\n\t" \
-+		      "mov %%o0, %0\n\t" \
-+		      "sub %%g0, %%o0, %0\n\t" \
-+		      "1:\n\t" \
-+		      : "=r" (__res), "=&r" (__o0) \
-+		      : "1" (__o0), "r" (__o1), "r" (__o2), "r" (__o3), "r" (__g1) \
-+		      : "cc"); \
-+if (__res < -255 || __res>=0) \
-+	return (type) __res; \
-+return -1; \
-+}
-+
-+#define io_syscall5(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
-+	  type5,arg5) \
-+type fname(type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \
-+{ \
-+long __res; \
-+register long __g1 __asm__ ("g1") = __NR_##sname; \
-+register long __o0 __asm__ ("o0") = (long)(arg1); \
-+register long __o1 __asm__ ("o1") = (long)(arg2); \
-+register long __o2 __asm__ ("o2") = (long)(arg3); \
-+register long __o3 __asm__ ("o3") = (long)(arg4); \
-+register long __o4 __asm__ ("o4") = (long)(arg5); \
-+__asm__ __volatile__ ("t 0x10\n\t" \
-+		      "bcc 1f\n\t" \
-+		      "mov %%o0, %0\n\t" \
-+		      "sub %%g0, %%o0, %0\n\t" \
-+		      "1:\n\t" \
-+		      : "=r" (__res), "=&r" (__o0) \
-+		      : "1" (__o0), "r" (__o1), "r" (__o2), "r" (__o3), "r" (__o4), "r" (__g1) \
-+		      : "cc"); \
-+if (__res < -255 || __res>=0) \
-+	return (type) __res; \
-+return -1; \
-+}
-+
-Index: libaio-0.3.109/src/syscall.h
-===================================================================
---- libaio-0.3.109.orig/src/syscall.h
-+++ libaio-0.3.109/src/syscall.h
-@@ -24,6 +24,14 @@
- #include "syscall-alpha.h"
- #elif defined(__arm__)
- #include "syscall-arm.h"
+--- libaio-0.3.110.orig/src/syscall.h
++++ libaio-0.3.110/src/syscall.h
+@@ -28,6 +28,12 @@
+ #include "syscall-sparc.h"
+ #elif defined(__aarch64__)
+ #include "syscall-arm64.h"
 +#elif defined(__m68k__)
 +#include "syscall-m68k.h"
-+#elif defined(__sparc__)
-+#include "syscall-sparc.h"
 +#elif defined(__hppa__)
 +#include "syscall-parisc.h"
 +#elif defined(__mips__)
 +#include "syscall-mips.h"
  #else
- #error "add syscall-arch.h"
- #endif
-Index: libaio-0.3.109/src/syscall-mips.h
+ #warning "using generic syscall method"
+ #include "syscall-generic.h"
+Index: libaio-0.3.110/src/syscall-mips.h
 ===================================================================
 --- /dev/null
-+++ libaio-0.3.109/src/syscall-mips.h
++++ libaio-0.3.110/src/syscall-mips.h
 @@ -0,0 +1,223 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
@@ -467,45 +330,10 @@ Index: libaio-0.3.109/src/syscall-mips.h
 +
 +#endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */
 +
-Index: libaio-0.3.109/src/libaio.h
-===================================================================
---- libaio-0.3.109.orig/src/libaio.h
-+++ libaio-0.3.109/src/libaio.h
-@@ -83,6 +83,30 @@ typedef enum io_iocb_cmd {
- #define PADDEDptr(x, y)	x; unsigned y
- #define PADDEDul(x, y)	unsigned long x; unsigned y
- #  endif
-+#elif defined(__m68k__) /* big endian, 32 bits */
-+#define PADDED(x, y)   unsigned y; x
-+#define PADDEDptr(x, y)        unsigned y; x
-+#define PADDEDul(x, y) unsigned y; unsigned long x
-+#elif defined(__sparc__) /* big endian, 32 bits */
-+#define PADDED(x, y)   unsigned y; x
-+#define PADDEDptr(x, y)        unsigned y; x
-+#define PADDEDul(x, y) unsigned y; unsigned long x
-+#elif defined(__hppa__) /* big endian, 32 bits */
-+#define PADDED(x, y)   unsigned y; x
-+#define PADDEDptr(x, y)        unsigned y; x
-+#define PADDEDul(x, y) unsigned y; unsigned long x
-+#elif defined(__mips__)
-+#  if defined (__MIPSEB__) /* big endian, 32 bits */
-+#define PADDED(x, y)   unsigned y; x
-+#define PADDEDptr(x, y)        unsigned y; x
-+#define PADDEDul(x, y) unsigned y; unsigned long x
-+#  elif defined(__MIPSEL__) /* little endian, 32 bits */
-+#define PADDED(x, y)   x; unsigned y
-+#define PADDEDptr(x, y)        x; unsigned y
-+#define PADDEDul(x, y) unsigned long x; unsigned y
-+#  else
-+#    error "neither mipseb nor mipsel?"
-+#  endif
- #else
- #error	endian?
- #endif
-Index: libaio-0.3.109/src/syscall-parisc.h
+Index: libaio-0.3.110/src/syscall-parisc.h
 ===================================================================
 --- /dev/null
-+++ libaio-0.3.109/src/syscall-parisc.h
++++ libaio-0.3.110/src/syscall-parisc.h
 @@ -0,0 +1,146 @@
 +/*
 + * Linux system call numbers.
@@ -653,10 +481,10 @@ Index: libaio-0.3.109/src/syscall-parisc.h
 +    return K_INLINE_SYSCALL(sname, 5, arg1, arg2, arg3, arg4, arg5);	\
 +}
 +
-Index: libaio-0.3.109/src/syscall-arm.h
+Index: libaio-0.3.110/src/syscall-arm.h
 ===================================================================
---- libaio-0.3.109.orig/src/syscall-arm.h
-+++ libaio-0.3.109/src/syscall-arm.h
+--- libaio-0.3.110.orig/src/syscall-arm.h
++++ libaio-0.3.110/src/syscall-arm.h
 @@ -114,3 +114,119 @@ type fname(type1 arg1, type2 arg2, type3
    return (type) __res_r0;						\
  }
meta/recipes-extended/libaio/libaio/libaio-aarch64.patch deleted +0 -28
deleted file mode 100644
index e3d1058..0000000
@@ -1,28 +0,0 @@
-Upstream-Status: Submitted
-
-Signed-off-by: Riku Voipio <[email protected]>
-
----
- harness/cases/16.t |    2 ++
- src/libaio.h       |   10 ++++++++++
- 2 files changed, 12 insertions(+)
-
---- a/src/libaio.h
-+++ b/src/libaio.h
-@@ -107,6 +107,16 @@
- #  else
- #    error "neither mipseb nor mipsel?"
- #  endif
-+#elif defined(__aarch64__)
-+#  if defined (__AARCH64EB__) /* big endian, 64 bits */
-+#define PADDED(x, y)    unsigned y; x
-+#define PADDEDptr(x,y)  x
-+#define PADDEDul(x, y)  unsigned long x
-+#  elif defined(__AARCH64EL__) /* little endian, 64 bits */
-+#define PADDED(x, y)    x, y
-+#define PADDEDptr(x, y) x
-+#define PADDEDul(x, y)  unsigned long x
-+#  endif
- #else
- #error	endian?
- #endif
meta/recipes-extended/libaio/libaio/libaio_fix_for_mips64.patch +42 -26

71 lines not on this page · raw message

meta/recipes-extended/libaio/libaio/toolchain.patch deleted +0 -27
deleted file mode 100644
index 4d88ec1..0000000
@@ -1,27 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-8/27/2010 - created by Qing He <[email protected]>
-
-diff --git a/src/Makefile b/src/Makefile
-index 8d134cc..df8e5b6 100644
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -2,7 +2,6 @@ prefix=/usr
- includedir=$(prefix)/include
- libdir=$(prefix)/lib
- 
--ARCH := $(shell uname -m | sed -e s/i.86/i386/)
- CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
- SO_CFLAGS=-shared $(CFLAGS)
- L_CFLAGS=$(CFLAGS)
-@@ -44,8 +43,8 @@ $(libaio_objs) $(libaio_sobjs): libaio.h vsys_def.h
- 
- libaio.a: $(libaio_objs)
- 	rm -f libaio.a
--	ar r libaio.a $^
--	ranlib libaio.a
-+	$(AR) r libaio.a $^
-+	$(RANLIB) libaio.a
- 
- $(libname): $(libaio_sobjs) libaio.map
- 	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
meta/recipes-extended/libaio/libaio_0.3.110.bb renamed from meta/recipes-extended/libaio/libaio_0.3.109.bb +4 -7
similarity index 74%
rename from meta/recipes-extended/libaio/libaio_0.3.109.bb
rename to meta/recipes-extended/libaio/libaio_0.3.110.bb
index 0483c71..9e36414 100644
@@ -5,23 +5,20 @@ HOMEPAGE = "http://lse.sourceforge.net/io/aio.html"
 LICENSE = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499"
 
-PR = "r2"
-
 SRC_URI = "${DEBIAN_MIRROR}/main/liba/libaio/libaio_${PV}.orig.tar.gz \
            file://00_arches.patch \
-           file://toolchain.patch \
            file://destdir.patch \
            file://libaio_fix_for_x32.patch \
-           file://libaio-generic.patch \
-           file://libaio-aarch64.patch \
            file://libaio_fix_for_mips_syscalls.patch \
            file://libaio_fix_for_mips64.patch \
 "
 
-SRC_URI[md5sum] = "435a5b16ca6198eaf01155263d855756"
-SRC_URI[sha256sum] = "bf4a457253cbaab215aea75cb6e18dc8d95bbd507e9920661ff9bdd288c8778d"
+SRC_URI[md5sum] = "2a35602e43778383e2f4907a4ca39ab8"
+SRC_URI[sha256sum] = "e019028e631725729376250e32b473012f7cb68e1f7275bfc1bbcdd0f8745f7e"
 
 EXTRA_OEMAKE =+ "prefix=${prefix} includedir=${includedir} libdir=${libdir}"
+# Need libc for stack-protector's __stack_chk_fail_local() bounce function
+LDFLAGS_append_x86 = " -lc"
 
 do_configure () {
     sed -i 's#LINK_FLAGS=.*#LINK_FLAGS=$(LDFLAGS)#' src/Makefile
Signature · 1 line
2.1.0
author
#7 lore raw

PATCH 5/5 glibc: Fix up minimal build with libc-libm

In reply to Saul Wold

This addresses 2 issues discovered trying to build a minimal libc with libm option. By default nscd was always being built and without inet enabled there were missing symbols.

The patch got updated changing initgroups to become part of the INET group. Newer version of quilt added function information.

[YOCTO #7108]

---
 .../glibc/glibc/eglibc-use-option-groups.patch     | 1379 ++++++++++----------
 meta/recipes-core/glibc/glibc_2.20.bb              |    3 +
 2 files changed, 693 insertions(+), 689 deletions(-)
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +690 -689
index 7136253..7be9b06 100644
@@ -4,8 +4,8 @@ Upstream-Status: Pending
 
 Index: git/argp/argp-fmtstream.c
 ===================================================================
---- git.orig/argp/argp-fmtstream.c	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-fmtstream.c	2014-08-29 20:01:15.188070587 -0700
+--- git.orig/argp/argp-fmtstream.c
++++ git/argp/argp-fmtstream.c
 @@ -42,6 +42,7 @@
  #ifdef _LIBC
  # include <wchar.h>
@@ -14,7 +14,7 @@ Index: git/argp/argp-fmtstream.c
  # define __vsnprintf(s, l, f, a) _IO_vsnprintf (s, l, f, a)
  #endif
  
-@@ -100,7 +101,11 @@
+@@ -100,7 +101,11 @@ __argp_fmtstream_free (argp_fmtstream_t
    __argp_fmtstream_update (fs);
    if (fs->p > fs->buf)
      {
@@ -26,7 +26,7 @@ Index: git/argp/argp-fmtstream.c
      }
    free (fs->buf);
    free (fs);
-@@ -145,9 +150,17 @@
+@@ -145,9 +150,17 @@ __argp_fmtstream_update (argp_fmtstream_
  	      size_t i;
  	      for (i = 0; i < pad; i++)
  		{
@@ -45,7 +45,7 @@ Index: git/argp/argp-fmtstream.c
  		    putc_unlocked (' ', fs->stream);
  		}
  	    }
-@@ -308,9 +321,17 @@
+@@ -308,9 +321,17 @@ __argp_fmtstream_update (argp_fmtstream_
  	      *nl++ = ' ';
  	  else
  	    for (i = 0; i < fs->wmargin; ++i)
@@ -66,9 +66,9 @@ Index: git/argp/argp-fmtstream.c
  	  /* Copy the tail of the original buffer into the current buffer
 Index: git/argp/argp-help.c
 ===================================================================
---- git.orig/argp/argp-help.c	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-help.c	2014-08-29 20:01:15.188070587 -0700
-@@ -51,6 +51,7 @@
+--- git.orig/argp/argp-help.c
++++ git/argp/argp-help.c
+@@ -51,6 +51,7 @@ char *alloca ();
  #ifdef _LIBC
  # include <../libio/libioP.h>
  # include <wchar.h>
@@ -76,7 +76,7 @@ Index: git/argp/argp-help.c
  #endif
  
  #ifndef _
-@@ -1702,7 +1703,7 @@
+@@ -1702,7 +1703,7 @@ char *__argp_basename (char *name)
  }
  
  char *
@@ -85,7 +85,7 @@ Index: git/argp/argp-help.c
  {
  # if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
    return program_invocation_short_name;
-@@ -1873,9 +1874,17 @@
+@@ -1873,9 +1874,17 @@ __argp_failure (const struct argp_state
  #endif
  	    }
  
@@ -106,8 +106,8 @@ Index: git/argp/argp-help.c
  #if _LIBC || (HAVE_FLOCKFILE && HAVE_FUNLOCKFILE)
 Index: git/argp/argp-namefrob.h
 ===================================================================
---- git.orig/argp/argp-namefrob.h	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-namefrob.h	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/argp/argp-namefrob.h
++++ git/argp/argp-namefrob.h
 @@ -76,10 +76,12 @@
  #undef __argp_fmtstream_wmargin
  #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
@@ -123,8 +123,8 @@ Index: git/argp/argp-namefrob.h
  #undef __flockfile
 Index: git/argp/Makefile
 ===================================================================
---- git.orig/argp/Makefile	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/argp/Makefile
++++ git/argp/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Makefile for argp.
@@ -136,9 +136,9 @@ Index: git/argp/Makefile
  include ../Makeconfig
 Index: git/catgets/Makefile
 ===================================================================
---- git.orig/catgets/Makefile	2014-08-29 20:00:43.008070587 -0700
-+++ git/catgets/Makefile	2014-08-29 20:01:15.192070587 -0700
-@@ -22,20 +22,23 @@
+--- git.orig/catgets/Makefile
++++ git/catgets/Makefile
+@@ -22,20 +22,23 @@ subdir	:= catgets
  
  include ../Makeconfig
  
@@ -171,8 +171,8 @@ Index: git/catgets/Makefile
  # To find xmalloc.c
 Index: git/crypt/crypt-entry.c
 ===================================================================
---- git.orig/crypt/crypt-entry.c	2014-08-29 20:00:43.028070587 -0700
-+++ git/crypt/crypt-entry.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/crypt/crypt-entry.c
++++ git/crypt/crypt-entry.c
 @@ -27,6 +27,7 @@
  #include <stdio.h>
  #endif
@@ -181,7 +181,7 @@ Index: git/crypt/crypt-entry.c
  #include <errno.h>
  #include <fips-private.h>
  
-@@ -76,9 +77,11 @@
+@@ -76,9 +77,11 @@ __crypt_r (key, salt, data)
       const char *salt;
       struct crypt_data * __restrict data;
  {
@@ -193,7 +193,7 @@ Index: git/crypt/crypt-entry.c
  
  #ifdef _LIBC
    /* Try to find out whether we have to use MD5 encryption replacement.  */
-@@ -105,6 +108,7 @@
+@@ -105,6 +108,7 @@ __crypt_r (key, salt, data)
  			     sizeof (struct crypt_data));
  #endif
  
@@ -201,7 +201,7 @@ Index: git/crypt/crypt-entry.c
    /*
     * Hack DES tables according to salt
     */
-@@ -144,6 +148,10 @@
+@@ -144,6 +148,10 @@ __crypt_r (key, salt, data)
     */
    _ufc_output_conversion_r (res[0], res[1], salt, data);
    return data->crypt_3_buf;
@@ -212,7 +212,7 @@ Index: git/crypt/crypt-entry.c
  }
  weak_alias (__crypt_r, crypt_r)
  
-@@ -168,7 +176,12 @@
+@@ -168,7 +176,12 @@ crypt (key, salt)
      return __sha512_crypt (key, salt);
  #endif
  
@@ -227,8 +227,8 @@ Index: git/crypt/crypt-entry.c
  
 Index: git/crypt/Makefile
 ===================================================================
---- git.orig/crypt/Makefile	2014-08-29 20:00:43.024070587 -0700
-+++ git/crypt/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/crypt/Makefile
++++ git/crypt/Makefile
 @@ -18,21 +18,25 @@
  #
  #	Sub-makefile for crypt() portion of the library.
@@ -261,7 +261,7 @@ Index: git/crypt/Makefile
  routines += $(libcrypt-routines)
  endif
  
-@@ -44,7 +48,7 @@
+@@ -44,7 +48,7 @@ LDLIBS-crypt.so = -lfreebl3
  else
  libcrypt-routines += md5 sha256 sha512
  
@@ -270,7 +270,7 @@ Index: git/crypt/Makefile
  
  # The test md5test-giant uses up to 400 MB of RSS and runs on a fast
  # machine over a minute.
-@@ -64,8 +68,10 @@
+@@ -64,8 +68,10 @@ $(objpfx)sha256test: $(patsubst %, $(obj
  $(objpfx)sha512test: $(patsubst %, $(objpfx)%.o,$(sha512-routines))
  endif
  
@@ -283,8 +283,8 @@ Index: git/crypt/Makefile
 +endif # eglibc: OPTION_EGLIBC_CRYPT
 Index: git/csu/Makefile
 ===================================================================
---- git.orig/csu/Makefile	2014-08-29 20:00:43.032070587 -0700
-+++ git/csu/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/csu/Makefile
++++ git/csu/Makefile
 @@ -22,6 +22,8 @@
  # crtn.o, special "initializer" and "finalizer" files used in the link
  # to make the .init and .fini sections work right.
@@ -296,8 +296,8 @@ Index: git/csu/Makefile
  include ../Makeconfig
 Index: git/debug/Makefile
 ===================================================================
---- git.orig/debug/Makefile	2014-08-29 20:00:43.036070587 -0700
-+++ git/debug/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/Makefile
++++ git/debug/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Sub-makefile for debug portion of the library.
@@ -307,7 +307,7 @@ Index: git/debug/Makefile
  subdir	:= debug
  
  include ../Makeconfig
-@@ -27,7 +29,7 @@
+@@ -27,7 +29,7 @@ headers	:= execinfo.h
  # Note that ptsname_r_chk and getlogin_r are not here, but in
  # login/Makefile instead.  If that subdir is omitted from the
  # build, its _FORTIFY_SOURCE support will be too.
@@ -316,7 +316,7 @@ Index: git/debug/Makefile
  	    memcpy_chk memmove_chk mempcpy_chk memset_chk stpcpy_chk \
  	    strcat_chk strcpy_chk strncat_chk strncpy_chk stpncpy_chk \
  	    sprintf_chk vsprintf_chk snprintf_chk vsnprintf_chk \
-@@ -36,20 +38,27 @@
+@@ -36,20 +38,27 @@ routines  = backtrace backtracesyms back
  	    read_chk pread_chk pread64_chk recv_chk recvfrom_chk \
  	    readlink_chk readlinkat_chk getwd_chk getcwd_chk \
  	    realpath_chk fread_chk fread_u_chk \
@@ -352,7 +352,7 @@ Index: git/debug/Makefile
  static-only-routines := warning-nop stack_chk_fail_local
  
  CFLAGS-backtrace.c = -fno-omit-frame-pointer
-@@ -129,11 +138,15 @@
+@@ -129,11 +138,15 @@ LDFLAGS-tst-backtrace4 = -rdynamic
  LDFLAGS-tst-backtrace5 = -rdynamic
  LDFLAGS-tst-backtrace6 = -rdynamic
  
@@ -375,8 +375,8 @@ Index: git/debug/Makefile
  tests += $(tests-ifunc)
 Index: git/debug/segfault.c
 ===================================================================
---- git.orig/debug/segfault.c	2014-08-29 20:00:46.280070587 -0700
-+++ git/debug/segfault.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/segfault.c
++++ git/debug/segfault.c
 @@ -30,6 +30,7 @@
  #include <unistd.h>
  #include <_itoa.h>
@@ -385,7 +385,7 @@ Index: git/debug/segfault.c
  
  /* This file defines macros to access the content of the sigcontext element
     passed up by the signal handler.  */
-@@ -91,6 +92,7 @@
+@@ -91,6 +92,7 @@ catch_segfault (int signal, SIGCONTEXT c
    REGISTER_DUMP;
  #endif
  
@@ -393,7 +393,7 @@ Index: git/debug/segfault.c
    WRITE_STRING ("\nBacktrace:\n");
  
    /* Get the backtrace.  */
-@@ -113,6 +115,7 @@
+@@ -113,6 +115,7 @@ catch_segfault (int signal, SIGCONTEXT c
  
    /* Now generate nicely formatted output.  */
    __backtrace_symbols_fd (arr + i, cnt - i, fd);
@@ -403,8 +403,8 @@ Index: git/debug/segfault.c
    /* Now the link map.  */
 Index: git/debug/tst-chk1.c
 ===================================================================
---- git.orig/debug/tst-chk1.c	2014-08-29 20:00:46.288070587 -0700
-+++ git/debug/tst-chk1.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/tst-chk1.c
++++ git/debug/tst-chk1.c
 @@ -31,6 +31,7 @@
  #include <sys/select.h>
  #include <sys/socket.h>
@@ -413,7 +413,7 @@ Index: git/debug/tst-chk1.c
  
  
  #define obstack_chunk_alloc malloc
-@@ -307,6 +308,7 @@
+@@ -307,6 +308,7 @@ do_test (void)
    snprintf (buf + 8, l0 + 3, "%d", num2);
    CHK_FAIL_END
  
@@ -421,7 +421,7 @@ Index: git/debug/tst-chk1.c
    CHK_FAIL_START
    swprintf (wbuf + 8, 3, L"%d", num1);
    CHK_FAIL_END
-@@ -314,6 +316,7 @@
+@@ -314,6 +316,7 @@ do_test (void)
    CHK_FAIL_START
    swprintf (wbuf + 8, l0 + 3, L"%d", num1);
    CHK_FAIL_END
@@ -429,7 +429,7 @@ Index: git/debug/tst-chk1.c
  # endif
  
    memcpy (buf, str1 + 2, l0 + 9);
-@@ -381,6 +384,7 @@
+@@ -381,6 +384,7 @@ do_test (void)
    CHK_FAIL_END
  #endif
  
@@ -437,7 +437,7 @@ Index: git/debug/tst-chk1.c
  
    /* These ops can be done without runtime checking of object size.  */
    wmemcpy (wbuf, L"abcdefghij", 10);
-@@ -605,6 +609,7 @@
+@@ -605,6 +609,7 @@ do_test (void)
    CHK_FAIL_END
  #endif
  
@@ -445,7 +445,7 @@ Index: git/debug/tst-chk1.c
  
    /* Now checks for %n protection.  */
  
-@@ -1192,6 +1197,7 @@
+@@ -1192,6 +1197,7 @@ do_test (void)
  # endif
  #endif
  
@@ -453,7 +453,7 @@ Index: git/debug/tst-chk1.c
    if (setlocale (LC_ALL, "de_DE.UTF-8") != NULL)
      {
        assert (MB_CUR_MAX <= 10);
-@@ -1348,6 +1354,7 @@
+@@ -1348,6 +1354,7 @@ do_test (void)
        puts ("cannot set locale");
        ret = 1;
      }
@@ -463,8 +463,8 @@ Index: git/debug/tst-chk1.c
    if (fd != -1)
 Index: git/dlfcn/Makefile
 ===================================================================
---- git.orig/dlfcn/Makefile	2014-08-29 20:00:46.312070587 -0700
-+++ git/dlfcn/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/dlfcn/Makefile
++++ git/dlfcn/Makefile
 @@ -15,6 +15,8 @@
  # License along with the GNU C Library; if not, see
  # <http://www.gnu.org/licenses/>.
@@ -474,7 +474,7 @@ Index: git/dlfcn/Makefile
  subdir		:= dlfcn
  
  include ../Makeconfig
-@@ -36,7 +38,9 @@
+@@ -36,7 +38,9 @@ endif
  ifeq (yes,$(build-shared))
  tests = glrefmain failtest tst-dladdr default errmsg1 tstcxaatexit \
  	bug-dlopen1 bug-dlsym1 tst-dlinfo bug-atexit1 bug-atexit2 \
@@ -487,8 +487,8 @@ Index: git/dlfcn/Makefile
  		defaultmod2 errmsg1mod modatexit modcxaatexit \
 Index: git/elf/dl-support.c
 ===================================================================
---- git.orig/elf/dl-support.c	2014-08-29 20:00:46.384070587 -0700
-+++ git/elf/dl-support.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/elf/dl-support.c
++++ git/elf/dl-support.c
 @@ -19,6 +19,7 @@
  /* This file defines some things that for the dynamic linker are defined in
     rtld.c and dl-sysdep.c in ways appropriate to bootstrap dynamic linking.  */
@@ -497,7 +497,7 @@ Index: git/elf/dl-support.c
  #include <errno.h>
  #include <libintl.h>
  #include <stdlib.h>
-@@ -42,7 +43,9 @@
+@@ -42,7 +43,9 @@ char **_dl_argv = &__progname;	/* This i
  const char *_dl_platform;
  size_t _dl_platformlen;
  
@@ -509,8 +509,8 @@ Index: git/elf/dl-support.c
  int _dl_dynamic_weak;
 Index: git/elf/rtld.c
 ===================================================================
---- git.orig/elf/rtld.c	2014-08-29 20:01:14.708070587 -0700
-+++ git/elf/rtld.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/elf/rtld.c
++++ git/elf/rtld.c
 @@ -16,6 +16,7 @@
     License along with the GNU C Library; if not, see
     <http://www.gnu.org/licenses/>.  */
@@ -519,7 +519,7 @@ Index: git/elf/rtld.c
  #include <errno.h>
  #include <dlfcn.h>
  #include <fcntl.h>
-@@ -2200,6 +2201,7 @@
+@@ -2200,6 +2201,7 @@ print_missing_version (int errcode __att
  		    objname, errstring);
  }
  
@@ -527,7 +527,7 @@ Index: git/elf/rtld.c
  /* Nonzero if any of the debugging options is enabled.  */
  static int any_debug attribute_relro;
  
-@@ -2309,6 +2311,7 @@
+@@ -2309,6 +2311,7 @@ a filename can be specified using the LD
        _exit (0);
      }
  }
@@ -535,7 +535,7 @@ Index: git/elf/rtld.c
  
  static void
  process_dl_audit (char *str)
-@@ -2376,12 +2379,14 @@
+@@ -2376,12 +2379,14 @@ process_envvars (enum mode *modep)
  	  break;
  
  	case 5:
@@ -550,7 +550,7 @@ Index: git/elf/rtld.c
  	  if (memcmp (envline, "AUDIT", 5) == 0)
  	    process_dl_audit (&envline[6]);
  	  break;
-@@ -2490,7 +2495,9 @@
+@@ -2490,7 +2495,9 @@ process_envvars (enum mode *modep)
  	    {
  	      mode = trace;
  	      GLRO(dl_verbose) = 1;
@@ -560,7 +560,7 @@ Index: git/elf/rtld.c
  	      GLRO(dl_trace_prelink) = &envline[17];
  	    }
  	  break;
-@@ -2537,12 +2544,15 @@
+@@ -2537,12 +2544,15 @@ process_envvars (enum mode *modep)
        if (__access ("/etc/suid-debug", F_OK) != 0)
  	{
  	  unsetenv ("MALLOC_CHECK_");
@@ -576,7 +576,7 @@ Index: git/elf/rtld.c
    /* If we have to run the dynamic linker in debugging mode and the
       LD_DEBUG_OUTPUT environment variable is given, we write the debug
       messages to this file.  */
-@@ -2567,6 +2577,7 @@
+@@ -2567,6 +2577,7 @@ process_envvars (enum mode *modep)
  	/* We use standard output if opening the file failed.  */
  	GLRO(dl_debug_fd) = STDOUT_FILENO;
      }
@@ -586,9 +586,9 @@ Index: git/elf/rtld.c
  
 Index: git/extra-lib.mk
 ===================================================================
---- git.orig/extra-lib.mk	2014-08-29 20:00:46.544070587 -0700
-+++ git/extra-lib.mk	2014-08-29 20:01:15.196070587 -0700
-@@ -25,7 +25,9 @@
+--- git.orig/extra-lib.mk
++++ git/extra-lib.mk
+@@ -25,7 +25,9 @@ install-lib := $(install-lib)
  extra-objs := $(extra-objs)
  
  # The modules that go in $(lib).
@@ -599,7 +599,7 @@ Index: git/extra-lib.mk
  
  # Add each flavor of library to the lists of things to build and install.
  install-lib += $(foreach o,$(object-suffixes-$(lib)),$(lib:lib%=$(libtype$o)))
-@@ -101,7 +103,7 @@
+@@ -101,7 +103,7 @@ endif
  endif
  
  # This will define `libof-ROUTINE := LIB' for each of the routines.
@@ -610,8 +610,8 @@ Index: git/extra-lib.mk
  endif
 Index: git/grp/Makefile
 ===================================================================
---- git.orig/grp/Makefile	2014-08-29 20:00:46.556070587 -0700
-+++ git/grp/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/grp/Makefile
++++ git/grp/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Sub-makefile for grp portion of the library.
@@ -621,7 +621,7 @@ Index: git/grp/Makefile
  subdir	:= grp
  
  include ../Makeconfig
-@@ -29,6 +31,9 @@
+@@ -29,6 +31,9 @@ routines := fgetgrent initgroups setgrou
  	    getgrent_r getgrgid_r getgrnam_r fgetgrent_r
  
  tests := testgrp
@@ -633,8 +633,8 @@ Index: git/grp/Makefile
  test-srcs :=  tst_fgetgrent
 Index: git/hesiod/Makefile
 ===================================================================
---- git.orig/hesiod/Makefile	2014-08-29 20:00:46.580070587 -0700
-+++ git/hesiod/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/hesiod/Makefile
++++ git/hesiod/Makefile
 @@ -18,12 +18,14 @@
  #
  #	Sub-makefile for hesiod portion of the library.
@@ -654,8 +654,8 @@ Index: git/hesiod/Makefile
  vpath %.c nss_hesiod
 Index: git/iconv/gconv_db.c
 ===================================================================
---- git.orig/iconv/gconv_db.c	2014-08-29 20:00:46.604070587 -0700
-+++ git/iconv/gconv_db.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/gconv_db.c
++++ git/iconv/gconv_db.c
 @@ -25,6 +25,7 @@
  #include <sys/param.h>
  #include <bits/libc-lock.h>
@@ -664,7 +664,7 @@ Index: git/iconv/gconv_db.c
  
  #include <dlfcn.h>
  #include <gconv_int.h>
-@@ -828,9 +829,11 @@
+@@ -828,9 +829,11 @@ free_modules_db (struct gconv_module *no
  /* Free all resources if necessary.  */
  libc_freeres_fn (free_mem)
  {
@@ -678,8 +678,8 @@ Index: git/iconv/gconv_db.c
    extern void _nl_finddomain_subfreeres (void) attribute_hidden;
 Index: git/iconv/gconv_trans.c
 ===================================================================
---- git.orig/iconv/gconv_trans.c	2014-08-29 20:00:46.612070587 -0700
-+++ git/iconv/gconv_trans.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/gconv_trans.c
++++ git/iconv/gconv_trans.c
 @@ -23,6 +23,7 @@
  #include <stdint.h>
  #include <string.h>
@@ -688,7 +688,7 @@ Index: git/iconv/gconv_trans.c
  
  #include <bits/libc-lock.h>
  #include "gconv_int.h"
-@@ -59,6 +60,7 @@
+@@ -59,6 +60,7 @@ __gconv_transliterate (struct __gconv_st
      PTR_DEMANGLE (fct);
  #endif
  
@@ -696,7 +696,7 @@ Index: git/iconv/gconv_trans.c
    /* If there is no transliteration information in the locale don't do
       anything and return the error.  */
    size = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_TRANSLIT_TAB_SIZE);
-@@ -194,6 +196,7 @@
+@@ -194,6 +196,7 @@ __gconv_transliterate (struct __gconv_st
               sorted.  */
  	  break;
      }
@@ -706,8 +706,8 @@ Index: git/iconv/gconv_trans.c
    if (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN) != 0)
 Index: git/iconv/iconv_prog.c
 ===================================================================
---- git.orig/iconv/iconv_prog.c	2014-08-29 20:00:46.612070587 -0700
-+++ git/iconv/iconv_prog.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/iconv_prog.c
++++ git/iconv/iconv_prog.c
 @@ -35,6 +35,7 @@
  #ifdef _POSIX_MAPPED_FILES
  # include <sys/mman.h>
@@ -716,7 +716,7 @@ Index: git/iconv/iconv_prog.c
  #include <charmap.h>
  #include <gconv_int.h>
  #include "iconv_prog.h"
-@@ -221,10 +222,17 @@
+@@ -221,10 +222,17 @@ main (int argc, char *argv[])
  	      bool to_wrong =
  		(iconv_open (to_code, "UTF-8") == (iconv_t) -1
  		 && errno == EINVAL);
@@ -736,8 +736,8 @@ Index: git/iconv/iconv_prog.c
  		{
 Index: git/iconv/Makefile
 ===================================================================
---- git.orig/iconv/Makefile	2014-08-29 20:00:46.600070587 -0700
-+++ git/iconv/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/Makefile
++++ git/iconv/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Makefile for iconv.
@@ -747,7 +747,7 @@ Index: git/iconv/Makefile
  subdir	:= iconv
  
  include ../Makeconfig
-@@ -57,6 +59,9 @@
+@@ -57,6 +59,9 @@ CPPFLAGS-linereader = -DNOT_IN_libc
  CPPFLAGS-strtab = -DNOT_IN_libc
  CPPFLAGS-charmap = -DNOT_IN_libc
  CPPFLAGS-charmap-dir = -DNOT_IN_libc
@@ -759,8 +759,8 @@ Index: git/iconv/Makefile
  xtests-special += $(objpfx)test-iconvconfig.out
 Index: git/iconvdata/Makefile
 ===================================================================
---- git.orig/iconvdata/Makefile	2014-08-29 20:00:46.628070587 -0700
-+++ git/iconvdata/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconvdata/Makefile
++++ git/iconvdata/Makefile
 @@ -18,12 +18,15 @@
  #
  #	Makefile for iconv data and code.
@@ -778,7 +778,7 @@ Index: git/iconvdata/Makefile
  	   ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-10		 \
  	   ISO8859-11 ISO8859-13 ISO8859-14 ISO8859-15 ISO8859-16	 \
  	   T.61 ISO_6937 SJIS KOI-8 HP-ROMAN8 HP-ROMAN9 EBCDIC-AT-DE	 \
-@@ -63,11 +66,13 @@
+@@ -63,11 +66,13 @@ modules	:= ISO8859-1 ISO8859-2 ISO8859-3
  	   MAC-CENTRALEUROPE KOI8-RU ISO8859-9E				 \
  	   CP770 CP771 CP772 CP773 CP774
  
@@ -794,7 +794,7 @@ Index: git/iconvdata/Makefile
  ifeq ($(have-thread-library),yes)
  tests += bug-iconv3
  endif
-@@ -130,13 +135,13 @@
+@@ -130,13 +135,13 @@ ifeq (yes,$(build-shared))
  # Rule to generate the shared objects.
  charmaps = ../localedata/charmaps
  -include $(objpfx)iconv-rules
@@ -811,7 +811,7 @@ Index: git/iconvdata/Makefile
  
  # We can build the conversion tables for numerous charsets automatically.
  
-@@ -204,7 +209,7 @@
+@@ -204,7 +209,7 @@ before-compile += $(addprefix $(objpfx),
  ifndef avoid-generated
  $(objpfx)iconv-rules: Makefile
  	$(make-target-directory)
@@ -820,7 +820,7 @@ Index: git/iconvdata/Makefile
  	  echo 8bit $(gen-8bit-modules); \
  	  echo 8bit-gap $(gen-8bit-gap-modules); } | \
  	LC_ALL=C \
-@@ -247,7 +252,7 @@
+@@ -247,7 +252,7 @@ $(addprefix $(inst_gconvdir)/, $(modules
  	$(do-install-program)
  $(inst_gconvdir)/gconv-modules: gconv-modules $(+force)
  	$(do-install)
@@ -829,7 +829,7 @@ Index: git/iconvdata/Makefile
  # Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is necessary
  # if this libc has more gconv modules than the previously installed one.
  	if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \
-@@ -256,9 +261,9 @@
+@@ -256,9 +261,9 @@ ifeq (no,$(cross-compiling))
  	   $(common-objpfx)iconv/iconvconfig \
  	     $(addprefix --prefix=,$(install_root)); \
  	fi
@@ -844,9 +844,9 @@ Index: git/iconvdata/Makefile
  
 Index: git/include/netdb.h
 ===================================================================
---- git.orig/include/netdb.h	2014-08-29 20:00:47.152070587 -0700
-+++ git/include/netdb.h	2014-08-29 20:01:15.196070587 -0700
-@@ -232,6 +232,10 @@
+--- git.orig/include/netdb.h
++++ git/include/netdb.h
+@@ -232,6 +232,10 @@ extern enum nss_status _nss_ ## service
  		       (const char *name, int af, struct hostent *host,	      \
  			char *buffer, size_t buflen, int *errnop,	      \
  			int *h_errnop);					      \
@@ -859,8 +859,8 @@ Index: git/include/netdb.h
  			size_t buflen, int *errnop, int *h_errnop);	      \
 Index: git/inet/Makefile
 ===================================================================
---- git.orig/inet/Makefile	2014-08-29 20:00:47.176070587 -0700
-+++ git/inet/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/inet/Makefile
++++ git/inet/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Sub-makefile for inet portion of the library.
@@ -870,7 +870,7 @@ Index: git/inet/Makefile
  subdir	:= inet
  
  include ../Makeconfig
-@@ -27,7 +29,8 @@
+@@ -27,7 +29,8 @@ headers	:= netinet/ether.h netinet/in.h
  	   netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
  	   aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h
  
@@ -880,7 +880,7 @@ Index: git/inet/Makefile
  	    inet_lnaof inet_mkadr	\
  	    inet_netof inet_ntoa inet_net herrno herrno-loc \
  	    gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \
-@@ -41,18 +44,23 @@
+@@ -41,18 +44,23 @@ routines := htonl htons		\
  	    getrpcent_r getrpcbyname_r getrpcbynumber_r \
  	    ether_aton ether_aton_r ether_hton ether_line \
  	    ether_ntoa ether_ntoa_r ether_ntoh \
@@ -912,9 +912,9 @@ Index: git/inet/Makefile
  
 Index: git/intl/dcigettext.c
 ===================================================================
---- git.orig/intl/dcigettext.c	2014-08-29 20:00:47.224070587 -0700
-+++ git/intl/dcigettext.c	2014-08-29 20:01:15.200070587 -0700
-@@ -77,6 +77,10 @@
+--- git.orig/intl/dcigettext.c
++++ git/intl/dcigettext.c
+@@ -77,6 +77,10 @@ extern int errno;
  #endif
  #include "hash-string.h"
  
@@ -925,7 +925,7 @@ Index: git/intl/dcigettext.c
  /* Thread safetyness.  */
  #ifdef _LIBC
  # include <bits/libc-lock.h>
-@@ -449,9 +453,11 @@
+@@ -449,9 +453,11 @@ DCIGETTEXT (domainname, msgid1, msgid2,
  #endif
  
  #ifdef _LIBC
@@ -937,7 +937,7 @@ Index: git/intl/dcigettext.c
  
    __libc_rwlock_rdlock (_nl_state_lock);
  
-@@ -470,7 +476,11 @@
+@@ -470,7 +476,11 @@ DCIGETTEXT (domainname, msgid1, msgid2,
    search.category = category;
  # ifdef HAVE_PER_THREAD_LOCALE
  #  ifdef _LIBC
@@ -949,7 +949,7 @@ Index: git/intl/dcigettext.c
  #  endif
    search.localename = localename;
  # endif
-@@ -494,7 +504,9 @@
+@@ -494,7 +504,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
  	retval = (char *) (*foundp)->translation;
  
  # ifdef _LIBC
@@ -959,7 +959,7 @@ Index: git/intl/dcigettext.c
  # endif
        __libc_rwlock_unlock (_nl_state_lock);
        return retval;
-@@ -611,7 +623,9 @@
+@@ -611,7 +623,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
  	{
  	no_translation:
  	  FREE_BLOCKS (block_list);
@@ -969,7 +969,7 @@ Index: git/intl/dcigettext.c
  	  __libc_rwlock_unlock (_nl_state_lock);
  	  __set_errno (saved_errno);
  	  return (plural == 0
-@@ -730,7 +744,9 @@
+@@ -730,7 +744,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
  	      if (plural)
  		retval = plural_lookup (domain, n, retval, retlen);
  
@@ -979,7 +979,7 @@ Index: git/intl/dcigettext.c
  	      __libc_rwlock_unlock (_nl_state_lock);
  	      return retval;
  	    }
-@@ -1361,7 +1377,11 @@
+@@ -1361,7 +1377,11 @@ guess_category_value (category, category
       `LC_xxx', and `LANG'.  On some systems this can be done by the
       `setlocale' function itself.  */
  #ifdef _LIBC
@@ -993,8 +993,8 @@ Index: git/intl/dcigettext.c
  #endif
 Index: git/intl/Makefile
 ===================================================================
---- git.orig/intl/Makefile	2014-08-29 20:00:47.220070587 -0700
-+++ git/intl/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/intl/Makefile
++++ git/intl/Makefile
 @@ -16,6 +16,7 @@
  # <http://www.gnu.org/licenses/>.
  
@@ -1003,7 +1003,7 @@ Index: git/intl/Makefile
  
  subdir = intl
  
-@@ -48,7 +49,7 @@
+@@ -48,7 +49,7 @@ endif
  $(objpfx)plural.o: plural.c
  
  ifeq ($(run-built-tests),yes)
@@ -1014,8 +1014,8 @@ Index: git/intl/Makefile
  		 $(objpfx)tst-gettext2.out $(objpfx)tst-codeset.out \
 Index: git/io/Makefile
 ===================================================================
---- git.orig/io/Makefile	2014-08-29 20:00:47.244070587 -0700
-+++ git/io/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/io/Makefile
++++ git/io/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Sub-makefile for I/O portion of the library.
@@ -1025,7 +1025,7 @@ Index: git/io/Makefile
  subdir	:= io
  
  include ../Makeconfig
-@@ -36,7 +38,7 @@
+@@ -36,7 +38,7 @@ routines :=								\
  	fxstatat fxstatat64						\
  	statfs fstatfs statfs64 fstatfs64				\
  	statvfs fstatvfs statvfs64 fstatvfs64				\
@@ -1034,7 +1034,7 @@ Index: git/io/Makefile
  	mkdir mkdirat							\
  	open open_2 open64 open64_2 openat openat_2 openat64 openat64_2	\
  	read write lseek lseek64 access euidaccess faccessat		\
-@@ -49,11 +51,13 @@
+@@ -49,11 +51,13 @@ routines :=								\
  	ttyname ttyname_r isatty					\
  	link linkat symlink symlinkat readlink readlinkat		\
  	unlink unlinkat rmdir						\
@@ -1049,7 +1049,7 @@ Index: git/io/Makefile
  
  aux := have_o_cloexec
  
-@@ -64,18 +68,22 @@
+@@ -64,18 +68,22 @@ static-only-routines = stat fstat lstat
  		       fstatat fstatat64 mknod mknodat
  
  others		:= pwd
@@ -1077,8 +1077,8 @@ Index: git/io/Makefile
  
 Index: git/libidn/Makefile
 ===================================================================
---- git.orig/libidn/Makefile	2014-08-29 20:00:47.316070587 -0700
-+++ git/libidn/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libidn/Makefile
++++ git/libidn/Makefile
 @@ -16,6 +16,7 @@
  # <http://www.gnu.org/licenses/>.
  
@@ -1087,7 +1087,7 @@ Index: git/libidn/Makefile
  
  subdir	:= libidn
  
-@@ -23,8 +24,8 @@
+@@ -23,8 +24,8 @@ include ../Makeconfig
  
  routines = idn-stub
  
@@ -1100,8 +1100,8 @@ Index: git/libidn/Makefile
  		    iconvme
 Index: git/libidn/toutf8.c
 ===================================================================
---- git.orig/libidn/toutf8.c	2014-08-29 20:00:47.332070587 -0700
-+++ git/libidn/toutf8.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libidn/toutf8.c
++++ git/libidn/toutf8.c
 @@ -33,6 +33,11 @@
  /* Get strlen. */
  #include <string.h>
@@ -1129,8 +1129,8 @@ Index: git/libidn/toutf8.c
   * stringprep_locale_charset - return charset used in current locale
 Index: git/libio/fileops.c
 ===================================================================
---- git.orig/libio/fileops.c	2014-08-29 20:00:47.352070587 -0700
-+++ git/libio/fileops.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/fileops.c
++++ git/libio/fileops.c
 @@ -38,6 +38,7 @@
  #include <string.h>
  #include <errno.h>
@@ -1139,7 +1139,7 @@ Index: git/libio/fileops.c
  #include <stdlib.h>
  #if _LIBC
  # include "../wcsmbs/wcsmbsload.h"
-@@ -174,7 +175,7 @@
+@@ -174,7 +175,7 @@ _IO_new_file_close_it (fp)
  
    /* Free buffer. */
  #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
@@ -1148,7 +1148,7 @@ Index: git/libio/fileops.c
      {
        if (_IO_have_wbackup (fp))
  	_IO_free_wbackup_area (fp);
-@@ -359,6 +360,7 @@
+@@ -359,6 +360,7 @@ _IO_new_file_fopen (fp, filename, mode,
        cs = strstr (last_recognized + 1, ",ccs=");
        if (cs != NULL)
  	{
@@ -1156,7 +1156,7 @@ Index: git/libio/fileops.c
  	  /* Yep.  Load the appropriate conversions and set the orientation
  	     to wide.  */
  	  struct gconv_fcts fcts;
-@@ -423,6 +425,12 @@
+@@ -423,6 +425,12 @@ _IO_new_file_fopen (fp, filename, mode,
  
  	  /* Set the mode now.  */
  	  result->_mode = 1;
@@ -1171,8 +1171,8 @@ Index: git/libio/fileops.c
  
 Index: git/libio/__fpurge.c
 ===================================================================
---- git.orig/libio/__fpurge.c	2014-08-29 20:00:47.336070587 -0700
-+++ git/libio/__fpurge.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/__fpurge.c
++++ git/libio/__fpurge.c
 @@ -21,7 +21,7 @@
  void
  __fpurge (FILE *fp)
@@ -1184,8 +1184,8 @@ Index: git/libio/__fpurge.c
        if (_IO_in_backup (fp))
 Index: git/libio/iofwide.c
 ===================================================================
---- git.orig/libio/iofwide.c	2014-08-29 20:00:47.360070587 -0700
-+++ git/libio/iofwide.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/iofwide.c
++++ git/libio/iofwide.c
 @@ -26,6 +26,7 @@
  
  #include <libioP.h>
@@ -1203,7 +1203,7 @@ Index: git/libio/iofwide.c
  /* Prototypes of libio's codecvt functions.  */
  static enum __codecvt_result do_out (struct _IO_codecvt *codecvt,
  				     __mbstate_t *statep,
-@@ -513,3 +516,26 @@
+@@ -513,3 +516,26 @@ do_max_length (struct _IO_codecvt *codec
    return MB_CUR_MAX;
  #endif
  }
@@ -1232,9 +1232,9 @@ Index: git/libio/iofwide.c
 +#endif
 Index: git/libio/ioseekoff.c
 ===================================================================
---- git.orig/libio/ioseekoff.c	2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/ioseekoff.c	2014-08-29 20:01:15.200070587 -0700
-@@ -60,7 +60,7 @@
+--- git.orig/libio/ioseekoff.c
++++ git/libio/ioseekoff.c
+@@ -60,7 +60,7 @@ _IO_seekoff_unlocked (fp, offset, dir, m
  	  else
  	    abort ();
  	}
@@ -1245,9 +1245,9 @@ Index: git/libio/ioseekoff.c
  	_IO_free_wbackup_area (fp);
 Index: git/libio/ioseekpos.c
 ===================================================================
---- git.orig/libio/ioseekpos.c	2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/ioseekpos.c	2014-08-29 20:01:15.200070587 -0700
-@@ -35,7 +35,7 @@
+--- git.orig/libio/ioseekpos.c
++++ git/libio/ioseekpos.c
+@@ -35,7 +35,7 @@ _IO_seekpos_unlocked (fp, pos, mode)
    /* If we have a backup buffer, get rid of it, since the __seekoff
       callback may not know to do the right thing about it.
       This may be over-kill, but it'll do for now. TODO */
@@ -1258,8 +1258,8 @@ Index: git/libio/ioseekpos.c
  	_IO_free_backup_area (fp);
 Index: git/libio/iosetbuffer.c
 ===================================================================
---- git.orig/libio/iosetbuffer.c	2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/iosetbuffer.c	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/iosetbuffer.c
++++ git/libio/iosetbuffer.c
 @@ -24,6 +24,8 @@
     This exception applies to code released by its copyright holders
     in files containing the exception.  */
@@ -1269,7 +1269,7 @@ Index: git/libio/iosetbuffer.c
  #include "libioP.h"
  
  void
-@@ -38,9 +40,11 @@
+@@ -38,9 +40,11 @@ _IO_setbuffer (fp, buf, size)
    if (!buf)
      size = 0;
    (void) _IO_SETBUF (fp, buf, size);
@@ -1283,8 +1283,8 @@ Index: git/libio/iosetbuffer.c
  libc_hidden_def (_IO_setbuffer)
 Index: git/libio/libioP.h
 ===================================================================
---- git.orig/libio/libioP.h	2014-08-29 20:00:47.372070587 -0700
-+++ git/libio/libioP.h	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/libioP.h
++++ git/libio/libioP.h
 @@ -42,6 +42,10 @@
  /*# include <comthread.h>*/
  #endif
@@ -1296,7 +1296,7 @@ Index: git/libio/libioP.h
  #include <math_ldbl_opt.h>
  
  #include "iolibio.h"
-@@ -508,8 +512,20 @@
+@@ -508,8 +512,20 @@ extern void _IO_old_init (_IO_FILE *fp,
  
  
  #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
@@ -1320,8 +1320,8 @@ Index: git/libio/libioP.h
     : _IO_wdo_write(_f, (_f)->_wide_data->_IO_write_base,		      \
 Index: git/libio/Makefile
 ===================================================================
---- git.orig/libio/Makefile	2014-08-29 20:00:47.332070587 -0700
-+++ git/libio/Makefile	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/Makefile
++++ git/libio/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Specific makefile for libio.
@@ -1331,7 +1331,7 @@ Index: git/libio/Makefile
  subdir	:= libio
  
  include ../Makeconfig
-@@ -27,16 +29,13 @@
+@@ -27,16 +29,13 @@ headers	:= stdio.h libio.h _G_config.h b
  
  routines	:=							      \
  	filedoalloc iofclose iofdopen iofflush iofgetpos iofgets iofopen      \
@@ -1351,7 +1351,7 @@ Index: git/libio/Makefile
  									      \
  	clearerr feof ferror fileno fputc freopen fseek getc getchar	      \
  	memstream pclose putc putchar rewind setbuf setlinebuf vasprintf      \
-@@ -47,25 +46,48 @@
+@@ -47,25 +46,48 @@ routines	:=							      \
  	__fpurge __fpending __fsetlocking				      \
  									      \
  	libc_fatal fmemopen
@@ -1416,7 +1416,7 @@ Index: git/libio/Makefile
  endif
  test-srcs = test-freopen
  
-@@ -164,13 +186,17 @@
+@@ -164,13 +186,17 @@ shared-only-routines = oldiofopen oldiof
  		       oldiofsetpos64
  
  ifeq ($(run-built-tests),yes)
@@ -1436,8 +1436,8 @@ Index: git/libio/Makefile
  
 Index: git/libio/wdummyfileops.c
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/libio/wdummyfileops.c	2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/libio/wdummyfileops.c
 @@ -0,0 +1,161 @@
 +/* Copyright (C) 2007 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -1602,8 +1602,8 @@ Index: git/libio/wdummyfileops.c
 +strong_alias (_IO_wfile_jumps_disabled, _IO_wfile_jumps_maybe_mmap)
 Index: git/locale/catnames.c
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/locale/catnames.c	2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/locale/catnames.c
 @@ -0,0 +1,48 @@
 +/* Copyright (C) 2006  Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -1655,8 +1655,8 @@ Index: git/locale/catnames.c
 +  };
 Index: git/locale/C-ctype.c
 ===================================================================
---- git.orig/locale/C-ctype.c	2014-08-29 20:00:47.396070587 -0700
-+++ git/locale/C-ctype.c	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/C-ctype.c
++++ git/locale/C-ctype.c
 @@ -19,8 +19,11 @@
  #include "localeinfo.h"
  #include <endian.h>
@@ -1669,7 +1669,7 @@ Index: git/locale/C-ctype.c
  
  /* This table's entries are taken from POSIX.2 Table 2-6
     ``LC_CTYPE Category Definition in the POSIX Locale''.
-@@ -647,6 +650,7 @@
+@@ -647,6 +650,7 @@ const struct __locale_data _nl_C_LC_CTYP
      { .word = L'7' },
      { .word = L'8' },
      { .word = L'9' },
@@ -1677,7 +1677,7 @@ Index: git/locale/C-ctype.c
      /* _NL_CTYPE_TRANSLIT_TAB_SIZE */
      { .word = NTRANSLIT },
      /* _NL_CTYPE_TRANSLIT_FROM_IDX */
-@@ -657,6 +661,22 @@
+@@ -657,6 +661,22 @@ const struct __locale_data _nl_C_LC_CTYP
      { .wstr = translit_to_idx },
      /* _NL_CTYPE_TRANSLIT_TO_TBL */
      { .wstr = (uint32_t *) translit_to_tbl },
@@ -1702,8 +1702,8 @@ Index: git/locale/C-ctype.c
      /* _NL_CTYPE_TRANSLIT_DEFAULT_MISSING */
 Index: git/locale/dummy-setlocale.c
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/locale/dummy-setlocale.c	2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/locale/dummy-setlocale.c
 @@ -0,0 +1,33 @@
 +/* Copyright (C) 2006  Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -1740,9 +1740,9 @@ Index: git/locale/dummy-setlocale.c
 +libc_hidden_def (setlocale)
 Index: git/locale/localeinfo.h
 ===================================================================
---- git.orig/locale/localeinfo.h	2014-08-29 20:00:47.404070587 -0700
-+++ git/locale/localeinfo.h	2014-08-29 20:01:15.204070587 -0700
-@@ -224,7 +224,7 @@
+--- git.orig/locale/localeinfo.h
++++ git/locale/localeinfo.h
+@@ -224,7 +224,7 @@ __libc_tsd_define (extern, __locale_t, L
     unused.  We can manage this playing some tricks with weak references.
     But with thread-local locale settings, it becomes quite ungainly unless
     we can use __thread variables.  So only in that case do we attempt this.  */
@@ -1753,8 +1753,8 @@ Index: git/locale/localeinfo.h
  #endif
 Index: git/locale/Makefile
 ===================================================================
---- git.orig/locale/Makefile	2014-08-29 20:00:47.400070587 -0700
-+++ git/locale/Makefile	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/Makefile
++++ git/locale/Makefile
 @@ -18,27 +18,43 @@
  #
  #	Makefile for locales.
@@ -1810,7 +1810,7 @@ Index: git/locale/Makefile
  
  libBrokenLocale-routines = broken_cur_max
  
-@@ -94,6 +110,9 @@
+@@ -94,6 +110,9 @@ CPPFLAGS-locale-programs = -DLOCALE_PATH
  CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
  CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
  CFLAGS-charmap-dir.c = -Wno-write-strings
@@ -1822,8 +1822,8 @@ Index: git/locale/Makefile
  cpp-srcs-left := $(addsuffix .c,$(localedef-modules) $(localedef-aux) \
 Index: git/locale/programs/charmap-dir.c
 ===================================================================
---- git.orig/locale/programs/charmap-dir.c	2014-08-29 20:00:47.408070587 -0700
-+++ git/locale/programs/charmap-dir.c	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/programs/charmap-dir.c
++++ git/locale/programs/charmap-dir.c
 @@ -19,7 +19,9 @@
  #include <error.h>
  #include <fcntl.h>
@@ -1834,7 +1834,7 @@ Index: git/locale/programs/charmap-dir.c
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
-@@ -156,6 +158,7 @@
+@@ -156,6 +158,7 @@ charmap_closedir (CHARMAP_DIR *cdir)
    return closedir (dir);
  }
  
@@ -1842,7 +1842,7 @@ Index: git/locale/programs/charmap-dir.c
  /* Creates a subprocess decompressing the given pathname, and returns
     a stream reading its output (the decompressed data).  */
  static
-@@ -204,6 +207,7 @@
+@@ -204,6 +207,7 @@ fopen_uncompressed (const char *pathname
      }
    return NULL;
  }
@@ -1850,7 +1850,7 @@ Index: git/locale/programs/charmap-dir.c
  
  /* Opens a charmap for reading, given its name (not an alias name).  */
  FILE *
-@@ -226,6 +230,7 @@
+@@ -226,6 +230,7 @@ charmap_open (const char *directory, con
    if (stream != NULL)
      return stream;
  
@@ -1858,7 +1858,7 @@ Index: git/locale/programs/charmap-dir.c
    memcpy (p, ".gz", 4);
    stream = fopen_uncompressed (pathname, "gzip");
    if (stream != NULL)
-@@ -235,6 +240,7 @@
+@@ -235,6 +240,7 @@ charmap_open (const char *directory, con
    stream = fopen_uncompressed (pathname, "bzip2");
    if (stream != NULL)
      return stream;
@@ -1866,7 +1866,7 @@ Index: git/locale/programs/charmap-dir.c
  
    return NULL;
  }
-@@ -263,8 +269,8 @@
+@@ -263,8 +269,8 @@ charmap_aliases (const char *directory,
        char *alias = NULL;
        char junk[BUFSIZ];
  
@@ -1879,9 +1879,9 @@ Index: git/locale/programs/charmap-dir.c
                                          (naliases + 2) * sizeof (char *));
 Index: git/locale/programs/ld-collate.c
 ===================================================================
---- git.orig/locale/programs/ld-collate.c	2014-08-29 20:00:47.408070587 -0700
-+++ git/locale/programs/ld-collate.c	2014-08-29 20:01:15.208070587 -0700
-@@ -350,7 +350,7 @@
+--- git.orig/locale/programs/ld-collate.c
++++ git/locale/programs/ld-collate.c
+@@ -350,7 +350,7 @@ new_element (struct locale_collate_t *co
      }
    if (wcs != NULL)
      {
@@ -1890,7 +1890,7 @@ Index: git/locale/programs/ld-collate.c
        uint32_t zero = 0;
        /* Handle <U0000> as a single character.  */
        if (nwcs == 0)
-@@ -1776,8 +1776,7 @@
+@@ -1776,8 +1776,7 @@ symbol `%s' has the same encoding as"),
  
  	      if ((*eptr)->nwcs == runp->nwcs)
  		{
@@ -1900,7 +1900,7 @@ Index: git/locale/programs/ld-collate.c
  
  		  if (c == 0)
  		    {
-@@ -2010,9 +2009,9 @@
+@@ -2010,9 +2009,9 @@ add_to_tablewc (uint32_t ch, struct elem
  	     one consecutive entry.  */
  	  if (runp->wcnext != NULL
  	      && runp->nwcs == runp->wcnext->nwcs
@@ -1913,7 +1913,7 @@ Index: git/locale/programs/ld-collate.c
  	      && (runp->wcs[runp->nwcs - 1]
  		  == runp->wcnext->wcs[runp->nwcs - 1] + 1))
  	    {
-@@ -2036,9 +2035,9 @@
+@@ -2036,9 +2035,9 @@ add_to_tablewc (uint32_t ch, struct elem
  		runp = runp->wcnext;
  	      while (runp->wcnext != NULL
  		     && runp->nwcs == runp->wcnext->nwcs
@@ -1928,9 +1928,9 @@ Index: git/locale/programs/ld-collate.c
  
 Index: git/locale/programs/ld-ctype.c
 ===================================================================
---- git.orig/locale/programs/ld-ctype.c	2014-08-29 20:00:47.408070587 -0700
-+++ git/locale/programs/ld-ctype.c	2014-08-29 20:01:15.208070587 -0700
-@@ -957,7 +957,7 @@
+--- git.orig/locale/programs/ld-ctype.c
++++ git/locale/programs/ld-ctype.c
+@@ -957,7 +957,7 @@ ctype_output (struct localedef_t *locale
    allocate_arrays (ctype, charmap, ctype->repertoire);
  
    default_missing_len = (ctype->default_missing
@@ -1939,7 +1939,7 @@ Index: git/locale/programs/ld-ctype.c
  			 : 0);
  
    init_locale_data (&file, nelems);
-@@ -1968,7 +1968,7 @@
+@@ -1968,7 +1968,7 @@ read_translit_entry (struct linereader *
  	    ignore = 1;
  	  else
  	    /* This value is usable.  */
@@ -1948,7 +1948,7 @@ Index: git/locale/programs/ld-ctype.c
  
  	  first = 0;
  	}
-@@ -2516,8 +2516,8 @@
+@@ -2516,8 +2516,8 @@ with character code range values one mus
  	    }
  
  	handle_tok_digit:
@@ -1959,7 +1959,7 @@ Index: git/locale/programs/ld-ctype.c
  	  handle_digits = 1;
  	  goto read_charclass;
  
-@@ -4001,8 +4001,7 @@
+@@ -4001,8 +4001,7 @@ allocate_arrays (struct locale_ctype_t *
  
  	  while (idx < number)
  	    {
@@ -1969,7 +1969,7 @@ Index: git/locale/programs/ld-ctype.c
  	      if (res == 0)
  		{
  		  replace = 1;
-@@ -4039,11 +4038,11 @@
+@@ -4039,11 +4038,11 @@ allocate_arrays (struct locale_ctype_t *
        for (cnt = 0; cnt < number; ++cnt)
  	{
  	  struct translit_to_t *srunp;
@@ -1983,7 +1983,7 @@ Index: git/locale/programs/ld-ctype.c
  	      srunp = srunp->next;
  	    }
  	  /* Plus one for the extra NUL character marking the end of
-@@ -4067,18 +4066,18 @@
+@@ -4067,18 +4066,18 @@ allocate_arrays (struct locale_ctype_t *
  	  ctype->translit_from_idx[cnt] = from_len;
  	  ctype->translit_to_idx[cnt] = to_len;
  
@@ -2010,8 +2010,8 @@ Index: git/locale/programs/ld-ctype.c
  	    }
 Index: git/locale/programs/ld-messages.c
 ===================================================================
---- git.orig/locale/programs/ld-messages.c	2014-08-29 20:00:47.412070587 -0700
-+++ git/locale/programs/ld-messages.c	2014-08-29 20:01:15.208070587 -0700
+--- git.orig/locale/programs/ld-messages.c
++++ git/locale/programs/ld-messages.c
 @@ -25,6 +25,7 @@
  #include <string.h>
  #include <stdint.h>
@@ -2020,7 +2020,7 @@ Index: git/locale/programs/ld-messages.c
  
  #include <assert.h>
  
-@@ -124,6 +125,7 @@
+@@ -124,6 +125,7 @@ No definition for %s category found"), "
      }
    else
      {
@@ -2028,7 +2028,7 @@ Index: git/locale/programs/ld-messages.c
        int result;
        regex_t re;
  
-@@ -140,6 +142,7 @@
+@@ -140,6 +142,7 @@ No definition for %s category found"), "
  	}
        else if (result != 0)
  	regfree (&re);
@@ -2036,7 +2036,7 @@ Index: git/locale/programs/ld-messages.c
      }
  
    if (messages->noexpr == NULL)
-@@ -158,6 +161,7 @@
+@@ -158,6 +161,7 @@ No definition for %s category found"), "
      }
    else
      {
@@ -2044,7 +2044,7 @@ Index: git/locale/programs/ld-messages.c
        int result;
        regex_t re;
  
-@@ -174,6 +178,7 @@
+@@ -174,6 +178,7 @@ No definition for %s category found"), "
  	}
        else if (result != 0)
  	regfree (&re);
@@ -2054,9 +2054,9 @@ Index: git/locale/programs/ld-messages.c
  
 Index: git/locale/programs/ld-time.c
 ===================================================================
---- git.orig/locale/programs/ld-time.c	2014-08-29 20:00:47.412070587 -0700
-+++ git/locale/programs/ld-time.c	2014-08-29 20:01:15.208070587 -0700
-@@ -215,8 +215,10 @@
+--- git.orig/locale/programs/ld-time.c
++++ git/locale/programs/ld-time.c
+@@ -215,8 +215,10 @@ No definition for %s category found"), "
  	}
        else
  	{
@@ -2068,7 +2068,7 @@ Index: git/locale/programs/ld-time.c
  	}
      }
  
-@@ -226,7 +228,7 @@
+@@ -226,7 +228,7 @@ No definition for %s category found"), "
        const int days_per_month[12] = { 31, 29, 31, 30, 31, 30,
  				       31, 31, 30, 31 ,30, 31 };
        size_t idx;
@@ -2077,7 +2077,7 @@ Index: git/locale/programs/ld-time.c
  
        time->era_entries =
  	(struct era_data *) xmalloc (time->num_era
-@@ -464,18 +466,18 @@
+@@ -464,18 +466,18 @@ No definition for %s category found"), "
  	    }
  
  	  /* Now generate the wide character name and format.  */
@@ -2103,7 +2103,7 @@ Index: git/locale/programs/ld-time.c
  		}
  	      else
  		time->era_entries[idx].wname =
-@@ -530,7 +532,16 @@
+@@ -530,7 +532,16 @@ No definition for %s category found"), "
    if (time->date_fmt == NULL)
      time->date_fmt = "%a %b %e %H:%M:%S %Z %Y";
    if (time->wdate_fmt == NULL)
@@ -2123,9 +2123,9 @@ Index: git/locale/programs/ld-time.c
  
 Index: git/locale/programs/linereader.c
 ===================================================================
---- git.orig/locale/programs/linereader.c	2014-08-29 20:00:47.412070587 -0700
-+++ git/locale/programs/linereader.c	2014-08-29 20:01:15.208070587 -0700
-@@ -595,7 +595,7 @@
+--- git.orig/locale/programs/linereader.c
++++ git/locale/programs/linereader.c
+@@ -595,7 +595,7 @@ get_string (struct linereader *lr, const
  {
    int return_widestr = lr->return_widestr;
    char *buf;
@@ -2136,9 +2136,9 @@ Index: git/locale/programs/linereader.c
  
 Index: git/locale/programs/localedef.c
 ===================================================================
---- git.orig/locale/programs/localedef.c	2014-08-29 20:00:47.416070587 -0700
-+++ git/locale/programs/localedef.c	2014-08-29 20:01:15.208070587 -0700
-@@ -114,6 +114,7 @@
+--- git.orig/locale/programs/localedef.c
++++ git/locale/programs/localedef.c
+@@ -114,6 +114,7 @@ void (*argp_program_version_hook) (FILE
  #define OPT_LIST_ARCHIVE 309
  #define OPT_LITTLE_ENDIAN 400
  #define OPT_BIG_ENDIAN 401
@@ -2146,7 +2146,7 @@ Index: git/locale/programs/localedef.c
  
  /* Definitions of arguments for argp functions.  */
  static const struct argp_option options[] =
-@@ -150,6 +151,8 @@
+@@ -150,6 +151,8 @@ static const struct argp_option options[
      N_("Generate little-endian output") },
    { "big-endian", OPT_BIG_ENDIAN, NULL, 0,
      N_("Generate big-endian output") },
@@ -2155,7 +2155,7 @@ Index: git/locale/programs/localedef.c
    { NULL, 0, NULL, 0, NULL }
  };
  
-@@ -239,12 +242,14 @@
+@@ -239,12 +242,14 @@ main (int argc, char *argv[])
       ctype locale.  (P1003.2 4.35.5.2)  */
    setlocale (LC_CTYPE, "POSIX");
  
@@ -2170,7 +2170,7 @@ Index: git/locale/programs/localedef.c
  
    /* Process charmap file.  */
    charmap = charmap_read (charmap_file, verbose, 1, be_quiet, 1);
-@@ -338,6 +343,9 @@
+@@ -338,6 +343,9 @@ parse_opt (int key, char *arg, struct ar
      case OPT_BIG_ENDIAN:
        set_big_endian (true);
        break;
@@ -2182,9 +2182,9 @@ Index: git/locale/programs/localedef.c
        break;
 Index: git/locale/programs/locfile.c
 ===================================================================
---- git.orig/locale/programs/locfile.c	2014-08-29 20:00:47.432070587 -0700
-+++ git/locale/programs/locfile.c	2014-08-29 20:01:15.208070587 -0700
-@@ -544,6 +544,9 @@
+--- git.orig/locale/programs/locfile.c
++++ git/locale/programs/locfile.c
+@@ -544,6 +544,9 @@ compare_files (const char *filename1, co
     machine running localedef.  */
  bool swap_endianness_p;
  
@@ -2194,7 +2194,7 @@ Index: git/locale/programs/locfile.c
  /* When called outside a start_locale_structure/end_locale_structure
     or start_locale_prelude/end_locale_prelude block, record that the
     next byte in FILE's obstack will be the first byte of a new element.
-@@ -621,7 +624,7 @@
+@@ -621,7 +624,7 @@ add_locale_string (struct locale_file *f
  void
  add_locale_wstring (struct locale_file *file, const uint32_t *string)
  {
@@ -2205,9 +2205,9 @@ Index: git/locale/programs/locfile.c
  /* Record that FILE's next element is the 32-bit integer VALUE.  */
 Index: git/locale/programs/locfile.h
 ===================================================================
---- git.orig/locale/programs/locfile.h	2014-08-29 20:00:47.432070587 -0700
-+++ git/locale/programs/locfile.h	2014-08-29 20:01:15.208070587 -0700
-@@ -71,6 +71,8 @@
+--- git.orig/locale/programs/locfile.h
++++ git/locale/programs/locfile.h
+@@ -71,6 +71,8 @@ extern void write_all_categories (struct
  
  extern bool swap_endianness_p;
  
@@ -2216,7 +2216,7 @@ Index: git/locale/programs/locfile.h
  /* Change the output to be big-endian if BIG_ENDIAN is true and
     little-endian otherwise.  */
  static inline void
-@@ -275,4 +277,49 @@
+@@ -275,4 +277,49 @@ extern void identification_output (struc
  				   const struct charmap_t *charmap,
  				   const char *output_path);
  
@@ -2268,9 +2268,9 @@ Index: git/locale/programs/locfile.h
  #endif /* locfile.h */
 Index: git/locale/setlocale.c
 ===================================================================
---- git.orig/locale/setlocale.c	2014-08-29 20:00:47.432070587 -0700
-+++ git/locale/setlocale.c	2014-08-29 20:01:15.208070587 -0700
-@@ -64,36 +64,6 @@
+--- git.orig/locale/setlocale.c
++++ git/locale/setlocale.c
+@@ -64,36 +64,6 @@ static char *const _nl_current_used[] =
  #endif
  
  
@@ -2309,8 +2309,8 @@ Index: git/locale/setlocale.c
  #else
 Index: git/locale/xlocale.c
 ===================================================================
---- git.orig/locale/xlocale.c	2014-08-29 20:00:47.436070587 -0700
-+++ git/locale/xlocale.c	2014-08-29 20:01:15.208070587 -0700
+--- git.orig/locale/xlocale.c
++++ git/locale/xlocale.c
 @@ -18,6 +18,7 @@
     <http://www.gnu.org/licenses/>.  */
  
@@ -2319,7 +2319,7 @@ Index: git/locale/xlocale.c
  #include "localeinfo.h"
  
  #define DEFINE_CATEGORY(category, category_name, items, a) \
-@@ -25,6 +26,19 @@
+@@ -25,6 +26,19 @@ extern struct __locale_data _nl_C_##cate
  #include "categories.def"
  #undef	DEFINE_CATEGORY
  
@@ -2339,7 +2339,7 @@ Index: git/locale/xlocale.c
  /* Defined in locale/C-ctype.c.  */
  extern const char _nl_C_LC_CTYPE_class[] attribute_hidden;
  extern const char _nl_C_LC_CTYPE_toupper[] attribute_hidden;
-@@ -52,3 +66,26 @@
+@@ -52,3 +66,26 @@ const struct __locale_struct _nl_C_locob
      .__ctype_tolower = (const int *) _nl_C_LC_CTYPE_tolower + 128,
      .__ctype_toupper = (const int *) _nl_C_LC_CTYPE_toupper + 128
    };
@@ -2368,9 +2368,9 @@ Index: git/locale/xlocale.c
 +#endif /* __OPTION_EGLIBC_LOCALE_CODE */
 Index: git/localedata/Makefile
 ===================================================================
---- git.orig/localedata/Makefile	2014-08-29 20:00:47.444070587 -0700
-+++ git/localedata/Makefile	2014-08-29 20:01:15.212070587 -0700
-@@ -21,12 +21,22 @@
+--- git.orig/localedata/Makefile
++++ git/localedata/Makefile
+@@ -21,12 +21,22 @@ subdir := localedata
  
  include ../Makeconfig
  
@@ -2396,7 +2396,7 @@ Index: git/localedata/Makefile
  
  subdir-dirs = tests-mbwc
  vpath %.c tests-mbwc
-@@ -71,14 +81,20 @@
+@@ -71,14 +81,20 @@ locale_test_suite := tst_iswalnum tst_is
  		     tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans      \
  		     tst_wctype tst_wcwidth
  
@@ -2419,7 +2419,7 @@ Index: git/localedata/Makefile
  ifneq (no,$(PERL))
  tests-special += $(objpfx)mtrace-tst-leaks.out
  endif
-@@ -92,12 +108,14 @@
+@@ -92,12 +108,14 @@ install-others := $(addprefix $(inst_i18
  
  tests: $(objdir)/iconvdata/gconv-modules
  
@@ -2434,7 +2434,7 @@ Index: git/localedata/Makefile
  
  ifeq ($(run-built-tests),yes)
  # We have to generate locales
-@@ -143,9 +161,13 @@
+@@ -143,9 +161,13 @@ generated-dirs += $(LOCALES)
  $(addprefix $(objpfx),$(CTYPE_FILES)): %: \
    gen-locale.sh $(common-objpfx)locale/localedef Makefile \
    $(addprefix charmaps/,$(CHARMAPS)) $(addprefix locales/,$(LOCALE_SRCS))
@@ -2451,7 +2451,7 @@ Index: git/localedata/Makefile
  	$(evaluate-test)
  
  $(addsuffix .out,$(addprefix $(objpfx),$(tests))): %: \
-@@ -213,6 +235,11 @@
+@@ -213,6 +235,11 @@ endif
  
  include SUPPORTED
  
@@ -2465,8 +2465,8 @@ Index: git/localedata/Makefile
  # Sometimes the whole collection of locale files should be installed.
 Index: git/login/Makefile
 ===================================================================
---- git.orig/login/Makefile	2014-08-29 20:00:47.736070587 -0700
-+++ git/login/Makefile	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/login/Makefile
++++ git/login/Makefile
 @@ -18,6 +18,7 @@
  #
  #	Sub-makefile for login portion of the library.
@@ -2475,7 +2475,7 @@ Index: git/login/Makefile
  
  subdir	:= login
  
-@@ -25,14 +26,16 @@
+@@ -25,14 +26,16 @@ include ../Makeconfig
  
  headers	:= utmp.h bits/utmp.h lastlog.h pty.h
  
@@ -2497,7 +2497,7 @@ Index: git/login/Makefile
  
  ifeq (yes,$(build-pt-chown))
  others += pt_chown
-@@ -46,8 +49,8 @@
+@@ -46,8 +49,8 @@ vpath %.c programs
  tests := tst-utmp tst-utmpx tst-grantpt tst-ptsname
  
  # Build the -lutil library with these extra functions.
@@ -2510,9 +2510,9 @@ Index: git/login/Makefile
  
 Index: git/Makeconfig
 ===================================================================
---- git.orig/Makeconfig	2014-08-29 20:00:42.956070587 -0700
-+++ git/Makeconfig	2014-08-29 20:01:15.212070587 -0700
-@@ -582,7 +582,7 @@
+--- git.orig/Makeconfig
++++ git/Makeconfig
+@@ -582,7 +582,7 @@ elf-objpfx = $(common-objpfx)elf/
  # and run on the build system, causes that program with those
  # arguments to be run on the host for which the library is built.
  ifndef test-wrapper
@@ -2521,7 +2521,7 @@ Index: git/Makeconfig
  endif
  # Likewise, but the name of the program is preceded by
  # <variable>=<value> assignments for environment variables.
-@@ -1057,6 +1057,24 @@
+@@ -1057,6 +1057,24 @@ else
  libm = $(common-objpfx)math/libm.a
  endif
  
@@ -2548,9 +2548,9 @@ Index: git/Makeconfig
  # dependencies.
 Index: git/Makerules
 ===================================================================
---- git.orig/Makerules	2014-08-29 20:00:42.960070587 -0700
-+++ git/Makerules	2014-08-29 20:01:15.212070587 -0700
-@@ -379,6 +379,25 @@
+--- git.orig/Makerules
++++ git/Makerules
+@@ -379,6 +379,25 @@ define sed-remove-objpfx
  endef
  endif
  
@@ -2578,8 +2578,8 @@ Index: git/Makerules
  ifeq (yes,$(build-shared))
 Index: git/malloc/Makefile
 ===================================================================
---- git.orig/malloc/Makefile	2014-08-29 20:00:47.760070587 -0700
-+++ git/malloc/Makefile	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/malloc/Makefile
++++ git/malloc/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Makefile for malloc routines
@@ -2589,7 +2589,7 @@ Index: git/malloc/Makefile
  subdir	:= malloc
  
  include ../Makeconfig
-@@ -36,9 +38,15 @@
+@@ -36,9 +38,15 @@ install-lib := libmcheck.a
  non-lib.a := libmcheck.a
  
  # Additional library.
@@ -2605,7 +2605,7 @@ Index: git/malloc/Makefile
  libmemusage-routines = memusage
  libmemusage-inhibit-o = $(filter-out .os,$(object-suffixes))
  
-@@ -67,7 +75,7 @@
+@@ -67,7 +75,7 @@ endif
  # Unless we get a test for the availability of libgd which also works
  # for cross-compiling we disable the memusagestat generation in this
  # situation.
@@ -2616,8 +2616,8 @@ Index: git/malloc/Makefile
  others: $(objpfx)memusage
 Index: git/malloc/memusage.c
 ===================================================================
---- git.orig/malloc/memusage.c	2014-08-29 20:00:47.768070587 -0700
-+++ git/malloc/memusage.c	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/malloc/memusage.c
++++ git/malloc/memusage.c
 @@ -33,6 +33,7 @@
  #include <stdint.h>
  #include <sys/mman.h>
@@ -2626,7 +2626,7 @@ Index: git/malloc/memusage.c
  
  #include <memusage.h>
  
-@@ -93,7 +94,11 @@
+@@ -93,7 +94,11 @@ static __thread uintptr_t start_sp;
  #define peak_stack      peak_use[1]
  #define peak_total      peak_use[2]
  
@@ -2641,9 +2641,9 @@ Index: git/malloc/memusage.c
  static int fd = -1;
 Index: git/malloc/memusage.sh
 ===================================================================
---- git.orig/malloc/memusage.sh	2014-08-29 20:00:47.768070587 -0700
-+++ git/malloc/memusage.sh	2014-08-29 20:01:15.212070587 -0700
-@@ -35,7 +35,7 @@
+--- git.orig/malloc/memusage.sh
++++ git/malloc/memusage.sh
+@@ -35,7 +35,7 @@ do_missing_arg() {
  
  # Print help message
  do_help() {
@@ -2654,9 +2654,9 @@ Index: git/malloc/memusage.sh
     -n,--progname=NAME     Name of the program file to profile
 Index: git/math/Makefile
 ===================================================================
---- git.orig/math/Makefile	2014-08-29 20:00:47.836070587 -0700
-+++ git/math/Makefile	2014-08-29 20:01:15.212070587 -0700
-@@ -21,6 +21,8 @@
+--- git.orig/math/Makefile
++++ git/math/Makefile
+@@ -21,6 +21,8 @@ subdir		:= math
  
  include ../Makeconfig
  
@@ -2665,7 +2665,7 @@ Index: git/math/Makefile
  # Installed header files.
  headers		:= math.h bits/mathcalls.h bits/mathinline.h bits/huge_val.h \
  		   bits/huge_valf.h bits/huge_vall.h bits/inf.h bits/nan.h \
-@@ -33,8 +35,8 @@
+@@ -33,8 +35,8 @@ aux		:= setfpucw fpu_control
  
  # Build the -lm library.
  
@@ -2678,8 +2678,8 @@ Index: git/math/Makefile
  	       fclrexcpt fgetexcptflg fraiseexcpt fsetexcptflg		\
 Index: git/misc/err.c
 ===================================================================
---- git.orig/misc/err.c	2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/err.c	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/err.c
++++ git/misc/err.c
 @@ -22,6 +22,7 @@
  #include <errno.h>
  #include <string.h>
@@ -2688,7 +2688,7 @@ Index: git/misc/err.c
  
  #include <wchar.h>
  #define flockfile(s) _IO_flockfile (s)
-@@ -37,6 +38,7 @@
+@@ -37,6 +38,7 @@ extern char *__progname;
    va_end (ap);								      \
  }
  
@@ -2696,7 +2696,7 @@ Index: git/misc/err.c
  static void
  convert_and_print (const char *format, __gnuc_va_list ap)
  {
-@@ -81,6 +83,7 @@
+@@ -81,6 +83,7 @@ convert_and_print (const char *format, _
  
    __vfwprintf (stderr, wformat, ap);
  }
@@ -2704,7 +2704,7 @@ Index: git/misc/err.c
  
  void
  vwarnx (const char *format, __gnuc_va_list ap)
-@@ -88,9 +91,13 @@
+@@ -88,9 +91,13 @@ vwarnx (const char *format, __gnuc_va_li
    flockfile (stderr);
    if (_IO_fwide (stderr, 0) > 0)
      {
@@ -2718,7 +2718,7 @@ Index: git/misc/err.c
      }
    else
      {
-@@ -111,6 +118,7 @@
+@@ -111,6 +118,7 @@ vwarn (const char *format, __gnuc_va_lis
    flockfile (stderr);
    if (_IO_fwide (stderr, 0) > 0)
      {
@@ -2726,7 +2726,7 @@ Index: git/misc/err.c
        __fwprintf (stderr, L"%s: ", __progname);
        if (format)
  	{
-@@ -119,6 +127,9 @@
+@@ -119,6 +127,9 @@ vwarn (const char *format, __gnuc_va_lis
  	}
        __set_errno (error);
        __fwprintf (stderr, L"%m\n");
@@ -2738,8 +2738,8 @@ Index: git/misc/err.c
      {
 Index: git/misc/error.c
 ===================================================================
---- git.orig/misc/error.c	2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/error.c	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/error.c
++++ git/misc/error.c
 @@ -35,6 +35,7 @@
  #endif
  
@@ -2748,7 +2748,7 @@ Index: git/misc/error.c
  # include <libintl.h>
  # include <stdbool.h>
  # include <stdint.h>
-@@ -205,6 +206,7 @@
+@@ -205,6 +206,7 @@ error_tail (int status, int errnum, cons
  #if _LIBC
    if (_IO_fwide (stderr, 0) > 0)
      {
@@ -2756,7 +2756,7 @@ Index: git/misc/error.c
        size_t len = strlen (message) + 1;
        wchar_t *wmessage = NULL;
        mbstate_t st;
-@@ -265,6 +267,9 @@
+@@ -265,6 +267,9 @@ error_tail (int status, int errnum, cons
  
        if (use_malloc)
  	free (wmessage);
@@ -2768,8 +2768,8 @@ Index: git/misc/error.c
  #endif
 Index: git/misc/Makefile
 ===================================================================
---- git.orig/misc/Makefile	2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/Makefile	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/Makefile
++++ git/misc/Makefile
 @@ -19,6 +19,10 @@
  #	Sub-makefile for misc portion of the library.
  #
@@ -2781,7 +2781,7 @@ Index: git/misc/Makefile
  subdir	:= misc
  
  include ../Makeconfig
-@@ -46,40 +50,47 @@
+@@ -46,40 +50,47 @@ routines := brk sbrk sstk ioctl \
  	    select pselect \
  	    acct chroot fsync sync fdatasync syncfs reboot \
  	    gethostid sethostid \
@@ -2838,9 +2838,9 @@ Index: git/misc/Makefile
  CFLAGS-tsearch.c = $(uses-callbacks)
 Index: git/misc/sys/xattr.h
 ===================================================================
---- git.orig/misc/sys/xattr.h	2014-08-29 20:00:52.644070587 -0700
-+++ git/misc/sys/xattr.h	2014-08-29 20:01:15.216070587 -0700
-@@ -26,7 +26,6 @@
+--- git.orig/misc/sys/xattr.h
++++ git/misc/sys/xattr.h
+@@ -26,7 +26,6 @@ __BEGIN_DECLS
  
  /* The following constants should be used for the fifth parameter of
     `*setxattr'.  */
@@ -2848,7 +2848,7 @@ Index: git/misc/sys/xattr.h
  enum
  {
    XATTR_CREATE = 1,	/* set value, fail if attr already exists.  */
-@@ -34,7 +33,6 @@
+@@ -34,7 +33,6 @@ enum
    XATTR_REPLACE = 2	/* set value, fail if attr does not exist.  */
  #define XATTR_REPLACE	XATTR_REPLACE
  };
@@ -2858,9 +2858,9 @@ Index: git/misc/sys/xattr.h
     is SIZE bytes long).  Return 0 on success, -1 for errors.  */
 Index: git/misc/tst-efgcvt.c
 ===================================================================
---- git.orig/misc/tst-efgcvt.c	2014-08-29 20:00:52.652070587 -0700
-+++ git/misc/tst-efgcvt.c	2014-08-29 20:01:15.216070587 -0700
-@@ -59,7 +59,7 @@
+--- git.orig/misc/tst-efgcvt.c
++++ git/misc/tst-efgcvt.c
+@@ -59,7 +59,7 @@ static testcase ecvt_tests[] =
    { 123.01, -4, 3, "" },
    { 126.71, -4, 3, "" },
    { 0.0, 4, 1, "0000" },
@@ -2871,8 +2871,8 @@ Index: git/misc/tst-efgcvt.c
  #endif
 Index: git/nis/Makefile
 ===================================================================
---- git.orig/nis/Makefile	2014-08-29 20:00:52.660070587 -0700
-+++ git/nis/Makefile	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nis/Makefile
++++ git/nis/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Makefile for NIS/NIS+ part.
@@ -2882,7 +2882,7 @@ Index: git/nis/Makefile
  subdir	:= nis
  
  include ../Makeconfig
-@@ -30,19 +32,26 @@
+@@ -30,19 +32,26 @@ endif
  
  # These are the databases available for the nis (and perhaps later nisplus)
  # service.  This must be a superset of the services in nss.
@@ -2915,7 +2915,7 @@ Index: git/nis/Makefile
  vpath %.c $(subdir-dirs)
  
  libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
-@@ -60,11 +69,11 @@
+@@ -60,11 +69,11 @@ libnsl-routines = yp_xdr ypclnt ypupdate
  libnss_compat-routines	:= $(addprefix compat-,grp pwd spwd initgroups)
  libnss_compat-inhibit-o	= $(filter-out .os,$(object-suffixes))
  
@@ -2929,7 +2929,7 @@ Index: git/nis/Makefile
  			   nss-nisplus nisplus-initgroups
  libnss_nisplus-inhibit-o = $(filter-out .os,$(object-suffixes))
  
-@@ -80,12 +89,12 @@
+@@ -80,12 +89,12 @@ libnsl-libc = $(common-objpfx)linkobj/li
  # Target-specific variable setting to link objects using deprecated
  # RPC interfaces with the version of libc.so that makes them available
  # for new links:
@@ -2947,8 +2947,8 @@ Index: git/nis/Makefile
  endif
 Index: git/nptl/Makefile
 ===================================================================
---- git.orig/nptl/Makefile	2014-08-29 20:00:52.704070587 -0700
-+++ git/nptl/Makefile	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nptl/Makefile
++++ git/nptl/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Sub-makefile for NPTL portion of the library.
@@ -2958,7 +2958,7 @@ Index: git/nptl/Makefile
  subdir	:= nptl
  
  include ../Makeconfig
-@@ -116,7 +118,7 @@
+@@ -116,7 +118,7 @@ libpthread-routines = nptl-init vars eve
  		      pt-raise pt-system \
  		      flockfile ftrylockfile funlockfile \
  		      sigaction \
@@ -2967,7 +2967,7 @@ Index: git/nptl/Makefile
  		      pthread_kill_other_threads \
  		      pthread_getaffinity pthread_setaffinity \
  		      pthread_attr_getaffinity pthread_attr_setaffinity \
-@@ -136,6 +138,8 @@
+@@ -136,6 +138,8 @@ libpthread-routines = nptl-init vars eve
  #		      pthread_setgid pthread_setegid pthread_setregid \
  #		      pthread_setresgid
  
@@ -2976,7 +2976,7 @@ Index: git/nptl/Makefile
  libpthread-shared-only-routines = version pt-allocrtsig unwind-forcedunwind
  libpthread-static-only-routines = pthread_atfork
  
-@@ -210,7 +214,7 @@
+@@ -210,7 +214,7 @@ tests = tst-typesizes \
  	tst-mutexpi1 tst-mutexpi2 tst-mutexpi3 tst-mutexpi4 tst-mutexpi5 \
  	tst-mutexpi5a tst-mutexpi6 tst-mutexpi7 tst-mutexpi7a tst-mutexpi8 \
  	tst-mutexpi9 \
@@ -2985,7 +2985,7 @@ Index: git/nptl/Makefile
  	tst-cond1 tst-cond2 tst-cond3 tst-cond4 tst-cond5 tst-cond6 tst-cond7 \
  	tst-cond8 tst-cond9 tst-cond10 tst-cond11 tst-cond12 tst-cond13 \
  	tst-cond14 tst-cond15 tst-cond16 tst-cond17 tst-cond18 tst-cond19 \
-@@ -244,14 +248,14 @@
+@@ -244,14 +248,14 @@ tests = tst-typesizes \
  	tst-cancel6 tst-cancel7 tst-cancel8 tst-cancel9 tst-cancel10 \
  	tst-cancel11 tst-cancel12 tst-cancel13 tst-cancel14 tst-cancel15 \
  	tst-cancel16 tst-cancel17 tst-cancel18 tst-cancel19 tst-cancel20 \
@@ -3002,7 +3002,7 @@ Index: git/nptl/Makefile
  	tst-exit1 tst-exit2 tst-exit3 \
  	tst-stdio1 tst-stdio2 \
  	tst-stack1 tst-stack2 tst-stack3 tst-pthread-getattr \
-@@ -259,13 +263,12 @@
+@@ -259,13 +263,12 @@ tests = tst-typesizes \
  	tst-unload \
  	tst-dlsym1 \
  	tst-sysconf \
@@ -3017,7 +3017,7 @@ Index: git/nptl/Makefile
  	tst-abstime \
  	tst-vfork1 tst-vfork2 tst-vfork1x tst-vfork2x \
  	tst-getpid1 tst-getpid2 tst-getpid3 \
-@@ -275,6 +278,17 @@
+@@ -275,6 +278,17 @@ xtests = tst-setuid1 tst-setuid1-static
  	tst-mutexpp1 tst-mutexpp6 tst-mutexpp10
  test-srcs = tst-oddstacklimit
  
@@ -3037,8 +3037,8 @@ Index: git/nptl/Makefile
  
 Index: git/nptl/pthread_create.c
 ===================================================================
---- git.orig/nptl/pthread_create.c	2014-08-29 20:00:52.764070587 -0700
-+++ git/nptl/pthread_create.c	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nptl/pthread_create.c
++++ git/nptl/pthread_create.c
 @@ -31,6 +31,7 @@
  #include <kernel-features.h>
  #include <exit-thread.h>
@@ -3047,7 +3047,7 @@ Index: git/nptl/pthread_create.c
  #include <shlib-compat.h>
  
  #include <stap-probe.h>
-@@ -240,8 +241,10 @@
+@@ -240,8 +241,10 @@ start_thread (void *arg)
    THREAD_SETMEM (pd, cpuclock_offset, now);
  #endif
  
@@ -3058,7 +3058,7 @@ Index: git/nptl/pthread_create.c
  
    /* Initialize pointers to locale data.  */
    __ctype_init ();
-@@ -322,8 +325,10 @@
+@@ -322,8 +325,10 @@ start_thread (void *arg)
    /* Run the destructor for the thread-local data.  */
    __nptl_deallocate_tsd ();
  
@@ -3071,8 +3071,8 @@ Index: git/nptl/pthread_create.c
       do not notify the debugger, it might just irritate it if there
 Index: git/nscd/Makefile
 ===================================================================
---- git.orig/nscd/Makefile	2014-08-29 20:00:52.948070587 -0700
-+++ git/nscd/Makefile	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nscd/Makefile
++++ git/nscd/Makefile
 @@ -18,14 +18,17 @@
  #
  #	Sub-makefile for nscd portion of the library.
@@ -3093,7 +3093,7 @@ Index: git/nscd/Makefile
  endif
  
  # To find xmalloc.c
-@@ -37,14 +40,18 @@
+@@ -37,14 +40,18 @@ nscd-modules := nscd connections pwdcach
  		dbg_log nscd_conf nscd_stat cache mem nscd_setup_thread \
  		xmalloc xstrdup aicache initgrcache gai res_hconf \
  		netgroupcache
@@ -3117,7 +3117,7 @@ Index: git/nscd/Makefile
  
  endif
  
-@@ -101,7 +108,15 @@
+@@ -101,7 +108,15 @@ include $(patsubst %,$(..)cppflags-itera
  $(objpfx)nscd: $(nscd-modules:%=$(objpfx)%.o)
  
  ifeq ($(build-shared),yes)
@@ -3137,16 +3137,16 @@ Index: git/nscd/Makefile
  endif
 Index: git/nscd/nis_hash.c
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nscd/nis_hash.c	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nscd/nis_hash.c
 @@ -0,0 +1,3 @@
 +/* If OPTION_EGLIBC_NIS is disabled, nscd can't get this from libnsl.so;
 +   we need our own copy.  */
 +#include "../nis/nis_hash.c"
 Index: git/nss/fixed-nsswitch.conf
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/fixed-nsswitch.conf	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/fixed-nsswitch.conf
 @@ -0,0 +1,22 @@
 +# /etc/nsswitch.conf
 +#
@@ -3172,8 +3172,8 @@ Index: git/nss/fixed-nsswitch.conf
 +netgroup:       files
 Index: git/nss/fixed-nsswitch.functions
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/fixed-nsswitch.functions	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/fixed-nsswitch.functions
 @@ -0,0 +1,121 @@
 +/* List of functions defined for fixed NSS in GNU C Library.
 +   Copyright (C) 1996, 1997, 1998, 2005 Free Software Foundation, Inc.
@@ -3298,8 +3298,8 @@ Index: git/nss/fixed-nsswitch.functions
 +DEFINE_GET (shadow, files, spnam)
 Index: git/nss/gen-fixed-nsswitch.c
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/gen-fixed-nsswitch.c	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/gen-fixed-nsswitch.c
 @@ -0,0 +1,803 @@
 +/* gen-fixed-nsswitch.c --- generate fixed name service data structures
 +   Copyright (C) 1996-1999, 2001-2006, 2007 Free Software Foundation, Inc.
@@ -4106,8 +4106,8 @@ Index: git/nss/gen-fixed-nsswitch.c
 +}
 Index: git/nss/getent.c
 ===================================================================
---- git.orig/nss/getent.c	2014-08-29 20:00:52.976070587 -0700
-+++ git/nss/getent.c	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nss/getent.c
++++ git/nss/getent.c
 @@ -39,6 +39,7 @@
  #include <netinet/ether.h>
  #include <netinet/in.h>
@@ -4116,7 +4116,7 @@ Index: git/nss/getent.c
  
  /* Get libc version number.  */
  #include <version.h>
-@@ -91,6 +92,7 @@
+@@ -91,6 +92,7 @@ warranty; not even for MERCHANTABILITY o
    fprintf (stream, gettext ("Written by %s.\n"), "Thorsten Kukuk");
  }
  
@@ -4124,7 +4124,7 @@ Index: git/nss/getent.c
  /* This is for aliases */
  static void
  print_aliases (struct aliasent *alias)
-@@ -135,7 +137,9 @@
+@@ -135,7 +137,9 @@ aliases_keys (int number, char *key[])
  
    return result;
  }
@@ -4134,7 +4134,7 @@ Index: git/nss/getent.c
  /* This is for ethers */
  static int
  ethers_keys (int number, char *key[])
-@@ -179,6 +183,7 @@
+@@ -179,6 +183,7 @@ ethers_keys (int number, char *key[])
  
    return result;
  }
@@ -4142,7 +4142,7 @@ Index: git/nss/getent.c
  
  /* This is for group */
  static void
-@@ -301,6 +306,7 @@
+@@ -301,6 +306,7 @@ gshadow_keys (int number, char *key[])
    return result;
  }
  
@@ -4150,7 +4150,7 @@ Index: git/nss/getent.c
  /* This is for hosts */
  static void
  print_hosts (struct hostent *host)
-@@ -598,6 +604,7 @@
+@@ -598,6 +604,7 @@ networks_keys (int number, char *key[])
  
    return result;
  }
@@ -4158,7 +4158,7 @@ Index: git/nss/getent.c
  
  /* Now is all for passwd */
  static void
-@@ -650,6 +657,7 @@
+@@ -650,6 +657,7 @@ passwd_keys (int number, char *key[])
    return result;
  }
  
@@ -4166,7 +4166,7 @@ Index: git/nss/getent.c
  /* This is for protocols */
  static void
  print_protocols (struct protoent *proto)
-@@ -805,6 +813,7 @@
+@@ -805,6 +813,7 @@ services_keys (int number, char *key[])
  
    return result;
  }
@@ -4174,7 +4174,7 @@ Index: git/nss/getent.c
  
  /* This is for shadow */
  static void
-@@ -871,21 +880,34 @@
+@@ -871,21 +880,34 @@ struct
    } databases[] =
    {
  #define D(name) { #name, name ## _keys },
@@ -4204,10 +4204,11 @@ Index: git/nss/getent.c
  D(group)
  D(gshadow)
 -D(hosts)
-+DN(hosts)
- D(initgroups)
+-D(initgroups)
 -D(netgroup)
 -D(networks)
++DN(hosts)
++DN(initgroups)
 +DN(netgroup)
 +DN(networks)
  D(passwd)
@@ -4222,8 +4223,8 @@ Index: git/nss/getent.c
      { NULL, NULL }
 Index: git/nss/getnssent_r.c
 ===================================================================
---- git.orig/nss/getnssent_r.c	2014-08-29 20:00:52.976070587 -0700
-+++ git/nss/getnssent_r.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/getnssent_r.c
++++ git/nss/getnssent_r.c
 @@ -16,6 +16,7 @@
     <http://www.gnu.org/licenses/>.  */
  
@@ -4232,7 +4233,7 @@ Index: git/nss/getnssent_r.c
  #include <netdb.h>
  #include "nsswitch.h"
  
-@@ -59,11 +60,13 @@
+@@ -59,11 +60,13 @@ __nss_setent (const char *func_name, db_
    } fct;
    int no_more;
  
@@ -4246,7 +4247,7 @@ Index: git/nss/getnssent_r.c
  
    /* Cycle through the services and run their `setXXent' functions until
       we find an available service.  */
-@@ -101,11 +104,13 @@
+@@ -101,11 +104,13 @@ __nss_endent (const char *func_name, db_
    } fct;
    int no_more;
  
@@ -4260,7 +4261,7 @@ Index: git/nss/getnssent_r.c
  
    /* Cycle through all the services and run their endXXent functions.  */
    no_more = setup (func_name, lookup_fct, &fct.ptr, nip, startp, 1);
-@@ -141,12 +146,14 @@
+@@ -141,12 +146,14 @@ __nss_getent_r (const char *getent_func_
    int no_more;
    enum nss_status status;
  
@@ -4275,7 +4276,7 @@ Index: git/nss/getnssent_r.c
  
    /* Initialize status to return if no more functions are found.  */
    status = NSS_STATUS_NOTFOUND;
-@@ -161,7 +168,7 @@
+@@ -161,7 +168,7 @@ __nss_getent_r (const char *getent_func_
        int is_last_nip = *nip == *last_nip;
  
        status = DL_CALL_FCT (fct.f,
@@ -4286,8 +4287,8 @@ Index: git/nss/getnssent_r.c
  	 provided buffer is too small.  In this case we should give
 Index: git/nss/Makefile
 ===================================================================
---- git.orig/nss/Makefile	2014-08-29 20:00:52.972070587 -0700
-+++ git/nss/Makefile	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/Makefile
++++ git/nss/Makefile
 @@ -18,29 +18,36 @@
  #
  #	Makefile for name service switch.
@@ -4333,7 +4334,7 @@ Index: git/nss/Makefile
  
  # Specify rules for the nss_* modules.  We have some services.
  services		:= files db
-@@ -55,7 +62,7 @@
+@@ -55,7 +62,7 @@ subdir-dirs = $(services:%=nss_%)
  vpath %.c $(subdir-dirs) ../locale/programs ../intl
  
  
@@ -4342,7 +4343,7 @@ Index: git/nss/Makefile
  			   files-initgroups files-have_o_cloexec files-init
  
  libnss_db-dbs		:= $(addprefix db-,\
-@@ -78,6 +85,45 @@
+@@ -78,6 +85,45 @@ tests-static		= tst-nss-static
  tests			+= $(tests-static)
  endif
  
@@ -4390,8 +4391,8 @@ Index: git/nss/Makefile
  ifeq (yes,$(have-selinux))
 Index: git/nss/nsswitch.c
 ===================================================================
---- git.orig/nss/nsswitch.c	2014-08-29 20:00:53.004070587 -0700
-+++ git/nss/nsswitch.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/nsswitch.c
++++ git/nss/nsswitch.c
 @@ -26,6 +26,7 @@
  #include <stdio_ext.h>
  #include <stdlib.h>
@@ -4416,7 +4417,7 @@ Index: git/nss/nsswitch.c
  /* Prototypes for the local functions.  */
  static name_database *nss_parse_file (const char *fname) internal_function;
  static name_database_entry *nss_getline (char *line) internal_function;
-@@ -79,6 +89,9 @@
+@@ -79,6 +89,9 @@ bool __nss_database_custom[NSS_DBSIDX_ma
  
  __libc_lock_define_initialized (static, lock)
  
@@ -4426,7 +4427,7 @@ Index: git/nss/nsswitch.c
  #if !defined DO_STATIC_NSS || defined SHARED
  /* String with revision number of the shared object files.  */
  static const char *const __nss_shlib_revision = LIBNSS_FILES_SO + 15;
-@@ -93,6 +106,20 @@
+@@ -93,6 +106,20 @@ static name_database *service_table;
     __libc_freeres.  */
  static name_database_entry *defconfig_entries;
  
@@ -4447,7 +4448,7 @@ Index: git/nss/nsswitch.c
  
  #ifdef USE_NSCD
  /* Nonzero if this is the nscd process.  */
-@@ -109,20 +136,22 @@
+@@ -109,20 +136,22 @@ __nss_database_lookup (const char *datab
  		       const char *defconfig, service_user **ni)
  {
    /* Prevent multiple threads to change the service table.  */
@@ -4472,7 +4473,7 @@ Index: git/nss/nsswitch.c
  
    /* Test whether configuration data is available.  */
    if (service_table != NULL)
-@@ -144,6 +173,7 @@
+@@ -144,6 +173,7 @@ __nss_database_lookup (const char *datab
  	    *ni = entry->service;
      }
  
@@ -4480,7 +4481,7 @@ Index: git/nss/nsswitch.c
    /* No configuration data is available, either because nsswitch.conf
       doesn't exist or because it doesn't have a line for this database.
  
-@@ -166,13 +196,23 @@
+@@ -166,13 +196,23 @@ __nss_database_lookup (const char *datab
  	    {
  	      entry->next = defconfig_entries;
  	      entry->service = *ni;
@@ -4506,7 +4507,7 @@ Index: git/nss/nsswitch.c
  
    return *ni != NULL ? 0 : -1;
  }
-@@ -252,6 +292,7 @@
+@@ -252,6 +292,7 @@ __nss_next2 (service_user **ni, const ch
  libc_hidden_def (__nss_next2)
  
  
@@ -4514,7 +4515,7 @@ Index: git/nss/nsswitch.c
  int
  attribute_compat_text_section
  __nss_next (service_user **ni, const char *fct_name, void **fctp, int status,
-@@ -300,13 +341,13 @@
+@@ -300,13 +341,13 @@ __nss_configure_lookup (const char *dbna
      }
  
    /* Prevent multiple threads to change the service table.  */
@@ -4530,7 +4531,7 @@ Index: git/nss/nsswitch.c
  
    return 0;
  }
-@@ -402,7 +443,7 @@
+@@ -402,7 +443,7 @@ __nss_lookup_function (service_user *ni,
    void **found, *result;
  
    /* We now modify global data.  Protect it.  */
@@ -4539,7 +4540,7 @@ Index: git/nss/nsswitch.c
  
    /* Search the tree of functions previously requested.  Data in the
       tree are `known_function' structures, whose first member is a
-@@ -413,7 +454,7 @@
+@@ -413,7 +454,7 @@ __nss_lookup_function (service_user *ni,
       enough to a pointer to our structure to use as a lookup key that
       will be passed to `known_compare' (above).  */
  
@@ -4548,7 +4549,7 @@ Index: git/nss/nsswitch.c
    if (found == NULL)
      /* This means out-of-memory.  */
      result = NULL;
-@@ -440,7 +481,7 @@
+@@ -440,7 +481,7 @@ __nss_lookup_function (service_user *ni,
  #endif
  	  /* Oops.  We can't instantiate this node properly.
  	     Remove it from the tree.  */
@@ -4557,7 +4558,7 @@ Index: git/nss/nsswitch.c
  	  free (known);
  	  result = NULL;
  	}
-@@ -520,13 +561,43 @@
+@@ -520,13 +561,43 @@ __nss_lookup_function (service_user *ni,
      }
  
    /* Remove the lock.  */
@@ -4602,7 +4603,7 @@ Index: git/nss/nsswitch.c
  static name_database *
  internal_function
  nss_parse_file (const char *fname)
-@@ -632,8 +703,10 @@
+@@ -632,8 +703,10 @@ nss_parse_service_list (const char *line
  					     + (line - name + 1));
        if (new_service == NULL)
  	return result;
@@ -4614,7 +4615,7 @@ Index: git/nss/nsswitch.c
  
        /* Set default actions.  */
        new_service->actions[2 + NSS_STATUS_TRYAGAIN] = NSS_ACTION_CONTINUE;
-@@ -642,7 +715,7 @@
+@@ -642,7 +715,7 @@ nss_parse_service_list (const char *line
        new_service->actions[2 + NSS_STATUS_SUCCESS] = NSS_ACTION_RETURN;
        new_service->actions[2 + NSS_STATUS_RETURN] = NSS_ACTION_RETURN;
        new_service->library = NULL;
@@ -4623,7 +4624,7 @@ Index: git/nss/nsswitch.c
        new_service->next = NULL;
  
        while (isspace (line[0]))
-@@ -778,9 +851,10 @@
+@@ -778,9 +851,10 @@ nss_getline (char *line)
    result = (name_database_entry *) malloc (sizeof (name_database_entry) + len);
    if (result == NULL)
      return NULL;
@@ -4635,7 +4636,7 @@ Index: git/nss/nsswitch.c
  
    /* Parse the list of services.  */
    result->service = nss_parse_service_list (line);
-@@ -816,6 +890,7 @@
+@@ -816,6 +890,7 @@ nss_new_service (name_database *database
    return *currentp;
  }
  #endif
@@ -4643,7 +4644,7 @@ Index: git/nss/nsswitch.c
  
  
  #if defined SHARED && defined USE_NSCD
-@@ -834,6 +909,7 @@
+@@ -834,6 +909,7 @@ nss_load_all_libraries (const char *serv
  }
  
  
@@ -4651,7 +4652,7 @@ Index: git/nss/nsswitch.c
  /* Called by nscd and nscd alone.  */
  void
  __nss_disable_nscd (void (*cb) (size_t, struct traced_file *))
-@@ -857,8 +933,10 @@
+@@ -857,8 +933,10 @@ __nss_disable_nscd (void (*cb) (size_t,
    __nss_not_use_nscd_services = -1;
    __nss_not_use_nscd_netgroup = -1;
  }
@@ -4662,7 +4663,7 @@ Index: git/nss/nsswitch.c
  static void
  free_database_entries (name_database_entry *entry)
  {
-@@ -871,8 +949,8 @@
+@@ -871,8 +949,8 @@ free_database_entries (name_database_ent
  	{
  	  service_user *olds = service;
  
@@ -4673,16 +4674,16 @@ Index: git/nss/nsswitch.c
  
  	  service = service->next;
  	  free (olds);
-@@ -926,3 +1004,4 @@
+@@ -926,3 +1004,4 @@ libc_freeres_fn (free_mem)
  
    free (top);
  }
 +#endif /* __OPTION_EGLIBC_NSSWITCH */
 Index: git/nss/nsswitch.h
 ===================================================================
---- git.orig/nss/nsswitch.h	2014-08-29 20:00:53.012070587 -0700
-+++ git/nss/nsswitch.h	2014-08-29 20:01:15.220070587 -0700
-@@ -65,10 +65,20 @@
+--- git.orig/nss/nsswitch.h
++++ git/nss/nsswitch.h
+@@ -65,10 +65,20 @@ typedef struct service_user
    lookup_actions actions[5];
    /* Link to the underlying library object.  */
    service_library *library;
@@ -4706,7 +4707,7 @@ Index: git/nss/nsswitch.h
  } service_user;
  
  /* To access the action based on the status value use this macro.  */
-@@ -82,7 +92,7 @@
+@@ -82,7 +92,7 @@ typedef struct name_database_entry
    /* List of service to be used.  */
    service_user *service;
    /* Name of the database.  */
@@ -4717,8 +4718,8 @@ Index: git/nss/nsswitch.h
  
 Index: git/posix/bug-regex1.c
 ===================================================================
---- git.orig/posix/bug-regex1.c	2014-08-29 20:00:53.184070587 -0700
-+++ git/posix/bug-regex1.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/bug-regex1.c
++++ git/posix/bug-regex1.c
 @@ -4,6 +4,7 @@
  #include <string.h>
  #include <regex.h>
@@ -4727,7 +4728,7 @@ Index: git/posix/bug-regex1.c
  
  int
  main (void)
-@@ -17,7 +18,9 @@
+@@ -17,7 +18,9 @@ main (void)
    memset (&regex, '\0', sizeof (regex));
  
    setlocale (LC_ALL, "de_DE.ISO-8859-1");
@@ -4739,8 +4740,8 @@ Index: git/posix/bug-regex1.c
  
 Index: git/posix/bug-regex6.c
 ===================================================================
---- git.orig/posix/bug-regex6.c	2014-08-29 20:00:53.204070587 -0700
-+++ git/posix/bug-regex6.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/bug-regex6.c
++++ git/posix/bug-regex6.c
 @@ -22,6 +22,7 @@
  #include <string.h>
  #include <sys/types.h>
@@ -4749,7 +4750,7 @@ Index: git/posix/bug-regex6.c
  
  
  int
-@@ -30,7 +31,12 @@
+@@ -30,7 +31,12 @@ main (int argc, char *argv[])
    regex_t re;
    regmatch_t mat[10];
    int i, j, ret = 0;
@@ -4765,8 +4766,8 @@ Index: git/posix/bug-regex6.c
      { 0, 48 }, { 0, 5 }, { 0, 4 }, { 5, 20 }, { 7, 20 }, { 20, 42 },
 Index: git/posix/fnmatch.c
 ===================================================================
---- git.orig/posix/fnmatch.c	2014-08-29 20:00:53.208070587 -0700
-+++ git/posix/fnmatch.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/fnmatch.c
++++ git/posix/fnmatch.c
 @@ -30,6 +30,10 @@
  #include <ctype.h>
  #include <string.h>
@@ -4778,7 +4779,7 @@ Index: git/posix/fnmatch.c
  #if defined STDC_HEADERS || defined _LIBC
  # include <stdlib.h>
  #endif
-@@ -131,7 +135,7 @@
+@@ -131,7 +135,7 @@ extern int fnmatch (const char *pattern,
  #   define ISWCTYPE(WC, WT)	iswctype (WC, WT)
  #  endif
  
@@ -4789,8 +4790,8 @@ Index: git/posix/fnmatch.c
  #  endif
 Index: git/posix/fnmatch_loop.c
 ===================================================================
---- git.orig/posix/fnmatch_loop.c	2014-08-29 20:00:53.220070587 -0700
-+++ git/posix/fnmatch_loop.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/fnmatch_loop.c
++++ git/posix/fnmatch_loop.c
 @@ -15,6 +15,8 @@
     License along with the GNU C Library; if not, see
     <http://www.gnu.org/licenses/>.  */
@@ -4800,7 +4801,7 @@ Index: git/posix/fnmatch_loop.c
  #include <stdint.h>
  
  struct STRUCT
-@@ -54,10 +56,15 @@
+@@ -54,10 +56,15 @@ FCT (pattern, string, string_end, no_lea
    const char *collseq = (const char *)
      _NL_CURRENT(LC_COLLATE, _NL_COLLATE_COLLSEQWC);
  # else
@@ -4818,7 +4819,7 @@ Index: git/posix/fnmatch_loop.c
  
    while ((c = *p++) != L('\0'))
      {
-@@ -277,7 +284,7 @@
+@@ -277,7 +284,7 @@ FCT (pattern, string, string_end, no_lea
  		    /* Leave room for the null.  */
  		    CHAR str[CHAR_CLASS_MAX_LENGTH + 1];
  		    size_t c1 = 0;
@@ -4827,7 +4828,7 @@ Index: git/posix/fnmatch_loop.c
  		    wctype_t wt;
  #endif
  		    const CHAR *startp = p;
-@@ -307,7 +314,7 @@
+@@ -307,7 +314,7 @@ FCT (pattern, string, string_end, no_lea
  		      }
  		    str[c1] = L('\0');
  
@@ -4836,7 +4837,7 @@ Index: git/posix/fnmatch_loop.c
  		    wt = IS_CHAR_CLASS (str);
  		    if (wt == 0)
  		      /* Invalid character class name.  */
-@@ -681,8 +688,10 @@
+@@ -681,8 +688,10 @@ FCT (pattern, string, string_end, no_lea
  			else
  			  lcollseq = __collseq_table_lookup (collseq, cold);
  # else
@@ -4849,7 +4850,7 @@ Index: git/posix/fnmatch_loop.c
  # endif
  
  			is_seqval = 0;
-@@ -858,7 +867,7 @@
+@@ -858,7 +867,7 @@ FCT (pattern, string, string_end, no_lea
  				    goto matched;
  				  }
  # else
@@ -4860,8 +4861,8 @@ Index: git/posix/fnmatch_loop.c
  
 Index: git/posix/glob.c
 ===================================================================
---- git.orig/posix/glob.c	2014-08-29 20:00:53.232070587 -0700
-+++ git/posix/glob.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/glob.c
++++ git/posix/glob.c
 @@ -25,6 +25,9 @@
  #include <sys/types.h>
  #include <sys/stat.h>
@@ -4872,7 +4873,7 @@ Index: git/posix/glob.c
  
  /* Outcomment the following line for production quality code.  */
  /* #define NDEBUG 1 */
-@@ -607,6 +610,7 @@
+@@ -607,6 +610,7 @@ glob (pattern, flags, errfunc, pglob)
  	  if (home_dir == NULL || home_dir[0] == '\0')
  	    home_dir = "c:/users/default"; /* poor default */
  #  else
@@ -4880,7 +4881,7 @@ Index: git/posix/glob.c
  	  if (home_dir == NULL || home_dir[0] == '\0')
  	    {
  	      int success;
-@@ -623,19 +627,19 @@
+@@ -623,19 +627,19 @@ glob (pattern, flags, errfunc, pglob)
  	      if (success)
  		{
  		  struct passwd *p;
@@ -4903,7 +4904,7 @@ Index: git/posix/glob.c
  		  if (__libc_use_alloca (alloca_used + pwbuflen))
  		    pwtmpbuf = alloca_account (pwbuflen, alloca_used);
  		  else
-@@ -682,9 +686,9 @@
+@@ -682,9 +686,9 @@ glob (pattern, flags, errfunc, pglob)
  			}
  		      __set_errno (save);
  		    }
@@ -4915,7 +4916,7 @@ Index: git/posix/glob.c
  		  if (p != NULL)
  		    {
  		      if (!malloc_pwtmpbuf)
-@@ -713,6 +717,7 @@
+@@ -713,6 +717,7 @@ glob (pattern, flags, errfunc, pglob)
  		    }
  		}
  	    }
@@ -4925,8 +4926,8 @@ Index: git/posix/glob.c
  	      if (flags & GLOB_TILDE_CHECK)
 Index: git/posix/Makefile
 ===================================================================
---- git.orig/posix/Makefile	2014-08-29 20:00:53.160070587 -0700
-+++ git/posix/Makefile	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/Makefile
++++ git/posix/Makefile
 @@ -18,6 +18,8 @@
  #
  #	Sub-makefile for POSIX portion of the library.
@@ -4936,7 +4937,7 @@ Index: git/posix/Makefile
  subdir	:= posix
  
  include ../Makeconfig
-@@ -43,13 +45,24 @@
+@@ -43,13 +45,24 @@ routines :=								      \
  	getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid	      \
  	getresuid getresgid setresuid setresgid				      \
  	pathconf sysconf fpathconf					      \
@@ -4963,7 +4964,7 @@ Index: git/posix/Makefile
  	spawn_faction_init spawn_faction_destroy spawn_faction_addclose	      \
  	spawn_faction_addopen spawn_faction_adddup2			      \
  	spawnattr_init spawnattr_destroy				      \
-@@ -57,41 +70,53 @@
+@@ -57,41 +70,53 @@ routines :=								      \
  	spawnattr_getflags spawnattr_setflags				      \
  	spawnattr_getpgroup spawnattr_setpgroup spawn spawnp spawni	      \
  	spawnattr_getsigmask spawnattr_getschedpolicy spawnattr_getschedparam \
@@ -5040,7 +5041,7 @@ Index: git/posix/Makefile
  endif
  tests-static	= tst-exec-static tst-spawn-static
  tests		+= $(tests-static)
-@@ -117,7 +142,10 @@
+@@ -117,7 +142,10 @@ generated += $(addprefix wordexp-test-re
  
  ifeq ($(run-built-tests),yes)
  ifeq (yes,$(build-shared))
@@ -5052,7 +5053,7 @@ Index: git/posix/Makefile
  endif
  endif
  
-@@ -125,12 +153,16 @@
+@@ -125,12 +153,16 @@ endif
  # XXX Please note that for now we ignore the result of this test.
  tests-special += $(objpfx)annexc.out
  ifeq ($(run-built-tests),yes)
@@ -5072,7 +5073,7 @@ Index: git/posix/Makefile
  xtests-special += $(objpfx)bug-ga2-mem.out
  endif
  
-@@ -143,6 +175,8 @@
+@@ -143,6 +175,8 @@ $(objpfx)globtest.out: globtest.sh $(obj
  	$(SHELL) $< $(common-objpfx) '$(test-via-rtld-prefix)' \
  		'$(test-program-prefix)' '$(test-wrapper-env)'; \
  	$(evaluate-test)
@@ -5081,7 +5082,7 @@ Index: git/posix/Makefile
  $(objpfx)wordexp-tst.out: wordexp-tst.sh $(objpfx)wordexp-test
  	$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
  		 '$(run-program-env)' '$(test-program-prefix-after-env)'; \
-@@ -205,7 +239,10 @@
+@@ -205,7 +239,10 @@ tst-dir-ARGS = `pwd` `cd $(common-objdir
  tst-chmod-ARGS = $(objdir)
  tst-vfork3-ARGS = --test-dir=$(objpfx)
  
@@ -5095,8 +5096,8 @@ Index: git/posix/Makefile
  tst-boost-ARGS = BOOST.tests
 Index: git/posix/regcomp.c
 ===================================================================
---- git.orig/posix/regcomp.c	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regcomp.c	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regcomp.c
++++ git/posix/regcomp.c
 @@ -18,6 +18,7 @@
     <http://www.gnu.org/licenses/>.  */
  
@@ -5105,7 +5106,7 @@ Index: git/posix/regcomp.c
  
  static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
  					  size_t length, reg_syntax_t syntax);
-@@ -305,7 +306,7 @@
+@@ -305,7 +306,7 @@ re_compile_fastmap_iter (regex_t *bufp,
  {
    re_dfa_t *dfa = (re_dfa_t *) bufp->buffer;
    int node_cnt;
@@ -5114,7 +5115,7 @@ Index: git/posix/regcomp.c
    for (node_cnt = 0; node_cnt < init_state->nodes.nelem; ++node_cnt)
      {
        int node = init_state->nodes.elems[node_cnt];
-@@ -315,9 +316,9 @@
+@@ -315,9 +316,9 @@ re_compile_fastmap_iter (regex_t *bufp,
  	{
  	  re_set_fastmap (fastmap, icase, dfa->nodes[node].opr.c);
  #ifdef RE_ENABLE_I18N
@@ -5126,7 +5127,7 @@ Index: git/posix/regcomp.c
  	      wchar_t wc;
  	      mbstate_t state;
  
-@@ -348,7 +349,11 @@
+@@ -348,7 +349,11 @@ re_compile_fastmap_iter (regex_t *bufp,
  		  re_set_fastmap (fastmap, icase, ch);
  	    }
  	}
@@ -5139,7 +5140,7 @@ Index: git/posix/regcomp.c
        else if (type == COMPLEX_BRACKET)
  	{
  	  re_charset_t *cset = dfa->nodes[node].opr.mbcset;
-@@ -376,7 +381,7 @@
+@@ -376,7 +381,7 @@ re_compile_fastmap_iter (regex_t *bufp,
  	     i.e. where we would not find an invalid sequence.  This only
  	     applies to multibyte character sets; for single byte character
  	     sets, the SIMPLE_BRACKET again suffices.  */
@@ -5148,7 +5149,7 @@ Index: git/posix/regcomp.c
  	      && (cset->nchar_classes || cset->non_match || cset->nranges
  # ifdef _LIBC
  		  || cset->nequiv_classes
-@@ -404,7 +409,7 @@
+@@ -404,7 +409,7 @@ re_compile_fastmap_iter (regex_t *bufp,
  		  memset (&state, '\0', sizeof (state));
  		  if (__wcrtomb (buf, cset->mbchars[i], &state) != (size_t) -1)
  		    re_set_fastmap (fastmap, icase, *(unsigned char *) buf);
@@ -5157,7 +5158,7 @@ Index: git/posix/regcomp.c
  		    {
  		      if (__wcrtomb (buf, towlower (cset->mbchars[i]), &state)
  			  != (size_t) -1)
-@@ -413,7 +418,7 @@
+@@ -413,7 +418,7 @@ re_compile_fastmap_iter (regex_t *bufp,
  		}
  	    }
  	}
@@ -5166,7 +5167,7 @@ Index: git/posix/regcomp.c
        else if (type == OP_PERIOD
  #ifdef RE_ENABLE_I18N
  	       || type == OP_UTF8_PERIOD
-@@ -856,11 +861,15 @@
+@@ -856,11 +861,15 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
  
    dfa->mb_cur_max = MB_CUR_MAX;
  #ifdef _LIBC
@@ -5183,7 +5184,7 @@ Index: git/posix/regcomp.c
  #else
  # ifdef HAVE_LANGINFO_CODESET
    codeset_name = nl_langinfo (CODESET);
-@@ -886,7 +895,7 @@
+@@ -886,7 +895,7 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
  #endif
  
  #ifdef RE_ENABLE_I18N
@@ -5192,7 +5193,7 @@ Index: git/posix/regcomp.c
      {
        if (dfa->is_utf8)
  	dfa->sb_char = (re_bitset_ptr_t) utf8_sb_map;
-@@ -1784,7 +1793,7 @@
+@@ -1784,7 +1793,7 @@ peek_token (re_token_t *token, re_string
    token->word_char = 0;
  #ifdef RE_ENABLE_I18N
    token->mb_partial = 0;
@@ -5201,7 +5202,7 @@ Index: git/posix/regcomp.c
        !re_string_first_byte (input, re_string_cur_idx (input)))
      {
        token->type = CHARACTER;
-@@ -1805,7 +1814,7 @@
+@@ -1805,7 +1814,7 @@ peek_token (re_token_t *token, re_string
        token->opr.c = c2;
        token->type = CHARACTER;
  #ifdef RE_ENABLE_I18N
@@ -5210,7 +5211,7 @@ Index: git/posix/regcomp.c
  	{
  	  wint_t wc = re_string_wchar_at (input,
  					  re_string_cur_idx (input) + 1);
-@@ -1919,7 +1928,7 @@
+@@ -1919,7 +1928,7 @@ peek_token (re_token_t *token, re_string
  
    token->type = CHARACTER;
  #ifdef RE_ENABLE_I18N
@@ -5219,7 +5220,7 @@ Index: git/posix/regcomp.c
      {
        wint_t wc = re_string_wchar_at (input, re_string_cur_idx (input));
        token->word_char = IS_WIDE_WORD_CHAR (wc) != 0;
-@@ -2019,7 +2028,7 @@
+@@ -2019,7 +2028,7 @@ peek_token_bracket (re_token_t *token, r
    token->opr.c = c;
  
  #ifdef RE_ENABLE_I18N
@@ -5228,7 +5229,7 @@ Index: git/posix/regcomp.c
        !re_string_first_byte (input, re_string_cur_idx (input)))
      {
        token->type = CHARACTER;
-@@ -2242,7 +2251,7 @@
+@@ -2242,7 +2251,7 @@ parse_expression (re_string_t *regexp, r
  	  return NULL;
  	}
  #ifdef RE_ENABLE_I18N
@@ -5237,7 +5238,7 @@ Index: git/posix/regcomp.c
  	{
  	  while (!re_string_eoi (regexp)
  		 && !re_string_first_byte (regexp, re_string_cur_idx (regexp)))
-@@ -2380,7 +2389,7 @@
+@@ -2380,7 +2389,7 @@ parse_expression (re_string_t *regexp, r
  	  *err = REG_ESPACE;
  	  return NULL;
  	}
@@ -5246,7 +5247,7 @@ Index: git/posix/regcomp.c
  	dfa->has_mb_node = 1;
        break;
      case OP_WORD:
-@@ -2686,7 +2695,7 @@
+@@ -2686,7 +2695,7 @@ build_range_exp (bitset_t sbcset, bracke
         However, for !_LIBC we have no collation elements: if the
         character set is single byte, the single byte character set
         that we build below suffices.  parse_bracket_exp passes
@@ -5255,7 +5256,7 @@ Index: git/posix/regcomp.c
      if (mbcset)
        {
  	/* Check the space of the arrays.  */
-@@ -2782,7 +2791,13 @@
+@@ -2782,7 +2791,13 @@ parse_bracket_exp (re_string_t *regexp,
  		   reg_syntax_t syntax, reg_errcode_t *err)
  {
  #ifdef _LIBC
@@ -5269,7 +5270,7 @@ Index: git/posix/regcomp.c
    const char *collseqwc;
    uint32_t nrules;
    int32_t table_size;
-@@ -2830,18 +2845,20 @@
+@@ -2830,18 +2845,20 @@ parse_bracket_exp (re_string_t *regexp,
  	  if (MB_CUR_MAX == 1)
  	  */
  	  if (nrules == 0)
@@ -5291,7 +5292,7 @@ Index: git/posix/regcomp.c
        else if (br_elem->type == COLL_SYM)
  	{
  	  size_t sym_name_len = strlen ((char *) br_elem->opr.name);
-@@ -2872,11 +2889,11 @@
+@@ -2872,11 +2889,11 @@ parse_bracket_exp (re_string_t *regexp,
  		{
  		  /* No valid character.  Match it as a single byte
  		     character.  */
@@ -5305,7 +5306,7 @@ Index: git/posix/regcomp.c
  	}
        return UINT_MAX;
      }
-@@ -2916,7 +2933,7 @@
+@@ -2916,7 +2933,7 @@ parse_bracket_exp (re_string_t *regexp,
  	 However, if we have no collation elements, and the character set
  	 is single byte, the single byte character set that we
  	 build below suffices. */
@@ -5314,7 +5315,7 @@ Index: git/posix/regcomp.c
  	{
  	  /* Check the space of the arrays.  */
  	  if (BE (*range_alloc == mbcset->nranges, 0))
-@@ -2953,7 +2970,7 @@
+@@ -2953,7 +2970,7 @@ parse_bracket_exp (re_string_t *regexp,
  	  if (MB_CUR_MAX == 1)
  	  */
  	  if (nrules == 0)
@@ -5323,7 +5324,7 @@ Index: git/posix/regcomp.c
  	  else
  	    ch_collseq = __collseq_table_lookup (collseqwc, __btowc (ch));
  	  if (start_collseq <= ch_collseq && ch_collseq <= end_collseq)
-@@ -3031,7 +3048,10 @@
+@@ -3031,7 +3048,10 @@ parse_bracket_exp (re_string_t *regexp,
    re_bitset_ptr_t sbcset;
  #ifdef RE_ENABLE_I18N
    re_charset_t *mbcset;
@@ -5335,7 +5336,7 @@ Index: git/posix/regcomp.c
    int equiv_class_alloc = 0, char_class_alloc = 0;
  #endif /* not RE_ENABLE_I18N */
    int non_match = 0;
-@@ -3039,9 +3059,15 @@
+@@ -3039,9 +3059,15 @@ parse_bracket_exp (re_string_t *regexp,
    int token_len;
    int first_round = 1;
  #ifdef _LIBC
@@ -5351,7 +5352,7 @@ Index: git/posix/regcomp.c
    if (nrules)
      {
        /*
-@@ -3169,7 +3195,7 @@
+@@ -3169,7 +3195,7 @@ parse_bracket_exp (re_string_t *regexp,
  #else
  # ifdef RE_ENABLE_I18N
  	  *err = build_range_exp (sbcset,
@@ -5360,7 +5361,7 @@ Index: git/posix/regcomp.c
  				  &range_alloc, &start_elem, &end_elem);
  # else
  	  *err = build_range_exp (sbcset, &start_elem, &end_elem);
-@@ -3185,7 +3211,7 @@
+@@ -3185,7 +3211,7 @@ parse_bracket_exp (re_string_t *regexp,
  	    case SB_CHAR:
  	      bitset_set (sbcset, start_elem.opr.ch);
  	      break;
@@ -5369,7 +5370,7 @@ Index: git/posix/regcomp.c
  	    case MB_CHAR:
  	      /* Check whether the array has enough space.  */
  	      if (BE (mbchar_alloc == mbcset->nmbchars, 0))
-@@ -3203,7 +3229,7 @@
+@@ -3203,7 +3229,7 @@ parse_bracket_exp (re_string_t *regexp,
  		}
  	      mbcset->mbchars[mbcset->nmbchars++] = start_elem.opr.wch;
  	      break;
@@ -5378,7 +5379,7 @@ Index: git/posix/regcomp.c
  	    case EQUIV_CLASS:
  	      *err = build_equiv_class (sbcset,
  #ifdef RE_ENABLE_I18N
-@@ -3253,11 +3279,11 @@
+@@ -3253,11 +3279,11 @@ parse_bracket_exp (re_string_t *regexp,
  
  #ifdef RE_ENABLE_I18N
    /* Ensure only single byte characters are set.  */
@@ -5392,7 +5393,7 @@ Index: git/posix/regcomp.c
  						     || mbcset->non_match)))
      {
        bin_tree_t *mbc_tree;
-@@ -3326,7 +3352,7 @@
+@@ -3326,7 +3352,7 @@ parse_bracket_element (bracket_elem_t *e
  		       re_token_t *token, int token_len, re_dfa_t *dfa,
  		       reg_syntax_t syntax, int accept_hyphen)
  {
@@ -5401,7 +5402,7 @@ Index: git/posix/regcomp.c
    int cur_char_size;
    cur_char_size = re_string_char_size_at (regexp, re_string_cur_idx (regexp));
    if (cur_char_size > 1)
-@@ -3336,7 +3362,7 @@
+@@ -3336,7 +3362,7 @@ parse_bracket_element (bracket_elem_t *e
        re_string_skip_bytes (regexp, cur_char_size);
        return REG_NOERROR;
      }
@@ -5410,7 +5411,7 @@ Index: git/posix/regcomp.c
    re_string_skip_bytes (regexp, token_len); /* Skip a token.  */
    if (token->type == OP_OPEN_COLL_ELEM || token->type == OP_OPEN_CHAR_CLASS
        || token->type == OP_OPEN_EQUIV_CLASS)
-@@ -3416,7 +3442,9 @@
+@@ -3416,7 +3442,9 @@ build_equiv_class (bitset_t sbcset, re_c
  build_equiv_class (bitset_t sbcset, const unsigned char *name)
  #endif /* not RE_ENABLE_I18N */
  {
@@ -5421,7 +5422,7 @@ Index: git/posix/regcomp.c
    uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
    if (nrules != 0)
      {
-@@ -3488,7 +3516,7 @@
+@@ -3488,7 +3516,7 @@ build_equiv_class (bitset_t sbcset, cons
        mbcset->equiv_classes[mbcset->nequiv_classes++] = idx1;
      }
    else
@@ -5430,7 +5431,7 @@ Index: git/posix/regcomp.c
      {
        if (BE (strlen ((const char *) name) != 1, 0))
  	return REG_ECOLLATE;
-@@ -3522,7 +3550,7 @@
+@@ -3522,7 +3550,7 @@ build_charclass (RE_TRANSLATE_TYPE trans
        && (strcmp (name, "upper") == 0 || strcmp (name, "lower") == 0))
      name = "alpha";
  
@@ -5439,7 +5440,7 @@ Index: git/posix/regcomp.c
    /* Check the space of the arrays.  */
    if (BE (*char_class_alloc == mbcset->nchar_classes, 0))
      {
-@@ -3538,7 +3566,7 @@
+@@ -3538,7 +3566,7 @@ build_charclass (RE_TRANSLATE_TYPE trans
        *char_class_alloc = new_char_class_alloc;
      }
    mbcset->char_classes[mbcset->nchar_classes++] = __wctype (name);
@@ -5448,7 +5449,7 @@ Index: git/posix/regcomp.c
  
  #define BUILD_CHARCLASS_LOOP(ctype_func)	\
    do {						\
-@@ -3649,7 +3677,7 @@
+@@ -3649,7 +3677,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TR
  
  #ifdef RE_ENABLE_I18N
    /* Ensure only single byte characters are set.  */
@@ -5457,7 +5458,7 @@ Index: git/posix/regcomp.c
      bitset_mask (sbcset, dfa->sb_char);
  #endif
  
-@@ -3661,7 +3689,7 @@
+@@ -3661,7 +3689,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TR
      goto build_word_op_espace;
  
  #ifdef RE_ENABLE_I18N
@@ -5468,8 +5469,8 @@ Index: git/posix/regcomp.c
        /* Build a tree for complex bracket.  */
 Index: git/posix/regexec.c
 ===================================================================
---- git.orig/posix/regexec.c	2014-08-29 20:00:53.268070587 -0700
-+++ git/posix/regexec.c	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regexec.c
++++ git/posix/regexec.c
 @@ -18,6 +18,7 @@
     <http://www.gnu.org/licenses/>.  */
  
@@ -5478,7 +5479,7 @@ Index: git/posix/regexec.c
  
  static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags,
  				     int n) internal_function;
-@@ -186,11 +187,11 @@
+@@ -186,11 +187,11 @@ static int build_trtable (const re_dfa_t
  static int check_node_accept_bytes (const re_dfa_t *dfa, int node_idx,
  				    const re_string_t *input, int idx)
       internal_function;
@@ -5492,7 +5493,7 @@ Index: git/posix/regexec.c
  #endif /* RE_ENABLE_I18N */
  static int group_nodes_into_DFAstates (const re_dfa_t *dfa,
  				       const re_dfastate_t *state,
-@@ -255,25 +256,9 @@
+@@ -255,25 +256,9 @@ regexec (preg, string, nmatch, pmatch, e
    return err != REG_NOERROR;
  }
  
@@ -5521,7 +5522,7 @@ Index: git/posix/regexec.c
  
  /* Entry points for GNU code.  */
  
-@@ -728,7 +713,7 @@
+@@ -728,7 +713,7 @@ re_search_internal (preg, string, length
    incr = (range < 0) ? -1 : 1;
    left_lim = (range < 0) ? start + range : start;
    right_lim = (range < 0) ? start : start + range;
@@ -5530,7 +5531,7 @@ Index: git/posix/regexec.c
    match_kind =
      (fastmap
       ? ((sb || !(preg->syntax & RE_ICASE || t) ? 4 : 0)
-@@ -3448,7 +3433,7 @@
+@@ -3448,7 +3433,7 @@ out_free:
  	  if (BE (dest_states_word[i] == NULL && err != REG_NOERROR, 0))
  	    goto out_free;
  
@@ -5539,7 +5540,7 @@ Index: git/posix/regexec.c
  	    need_word_trtable = 1;
  
  	  dest_states_nl[i] = re_acquire_state_context (&err, dfa, &follows,
-@@ -3590,7 +3575,7 @@
+@@ -3590,7 +3575,7 @@ group_nodes_into_DFAstates (const re_dfa
        else if (type == OP_PERIOD)
  	{
  #ifdef RE_ENABLE_I18N
@@ -5548,7 +5549,7 @@ Index: git/posix/regexec.c
  	    bitset_merge (accepts, dfa->sb_char);
  	  else
  #endif
-@@ -3641,7 +3626,7 @@
+@@ -3641,7 +3626,7 @@ group_nodes_into_DFAstates (const re_dfa
  		  continue;
  		}
  #ifdef RE_ENABLE_I18N
@@ -5557,7 +5558,7 @@ Index: git/posix/regexec.c
  		for (j = 0; j < BITSET_WORDS; ++j)
  		  any_set |= (accepts[j] &= (dfa->word_char[j] | ~dfa->sb_char[j]));
  	      else
-@@ -3660,7 +3645,7 @@
+@@ -3660,7 +3645,7 @@ group_nodes_into_DFAstates (const re_dfa
  		  continue;
  		}
  #ifdef RE_ENABLE_I18N
@@ -5566,7 +5567,7 @@ Index: git/posix/regexec.c
  		for (j = 0; j < BITSET_WORDS; ++j)
  		  any_set |= (accepts[j] &= ~(dfa->word_char[j] & dfa->sb_char[j]));
  	      else
-@@ -3832,12 +3817,6 @@
+@@ -3832,12 +3817,6 @@ check_node_accept_bytes (const re_dfa_t
    if (node->type == COMPLEX_BRACKET)
      {
        const re_charset_t *cset = node->opr.mbcset;
@@ -5579,7 +5580,7 @@ Index: git/posix/regexec.c
        int match_len = 0;
        wchar_t wc = ((cset->nranges || cset->nchar_classes || cset->nmbchars)
  		    ? re_string_wchar_at (input, str_idx) : 0);
-@@ -3849,6 +3828,7 @@
+@@ -3849,6 +3828,7 @@ check_node_accept_bytes (const re_dfa_t
  	    match_len = char_len;
  	    goto check_node_accept_bytes_match;
  	  }
@@ -5587,7 +5588,7 @@ Index: git/posix/regexec.c
        /* match with character_class?  */
        for (i = 0; i < cset->nchar_classes; ++i)
  	{
-@@ -3859,8 +3839,16 @@
+@@ -3859,8 +3839,16 @@ check_node_accept_bytes (const re_dfa_t
  	      goto check_node_accept_bytes_match;
  	    }
  	}
@@ -5605,7 +5606,7 @@ Index: git/posix/regexec.c
        nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
        if (nrules != 0)
  	{
-@@ -3953,8 +3941,12 @@
+@@ -3953,8 +3941,12 @@ check_node_accept_bytes (const re_dfa_t
  	    }
  	}
        else
@@ -5619,7 +5620,7 @@ Index: git/posix/regexec.c
  	  /* match with range expression?  */
  #if __GNUC__ >= 2
  	  wchar_t cmp_buf[] = {L'\0', L'\0', wc, L'\0', L'\0', L'\0'};
-@@ -3973,6 +3965,7 @@
+@@ -3973,6 +3965,7 @@ check_node_accept_bytes (const re_dfa_t
  		  goto check_node_accept_bytes_match;
  		}
  	    }
@@ -5627,7 +5628,7 @@ Index: git/posix/regexec.c
  	}
      check_node_accept_bytes_match:
        if (!cset->non_match)
-@@ -3988,7 +3981,7 @@
+@@ -3988,7 +3981,7 @@ check_node_accept_bytes (const re_dfa_t
    return 0;
  }
  
@@ -5636,7 +5637,7 @@ Index: git/posix/regexec.c
  static unsigned int
  internal_function
  find_collation_sequence_value (const unsigned char *mbs, size_t mbs_len)
-@@ -4046,7 +4039,7 @@
+@@ -4046,7 +4039,7 @@ find_collation_sequence_value (const uns
        return UINT_MAX;
      }
  }
@@ -5645,7 +5646,7 @@ Index: git/posix/regexec.c
  #endif /* RE_ENABLE_I18N */
  
  /* Check whether the node accepts the byte which is IDX-th
-@@ -4137,7 +4130,7 @@
+@@ -4137,7 +4130,7 @@ extend_buffers (re_match_context_t *mctx
    if (pstr->icase)
      {
  #ifdef RE_ENABLE_I18N
@@ -5654,7 +5655,7 @@ Index: git/posix/regexec.c
  	{
  	  ret = build_wcs_upper_buffer (pstr);
  	  if (BE (ret != REG_NOERROR, 0))
-@@ -4150,7 +4143,7 @@
+@@ -4150,7 +4143,7 @@ extend_buffers (re_match_context_t *mctx
    else
      {
  #ifdef RE_ENABLE_I18N
@@ -5665,8 +5666,8 @@ Index: git/posix/regexec.c
  #endif /* RE_ENABLE_I18N  */
 Index: git/posix/regexec-compat.c
 ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/posix/regexec-compat.c	2014-08-29 20:01:15.224070587 -0700
+--- /dev/null
++++ git/posix/regexec-compat.c
 @@ -0,0 +1,39 @@
 +/* Extended regular expression matching and search library.
 +   Copyright (C) 2008 Free Software Foundation, Inc.
@@ -5709,8 +5710,8 @@ Index: git/posix/regexec-compat.c
 +#endif
 Index: git/posix/regex.h
 ===================================================================
---- git.orig/posix/regex.h	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regex.h	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regex.h
++++ git/posix/regex.h
 @@ -21,6 +21,7 @@
  #define _REGEX_H 1
  
@@ -5719,7 +5720,7 @@ Index: git/posix/regex.h
  
  /* Allow the use in C++ code.  */
  #ifdef __cplusplus
-@@ -156,6 +157,8 @@
+@@ -156,6 +157,8 @@ typedef unsigned long int reg_syntax_t;
     treated as 'a\{1'.  */
  # define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
  
@@ -5728,7 +5729,7 @@ Index: git/posix/regex.h
  /* If this bit is set, then ignore case when matching.
     If not set, then case is significant.  */
  # define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
-@@ -172,6 +175,7 @@
+@@ -172,6 +175,7 @@ typedef unsigned long int reg_syntax_t;
  /* If this bit is set, then no_sub will be set to 1 during
     re_compile_pattern.  */
  # define RE_NO_SUB (RE_CONTEXT_INVALID_DUP << 1)
@@ -5736,7 +5737,7 @@ Index: git/posix/regex.h
  #endif
  
  /* This global variable defines the particular regexp syntax to use (for
-@@ -231,8 +235,13 @@
+@@ -231,8 +235,13 @@ extern reg_syntax_t re_syntax_options;
    (RE_CHAR_CLASSES | RE_DOT_NEWLINE      | RE_DOT_NOT_NULL		\
     | RE_INTERVALS  | RE_NO_EMPTY_RANGES)
  
@@ -5750,7 +5751,7 @@ Index: git/posix/regex.h
  
  /* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes
     RE_LIMITED_OPS, i.e., \? \+ \| are not recognized.  Actually, this
-@@ -298,9 +307,11 @@
+@@ -298,9 +307,11 @@ extern reg_syntax_t re_syntax_options;
  /* Like REG_NOTBOL, except for the end-of-line.  */
  #define REG_NOTEOL (1 << 1)
  
@@ -5764,9 +5765,9 @@ Index: git/posix/regex.h
  /* If any error codes are removed, changed, or added, update the
 Index: git/posix/regex_internal.c
 ===================================================================
---- git.orig/posix/regex_internal.c	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regex_internal.c	2014-08-29 20:01:15.224070587 -0700
-@@ -43,8 +43,8 @@
+--- git.orig/posix/regex_internal.c
++++ git/posix/regex_internal.c
+@@ -43,8 +43,8 @@ re_string_allocate (re_string_t *pstr, c
    int init_buf_len;
  
    /* Ensure at least one character fits into the buffers.  */
@@ -5777,7 +5778,7 @@ Index: git/posix/regex_internal.c
    init_buf_len = (len + 1 < init_len) ? len + 1: init_len;
    re_string_construct_common (str, len, pstr, trans, icase, dfa);
  
-@@ -55,7 +55,7 @@
+@@ -55,7 +55,7 @@ re_string_allocate (re_string_t *pstr, c
    pstr->word_char = dfa->word_char;
    pstr->word_ops_used = dfa->word_ops_used;
    pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str;
@@ -5786,7 +5787,7 @@ Index: git/posix/regex_internal.c
    pstr->valid_raw_len = pstr->valid_len;
    return REG_NOERROR;
  }
-@@ -82,7 +82,7 @@
+@@ -82,7 +82,7 @@ re_string_construct (re_string_t *pstr,
    if (icase)
      {
  #ifdef RE_ENABLE_I18N
@@ -5795,7 +5796,7 @@ Index: git/posix/regex_internal.c
  	{
  	  while (1)
  	    {
-@@ -91,7 +91,7 @@
+@@ -91,7 +91,7 @@ re_string_construct (re_string_t *pstr,
  		return ret;
  	      if (pstr->valid_raw_len >= len)
  		break;
@@ -5804,7 +5805,7 @@ Index: git/posix/regex_internal.c
  		break;
  	      ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2);
  	      if (BE (ret != REG_NOERROR, 0))
-@@ -105,7 +105,7 @@
+@@ -105,7 +105,7 @@ re_string_construct (re_string_t *pstr,
    else
      {
  #ifdef RE_ENABLE_I18N
@@ -5813,7 +5814,7 @@ Index: git/posix/regex_internal.c
  	build_wcs_buffer (pstr);
        else
  #endif /* RE_ENABLE_I18N  */
-@@ -130,7 +130,7 @@
+@@ -130,7 +130,7 @@ internal_function __attribute_warn_unuse
  re_string_realloc_buffers (re_string_t *pstr, int new_buf_len)
  {
  #ifdef RE_ENABLE_I18N
@@ -5822,7 +5823,7 @@ Index: git/posix/regex_internal.c
      {
        wint_t *new_wcs;
  
-@@ -177,7 +177,7 @@
+@@ -177,7 +177,7 @@ re_string_construct_common (const char *
    pstr->trans = trans;
    pstr->icase = icase ? 1 : 0;
    pstr->mbs_allocated = (trans != NULL || icase);
@@ -5831,7 +5832,7 @@ Index: git/posix/regex_internal.c
    pstr->is_utf8 = dfa->is_utf8;
    pstr->map_notascii = dfa->map_notascii;
    pstr->stop = pstr->len;
-@@ -203,7 +203,7 @@
+@@ -203,7 +203,7 @@ build_wcs_buffer (re_string_t *pstr)
  {
  #ifdef _LIBC
    unsigned char buf[MB_LEN_MAX];
@@ -5840,7 +5841,7 @@ Index: git/posix/regex_internal.c
  #else
    unsigned char buf[64];
  #endif
-@@ -226,7 +226,7 @@
+@@ -226,7 +226,7 @@ build_wcs_buffer (re_string_t *pstr)
  	{
  	  int i, ch;
  
@@ -5849,7 +5850,7 @@ Index: git/posix/regex_internal.c
  	    {
  	      ch = pstr->raw_mbs [pstr->raw_mbs_idx + byte_idx + i];
  	      buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch];
-@@ -275,7 +275,7 @@
+@@ -275,7 +275,7 @@ build_wcs_upper_buffer (re_string_t *pst
    size_t mbclen;
  #ifdef _LIBC
    char buf[MB_LEN_MAX];
@@ -5858,7 +5859,7 @@ Index: git/posix/regex_internal.c
  #else
    char buf[64];
  #endif
-@@ -369,7 +369,7 @@
+@@ -369,7 +369,7 @@ build_wcs_upper_buffer (re_string_t *pst
  	  {
  	    int i, ch;
  
@@ -5867,7 +5868,7 @@ Index: git/posix/regex_internal.c
  	      {
  		ch = pstr->raw_mbs [pstr->raw_mbs_idx + src_idx + i];
  		buf[i] = pstr->trans[ch];
-@@ -567,8 +567,9 @@
+@@ -567,8 +567,9 @@ re_string_translate_buffer (re_string_t
  }
  
  /* This function re-construct the buffers.
@@ -5879,7 +5880,7 @@ Index: git/posix/regex_internal.c
  
  static reg_errcode_t
  internal_function __attribute_warn_unused_result__
-@@ -579,7 +580,7 @@
+@@ -579,7 +580,7 @@ re_string_reconstruct (re_string_t *pstr
      {
        /* Reset buffer.  */
  #ifdef RE_ENABLE_I18N
@@ -5888,7 +5889,7 @@ Index: git/posix/regex_internal.c
  	memset (&pstr->cur_state, '\0', sizeof (mbstate_t));
  #endif /* RE_ENABLE_I18N */
        pstr->len = pstr->raw_len;
-@@ -670,7 +671,7 @@
+@@ -670,7 +671,7 @@ re_string_reconstruct (re_string_t *pstr
  	      pstr->tip_context = re_string_context_at (pstr, offset - 1,
  							eflags);
  #ifdef RE_ENABLE_I18N
@@ -5897,7 +5898,7 @@ Index: git/posix/regex_internal.c
  		memmove (pstr->wcs, pstr->wcs + offset,
  			 (pstr->valid_len - offset) * sizeof (wint_t));
  #endif /* RE_ENABLE_I18N */
-@@ -699,7 +700,7 @@
+@@ -699,7 +700,7 @@ re_string_reconstruct (re_string_t *pstr
  #endif
  	  pstr->valid_len = 0;
  #ifdef RE_ENABLE_I18N
@@ -5906,7 +5907,7 @@ Index: git/posix/regex_internal.c
  	    {
  	      int wcs_idx;
  	      wint_t wc = WEOF;
-@@ -711,7 +712,7 @@
+@@ -711,7 +712,7 @@ re_string_reconstruct (re_string_t *pstr
  		  /* Special case UTF-8.  Multi-byte chars start with any
  		     byte other than 0x80 - 0xbf.  */
  		  raw = pstr->raw_mbs + pstr->raw_mbs_idx;
@@ -5915,7 +5916,7 @@ Index: git/posix/regex_internal.c
  		  if (end < pstr->raw_mbs)
  		    end = pstr->raw_mbs;
  		  p = raw + offset - 1;
-@@ -803,7 +804,7 @@
+@@ -803,7 +804,7 @@ re_string_reconstruct (re_string_t *pstr
  
    /* Then build the buffers.  */
  #ifdef RE_ENABLE_I18N
@@ -5924,7 +5925,7 @@ Index: git/posix/regex_internal.c
      {
        if (pstr->icase)
  	{
-@@ -841,7 +842,7 @@
+@@ -841,7 +842,7 @@ re_string_peek_byte_case (const re_strin
      return re_string_peek_byte (pstr, idx);
  
  #ifdef RE_ENABLE_I18N
@@ -5933,7 +5934,7 @@ Index: git/posix/regex_internal.c
        && ! re_string_is_single_byte_char (pstr, pstr->cur_idx + idx))
      return re_string_peek_byte (pstr, idx);
  #endif
-@@ -930,7 +931,7 @@
+@@ -930,7 +931,7 @@ re_string_context_at (const re_string_t
      return ((eflags & REG_NOTEOL) ? CONTEXT_ENDBUF
  	    : CONTEXT_NEWLINE | CONTEXT_ENDBUF);
  #ifdef RE_ENABLE_I18N
@@ -5942,7 +5943,7 @@ Index: git/posix/regex_internal.c
      {
        wint_t wc;
        int wc_idx = idx;
-@@ -1444,7 +1445,7 @@
+@@ -1444,7 +1445,7 @@ re_dfa_add_node (re_dfa_t *dfa, re_token
    dfa->nodes[dfa->nodes_len].constraint = 0;
  #ifdef RE_ENABLE_I18N
    dfa->nodes[dfa->nodes_len].accept_mb =
@@ -5953,8 +5954,8 @@ Index: git/posix/regex_internal.c
    re_node_set_init_empty (dfa->edests + dfa->nodes_len);
 Index: git/posix/regex_internal.h
 ===================================================================
---- git.orig/posix/regex_internal.h	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regex_internal.h	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regex_internal.h
++++ git/posix/regex_internal.h
 @@ -26,6 +26,10 @@
  #include <stdlib.h>
  #include <string.h>
@@ -5966,7 +5967,7 @@ Index: git/posix/regex_internal.h
  #if defined HAVE_LANGINFO_H || defined HAVE_LANGINFO_CODESET || defined _LIBC
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

meta/recipes-core/glibc/glibc_2.20.bb +3 -0
index 9dd5e67..f67fbfd 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.1.0

Part of the diff is not shown here. View the raw message.

#8 lore raw

Re: [PATCH 5/5] glibc: Fix up minimal build with libc-libm

is this needed for dizzy?

Quoted 5,020 lines · Saul Wold

This addresses 2 issues discovered trying to build a minimal libc with libm option. By default nscd was always being built and without inet enabled there were missing symbols.

The patch got updated changing initgroups to become part of the INET group. Newer version of quilt added function information.

[YOCTO #7108]

---
  .../glibc/glibc/eglibc-use-option-groups.patch     | 1379 ++++++++++----------
  meta/recipes-core/glibc/glibc_2.20.bb              |    3 +
  2 files changed, 693 insertions(+), 689 deletions(-)
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +690 -689
index 7136253..7be9b06 100644
@@ -4,8 +4,8 @@ Upstream-Status: Pending
 
  Index: git/argp/argp-fmtstream.c
  ===================================================================
---- git.orig/argp/argp-fmtstream.c	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-fmtstream.c	2014-08-29 20:01:15.188070587 -0700
+--- git.orig/argp/argp-fmtstream.c
++++ git/argp/argp-fmtstream.c
  @@ -42,6 +42,7 @@
   #ifdef _LIBC
   # include <wchar.h>
@@ -14,7 +14,7 @@ Index: git/argp/argp-fmtstream.c
   # define __vsnprintf(s, l, f, a) _IO_vsnprintf (s, l, f, a)
   #endif
 
-@@ -100,7 +101,11 @@
+@@ -100,7 +101,11 @@ __argp_fmtstream_free (argp_fmtstream_t
     __argp_fmtstream_update (fs);
     if (fs->p > fs->buf)
       {
@@ -26,7 +26,7 @@ Index: git/argp/argp-fmtstream.c
       }
     free (fs->buf);
     free (fs);
-@@ -145,9 +150,17 @@
+@@ -145,9 +150,17 @@ __argp_fmtstream_update (argp_fmtstream_
   	      size_t i;
   	      for (i = 0; i < pad; i++)
   		{
@@ -45,7 +45,7 @@ Index: git/argp/argp-fmtstream.c
   		    putc_unlocked (' ', fs->stream);
   		}
   	    }
-@@ -308,9 +321,17 @@
+@@ -308,9 +321,17 @@ __argp_fmtstream_update (argp_fmtstream_
   	      *nl++ = ' ';
   	  else
   	    for (i = 0; i < fs->wmargin; ++i)
@@ -66,9 +66,9 @@ Index: git/argp/argp-fmtstream.c
   	  /* Copy the tail of the original buffer into the current buffer
  Index: git/argp/argp-help.c
  ===================================================================
---- git.orig/argp/argp-help.c	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-help.c	2014-08-29 20:01:15.188070587 -0700
-@@ -51,6 +51,7 @@
+--- git.orig/argp/argp-help.c
++++ git/argp/argp-help.c
+@@ -51,6 +51,7 @@ char *alloca ();
   #ifdef _LIBC
   # include <../libio/libioP.h>
   # include <wchar.h>
@@ -76,7 +76,7 @@ Index: git/argp/argp-help.c
   #endif
 
   #ifndef _
-@@ -1702,7 +1703,7 @@
+@@ -1702,7 +1703,7 @@ char *__argp_basename (char *name)
   }
 
   char *
@@ -85,7 +85,7 @@ Index: git/argp/argp-help.c
   {
   # if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
     return program_invocation_short_name;
-@@ -1873,9 +1874,17 @@
+@@ -1873,9 +1874,17 @@ __argp_failure (const struct argp_state
   #endif
   	    }
 
@@ -106,8 +106,8 @@ Index: git/argp/argp-help.c
   #if _LIBC || (HAVE_FLOCKFILE && HAVE_FUNLOCKFILE)
  Index: git/argp/argp-namefrob.h
  ===================================================================
---- git.orig/argp/argp-namefrob.h	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-namefrob.h	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/argp/argp-namefrob.h
++++ git/argp/argp-namefrob.h
  @@ -76,10 +76,12 @@
   #undef __argp_fmtstream_wmargin
   #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
@@ -123,8 +123,8 @@ Index: git/argp/argp-namefrob.h
   #undef __flockfile
  Index: git/argp/Makefile
  ===================================================================
---- git.orig/argp/Makefile	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/argp/Makefile
++++ git/argp/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Makefile for argp.
@@ -136,9 +136,9 @@ Index: git/argp/Makefile
   include ../Makeconfig
  Index: git/catgets/Makefile
  ===================================================================
---- git.orig/catgets/Makefile	2014-08-29 20:00:43.008070587 -0700
-+++ git/catgets/Makefile	2014-08-29 20:01:15.192070587 -0700
-@@ -22,20 +22,23 @@
+--- git.orig/catgets/Makefile
++++ git/catgets/Makefile
+@@ -22,20 +22,23 @@ subdir	:= catgets
 
   include ../Makeconfig
 
@@ -171,8 +171,8 @@ Index: git/catgets/Makefile
   # To find xmalloc.c
  Index: git/crypt/crypt-entry.c
  ===================================================================
---- git.orig/crypt/crypt-entry.c	2014-08-29 20:00:43.028070587 -0700
-+++ git/crypt/crypt-entry.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/crypt/crypt-entry.c
++++ git/crypt/crypt-entry.c
  @@ -27,6 +27,7 @@
   #include <stdio.h>
   #endif
@@ -181,7 +181,7 @@ Index: git/crypt/crypt-entry.c
   #include <errno.h>
   #include <fips-private.h>
 
-@@ -76,9 +77,11 @@
+@@ -76,9 +77,11 @@ __crypt_r (key, salt, data)
        const char *salt;
        struct crypt_data * __restrict data;
   {
@@ -193,7 +193,7 @@ Index: git/crypt/crypt-entry.c
 
   #ifdef _LIBC
     /* Try to find out whether we have to use MD5 encryption replacement.  */
-@@ -105,6 +108,7 @@
+@@ -105,6 +108,7 @@ __crypt_r (key, salt, data)
   			     sizeof (struct crypt_data));
   #endif
 
@@ -201,7 +201,7 @@ Index: git/crypt/crypt-entry.c
     /*
      * Hack DES tables according to salt
      */
-@@ -144,6 +148,10 @@
+@@ -144,6 +148,10 @@ __crypt_r (key, salt, data)
      */
     _ufc_output_conversion_r (res[0], res[1], salt, data);
     return data->crypt_3_buf;
@@ -212,7 +212,7 @@ Index: git/crypt/crypt-entry.c
   }
   weak_alias (__crypt_r, crypt_r)
 
-@@ -168,7 +176,12 @@
+@@ -168,7 +176,12 @@ crypt (key, salt)
       return __sha512_crypt (key, salt);
   #endif
 
@@ -227,8 +227,8 @@ Index: git/crypt/crypt-entry.c
 
  Index: git/crypt/Makefile
  ===================================================================
---- git.orig/crypt/Makefile	2014-08-29 20:00:43.024070587 -0700
-+++ git/crypt/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/crypt/Makefile
++++ git/crypt/Makefile
  @@ -18,21 +18,25 @@
   #
   #	Sub-makefile for crypt() portion of the library.
@@ -261,7 +261,7 @@ Index: git/crypt/Makefile
   routines += $(libcrypt-routines)
   endif
 
-@@ -44,7 +48,7 @@
+@@ -44,7 +48,7 @@ LDLIBS-crypt.so = -lfreebl3
   else
   libcrypt-routines += md5 sha256 sha512
 
@@ -270,7 +270,7 @@ Index: git/crypt/Makefile
 
   # The test md5test-giant uses up to 400 MB of RSS and runs on a fast
   # machine over a minute.
-@@ -64,8 +68,10 @@
+@@ -64,8 +68,10 @@ $(objpfx)sha256test: $(patsubst %, $(obj
   $(objpfx)sha512test: $(patsubst %, $(objpfx)%.o,$(sha512-routines))
   endif
 
@@ -283,8 +283,8 @@ Index: git/crypt/Makefile
  +endif # eglibc: OPTION_EGLIBC_CRYPT
  Index: git/csu/Makefile
  ===================================================================
---- git.orig/csu/Makefile	2014-08-29 20:00:43.032070587 -0700
-+++ git/csu/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/csu/Makefile
++++ git/csu/Makefile
  @@ -22,6 +22,8 @@
   # crtn.o, special "initializer" and "finalizer" files used in the link
   # to make the .init and .fini sections work right.
@@ -296,8 +296,8 @@ Index: git/csu/Makefile
   include ../Makeconfig
  Index: git/debug/Makefile
  ===================================================================
---- git.orig/debug/Makefile	2014-08-29 20:00:43.036070587 -0700
-+++ git/debug/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/Makefile
++++ git/debug/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Sub-makefile for debug portion of the library.
@@ -307,7 +307,7 @@ Index: git/debug/Makefile
   subdir	:= debug
 
   include ../Makeconfig
-@@ -27,7 +29,7 @@
+@@ -27,7 +29,7 @@ headers	:= execinfo.h
   # Note that ptsname_r_chk and getlogin_r are not here, but in
   # login/Makefile instead.  If that subdir is omitted from the
   # build, its _FORTIFY_SOURCE support will be too.
@@ -316,7 +316,7 @@ Index: git/debug/Makefile
   	    memcpy_chk memmove_chk mempcpy_chk memset_chk stpcpy_chk \
   	    strcat_chk strcpy_chk strncat_chk strncpy_chk stpncpy_chk \
   	    sprintf_chk vsprintf_chk snprintf_chk vsnprintf_chk \
-@@ -36,20 +38,27 @@
+@@ -36,20 +38,27 @@ routines  = backtrace backtracesyms back
   	    read_chk pread_chk pread64_chk recv_chk recvfrom_chk \
   	    readlink_chk readlinkat_chk getwd_chk getcwd_chk \
   	    realpath_chk fread_chk fread_u_chk \
@@ -352,7 +352,7 @@ Index: git/debug/Makefile
   static-only-routines := warning-nop stack_chk_fail_local
 
   CFLAGS-backtrace.c = -fno-omit-frame-pointer
-@@ -129,11 +138,15 @@
+@@ -129,11 +138,15 @@ LDFLAGS-tst-backtrace4 = -rdynamic
   LDFLAGS-tst-backtrace5 = -rdynamic
   LDFLAGS-tst-backtrace6 = -rdynamic
 
@@ -375,8 +375,8 @@ Index: git/debug/Makefile
   tests += $(tests-ifunc)
  Index: git/debug/segfault.c
  ===================================================================
---- git.orig/debug/segfault.c	2014-08-29 20:00:46.280070587 -0700
-+++ git/debug/segfault.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/segfault.c
++++ git/debug/segfault.c
  @@ -30,6 +30,7 @@
   #include <unistd.h>
   #include <_itoa.h>
@@ -385,7 +385,7 @@ Index: git/debug/segfault.c
 
   /* This file defines macros to access the content of the sigcontext element
      passed up by the signal handler.  */
-@@ -91,6 +92,7 @@
+@@ -91,6 +92,7 @@ catch_segfault (int signal, SIGCONTEXT c
     REGISTER_DUMP;
   #endif
 
@@ -393,7 +393,7 @@ Index: git/debug/segfault.c
     WRITE_STRING ("\nBacktrace:\n");
 
     /* Get the backtrace.  */
-@@ -113,6 +115,7 @@
+@@ -113,6 +115,7 @@ catch_segfault (int signal, SIGCONTEXT c
 
     /* Now generate nicely formatted output.  */
     __backtrace_symbols_fd (arr + i, cnt - i, fd);
@@ -403,8 +403,8 @@ Index: git/debug/segfault.c
     /* Now the link map.  */
  Index: git/debug/tst-chk1.c
  ===================================================================
---- git.orig/debug/tst-chk1.c	2014-08-29 20:00:46.288070587 -0700
-+++ git/debug/tst-chk1.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/tst-chk1.c
++++ git/debug/tst-chk1.c
  @@ -31,6 +31,7 @@
   #include <sys/select.h>
   #include <sys/socket.h>
@@ -413,7 +413,7 @@ Index: git/debug/tst-chk1.c
 
 
   #define obstack_chunk_alloc malloc
-@@ -307,6 +308,7 @@
+@@ -307,6 +308,7 @@ do_test (void)
     snprintf (buf + 8, l0 + 3, "%d", num2);
     CHK_FAIL_END
 
@@ -421,7 +421,7 @@ Index: git/debug/tst-chk1.c
     CHK_FAIL_START
     swprintf (wbuf + 8, 3, L"%d", num1);
     CHK_FAIL_END
-@@ -314,6 +316,7 @@
+@@ -314,6 +316,7 @@ do_test (void)
     CHK_FAIL_START
     swprintf (wbuf + 8, l0 + 3, L"%d", num1);
     CHK_FAIL_END
@@ -429,7 +429,7 @@ Index: git/debug/tst-chk1.c
   # endif
 
     memcpy (buf, str1 + 2, l0 + 9);
-@@ -381,6 +384,7 @@
+@@ -381,6 +384,7 @@ do_test (void)
     CHK_FAIL_END
   #endif
 
@@ -437,7 +437,7 @@ Index: git/debug/tst-chk1.c
 
     /* These ops can be done without runtime checking of object size.  */
     wmemcpy (wbuf, L"abcdefghij", 10);
-@@ -605,6 +609,7 @@
+@@ -605,6 +609,7 @@ do_test (void)
     CHK_FAIL_END
   #endif
 
@@ -445,7 +445,7 @@ Index: git/debug/tst-chk1.c
 
     /* Now checks for %n protection.  */
 
-@@ -1192,6 +1197,7 @@
+@@ -1192,6 +1197,7 @@ do_test (void)
   # endif
   #endif
 
@@ -453,7 +453,7 @@ Index: git/debug/tst-chk1.c
     if (setlocale (LC_ALL, "de_DE.UTF-8") != NULL)
       {
         assert (MB_CUR_MAX <= 10);
-@@ -1348,6 +1354,7 @@
+@@ -1348,6 +1354,7 @@ do_test (void)
         puts ("cannot set locale");
         ret = 1;
       }
@@ -463,8 +463,8 @@ Index: git/debug/tst-chk1.c
     if (fd != -1)
  Index: git/dlfcn/Makefile
  ===================================================================
---- git.orig/dlfcn/Makefile	2014-08-29 20:00:46.312070587 -0700
-+++ git/dlfcn/Makefile	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/dlfcn/Makefile
++++ git/dlfcn/Makefile
  @@ -15,6 +15,8 @@
   # License along with the GNU C Library; if not, see
   # <http://www.gnu.org/licenses/>.
@@ -474,7 +474,7 @@ Index: git/dlfcn/Makefile
   subdir		:= dlfcn
 
   include ../Makeconfig
-@@ -36,7 +38,9 @@
+@@ -36,7 +38,9 @@ endif
   ifeq (yes,$(build-shared))
   tests = glrefmain failtest tst-dladdr default errmsg1 tstcxaatexit \
   	bug-dlopen1 bug-dlsym1 tst-dlinfo bug-atexit1 bug-atexit2 \
@@ -487,8 +487,8 @@ Index: git/dlfcn/Makefile
   		defaultmod2 errmsg1mod modatexit modcxaatexit \
  Index: git/elf/dl-support.c
  ===================================================================
---- git.orig/elf/dl-support.c	2014-08-29 20:00:46.384070587 -0700
-+++ git/elf/dl-support.c	2014-08-29 20:01:15.192070587 -0700
+--- git.orig/elf/dl-support.c
++++ git/elf/dl-support.c
  @@ -19,6 +19,7 @@
   /* This file defines some things that for the dynamic linker are defined in
      rtld.c and dl-sysdep.c in ways appropriate to bootstrap dynamic linking.  */
@@ -497,7 +497,7 @@ Index: git/elf/dl-support.c
   #include <errno.h>
   #include <libintl.h>
   #include <stdlib.h>
-@@ -42,7 +43,9 @@
+@@ -42,7 +43,9 @@ char **_dl_argv = &__progname;	/* This i
   const char *_dl_platform;
   size_t _dl_platformlen;
 
@@ -509,8 +509,8 @@ Index: git/elf/dl-support.c
   int _dl_dynamic_weak;
  Index: git/elf/rtld.c
  ===================================================================
---- git.orig/elf/rtld.c	2014-08-29 20:01:14.708070587 -0700
-+++ git/elf/rtld.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/elf/rtld.c
++++ git/elf/rtld.c
  @@ -16,6 +16,7 @@
      License along with the GNU C Library; if not, see
      <http://www.gnu.org/licenses/>.  */
@@ -519,7 +519,7 @@ Index: git/elf/rtld.c
   #include <errno.h>
   #include <dlfcn.h>
   #include <fcntl.h>
-@@ -2200,6 +2201,7 @@
+@@ -2200,6 +2201,7 @@ print_missing_version (int errcode __att
   		    objname, errstring);
   }
   
@@ -527,7 +527,7 @@ Index: git/elf/rtld.c
   /* Nonzero if any of the debugging options is enabled.  */
   static int any_debug attribute_relro;
 
-@@ -2309,6 +2311,7 @@
+@@ -2309,6 +2311,7 @@ a filename can be specified using the LD
         _exit (0);
       }
   }
@@ -535,7 +535,7 @@ Index: git/elf/rtld.c
   
   static void
   process_dl_audit (char *str)
-@@ -2376,12 +2379,14 @@
+@@ -2376,12 +2379,14 @@ process_envvars (enum mode *modep)
   	  break;
 
   	case 5:
@@ -550,7 +550,7 @@ Index: git/elf/rtld.c
   	  if (memcmp (envline, "AUDIT", 5) == 0)
   	    process_dl_audit (&envline[6]);
   	  break;
-@@ -2490,7 +2495,9 @@
+@@ -2490,7 +2495,9 @@ process_envvars (enum mode *modep)
   	    {
   	      mode = trace;
   	      GLRO(dl_verbose) = 1;
@@ -560,7 +560,7 @@ Index: git/elf/rtld.c
   	      GLRO(dl_trace_prelink) = &envline[17];
   	    }
   	  break;
-@@ -2537,12 +2544,15 @@
+@@ -2537,12 +2544,15 @@ process_envvars (enum mode *modep)
         if (__access ("/etc/suid-debug", F_OK) != 0)
   	{
   	  unsetenv ("MALLOC_CHECK_");
@@ -576,7 +576,7 @@ Index: git/elf/rtld.c
     /* If we have to run the dynamic linker in debugging mode and the
        LD_DEBUG_OUTPUT environment variable is given, we write the debug
        messages to this file.  */
-@@ -2567,6 +2577,7 @@
+@@ -2567,6 +2577,7 @@ process_envvars (enum mode *modep)
   	/* We use standard output if opening the file failed.  */
   	GLRO(dl_debug_fd) = STDOUT_FILENO;
       }
@@ -586,9 +586,9 @@ Index: git/elf/rtld.c
 
  Index: git/extra-lib.mk
  ===================================================================
---- git.orig/extra-lib.mk	2014-08-29 20:00:46.544070587 -0700
-+++ git/extra-lib.mk	2014-08-29 20:01:15.196070587 -0700
-@@ -25,7 +25,9 @@
+--- git.orig/extra-lib.mk
++++ git/extra-lib.mk
+@@ -25,7 +25,9 @@ install-lib := $(install-lib)
   extra-objs := $(extra-objs)
 
   # The modules that go in $(lib).
@@ -599,7 +599,7 @@ Index: git/extra-lib.mk
 
   # Add each flavor of library to the lists of things to build and install.
   install-lib += $(foreach o,$(object-suffixes-$(lib)),$(lib:lib%=$(libtype$o)))
-@@ -101,7 +103,7 @@
+@@ -101,7 +103,7 @@ endif
   endif
 
   # This will define `libof-ROUTINE := LIB' for each of the routines.
@@ -610,8 +610,8 @@ Index: git/extra-lib.mk
   endif
  Index: git/grp/Makefile
  ===================================================================
---- git.orig/grp/Makefile	2014-08-29 20:00:46.556070587 -0700
-+++ git/grp/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/grp/Makefile
++++ git/grp/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Sub-makefile for grp portion of the library.
@@ -621,7 +621,7 @@ Index: git/grp/Makefile
   subdir	:= grp
 
   include ../Makeconfig
-@@ -29,6 +31,9 @@
+@@ -29,6 +31,9 @@ routines := fgetgrent initgroups setgrou
   	    getgrent_r getgrgid_r getgrnam_r fgetgrent_r
 
   tests := testgrp
@@ -633,8 +633,8 @@ Index: git/grp/Makefile
   test-srcs :=  tst_fgetgrent
  Index: git/hesiod/Makefile
  ===================================================================
---- git.orig/hesiod/Makefile	2014-08-29 20:00:46.580070587 -0700
-+++ git/hesiod/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/hesiod/Makefile
++++ git/hesiod/Makefile
  @@ -18,12 +18,14 @@
   #
   #	Sub-makefile for hesiod portion of the library.
@@ -654,8 +654,8 @@ Index: git/hesiod/Makefile
   vpath %.c nss_hesiod
  Index: git/iconv/gconv_db.c
  ===================================================================
---- git.orig/iconv/gconv_db.c	2014-08-29 20:00:46.604070587 -0700
-+++ git/iconv/gconv_db.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/gconv_db.c
++++ git/iconv/gconv_db.c
  @@ -25,6 +25,7 @@
   #include <sys/param.h>
   #include <bits/libc-lock.h>
@@ -664,7 +664,7 @@ Index: git/iconv/gconv_db.c
 
   #include <dlfcn.h>
   #include <gconv_int.h>
-@@ -828,9 +829,11 @@
+@@ -828,9 +829,11 @@ free_modules_db (struct gconv_module *no
   /* Free all resources if necessary.  */
   libc_freeres_fn (free_mem)
   {
@@ -678,8 +678,8 @@ Index: git/iconv/gconv_db.c
     extern void _nl_finddomain_subfreeres (void) attribute_hidden;
  Index: git/iconv/gconv_trans.c
  ===================================================================
---- git.orig/iconv/gconv_trans.c	2014-08-29 20:00:46.612070587 -0700
-+++ git/iconv/gconv_trans.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/gconv_trans.c
++++ git/iconv/gconv_trans.c
  @@ -23,6 +23,7 @@
   #include <stdint.h>
   #include <string.h>
@@ -688,7 +688,7 @@ Index: git/iconv/gconv_trans.c
 
   #include <bits/libc-lock.h>
   #include "gconv_int.h"
-@@ -59,6 +60,7 @@
+@@ -59,6 +60,7 @@ __gconv_transliterate (struct __gconv_st
       PTR_DEMANGLE (fct);
   #endif
 
@@ -696,7 +696,7 @@ Index: git/iconv/gconv_trans.c
     /* If there is no transliteration information in the locale don't do
        anything and return the error.  */
     size = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_TRANSLIT_TAB_SIZE);
-@@ -194,6 +196,7 @@
+@@ -194,6 +196,7 @@ __gconv_transliterate (struct __gconv_st
                sorted.  */
   	  break;
       }
@@ -706,8 +706,8 @@ Index: git/iconv/gconv_trans.c
     if (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN) != 0)
  Index: git/iconv/iconv_prog.c
  ===================================================================
---- git.orig/iconv/iconv_prog.c	2014-08-29 20:00:46.612070587 -0700
-+++ git/iconv/iconv_prog.c	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/iconv_prog.c
++++ git/iconv/iconv_prog.c
  @@ -35,6 +35,7 @@
   #ifdef _POSIX_MAPPED_FILES
   # include <sys/mman.h>
@@ -716,7 +716,7 @@ Index: git/iconv/iconv_prog.c
   #include <charmap.h>
   #include <gconv_int.h>
   #include "iconv_prog.h"
-@@ -221,10 +222,17 @@
+@@ -221,10 +222,17 @@ main (int argc, char *argv[])
   	      bool to_wrong =
   		(iconv_open (to_code, "UTF-8") == (iconv_t) -1
   		 && errno == EINVAL);
@@ -736,8 +736,8 @@ Index: git/iconv/iconv_prog.c
   		{
  Index: git/iconv/Makefile
  ===================================================================
---- git.orig/iconv/Makefile	2014-08-29 20:00:46.600070587 -0700
-+++ git/iconv/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/Makefile
++++ git/iconv/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Makefile for iconv.
@@ -747,7 +747,7 @@ Index: git/iconv/Makefile
   subdir	:= iconv
 
   include ../Makeconfig
-@@ -57,6 +59,9 @@
+@@ -57,6 +59,9 @@ CPPFLAGS-linereader = -DNOT_IN_libc
   CPPFLAGS-strtab = -DNOT_IN_libc
   CPPFLAGS-charmap = -DNOT_IN_libc
   CPPFLAGS-charmap-dir = -DNOT_IN_libc
@@ -759,8 +759,8 @@ Index: git/iconv/Makefile
   xtests-special += $(objpfx)test-iconvconfig.out
  Index: git/iconvdata/Makefile
  ===================================================================
---- git.orig/iconvdata/Makefile	2014-08-29 20:00:46.628070587 -0700
-+++ git/iconvdata/Makefile	2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconvdata/Makefile
++++ git/iconvdata/Makefile
  @@ -18,12 +18,15 @@
   #
   #	Makefile for iconv data and code.
@@ -778,7 +778,7 @@ Index: git/iconvdata/Makefile
   	   ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-10		 \
   	   ISO8859-11 ISO8859-13 ISO8859-14 ISO8859-15 ISO8859-16	 \
   	   T.61 ISO_6937 SJIS KOI-8 HP-ROMAN8 HP-ROMAN9 EBCDIC-AT-DE	 \
-@@ -63,11 +66,13 @@
+@@ -63,11 +66,13 @@ modules	:= ISO8859-1 ISO8859-2 ISO8859-3
   	   MAC-CENTRALEUROPE KOI8-RU ISO8859-9E				 \
   	   CP770 CP771 CP772 CP773 CP774
 
@@ -794,7 +794,7 @@ Index: git/iconvdata/Makefile
   ifeq ($(have-thread-library),yes)
   tests += bug-iconv3
   endif
-@@ -130,13 +135,13 @@
+@@ -130,13 +135,13 @@ ifeq (yes,$(build-shared))
   # Rule to generate the shared objects.
   charmaps = ../localedata/charmaps
   -include $(objpfx)iconv-rules
@@ -811,7 +811,7 @@ Index: git/iconvdata/Makefile
 
   # We can build the conversion tables for numerous charsets automatically.
 
-@@ -204,7 +209,7 @@
+@@ -204,7 +209,7 @@ before-compile += $(addprefix $(objpfx),
   ifndef avoid-generated
   $(objpfx)iconv-rules: Makefile
   	$(make-target-directory)
@@ -820,7 +820,7 @@ Index: git/iconvdata/Makefile
   	  echo 8bit $(gen-8bit-modules); \
   	  echo 8bit-gap $(gen-8bit-gap-modules); } | \
   	LC_ALL=C \
-@@ -247,7 +252,7 @@
+@@ -247,7 +252,7 @@ $(addprefix $(inst_gconvdir)/, $(modules
   	$(do-install-program)
   $(inst_gconvdir)/gconv-modules: gconv-modules $(+force)
   	$(do-install)
@@ -829,7 +829,7 @@ Index: git/iconvdata/Makefile
   # Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is necessary
   # if this libc has more gconv modules than the previously installed one.
   	if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \
-@@ -256,9 +261,9 @@
+@@ -256,9 +261,9 @@ ifeq (no,$(cross-compiling))
   	   $(common-objpfx)iconv/iconvconfig \
   	     $(addprefix --prefix=,$(install_root)); \
   	fi
@@ -844,9 +844,9 @@ Index: git/iconvdata/Makefile
 
  Index: git/include/netdb.h
  ===================================================================
---- git.orig/include/netdb.h	2014-08-29 20:00:47.152070587 -0700
-+++ git/include/netdb.h	2014-08-29 20:01:15.196070587 -0700
-@@ -232,6 +232,10 @@
+--- git.orig/include/netdb.h
++++ git/include/netdb.h
+@@ -232,6 +232,10 @@ extern enum nss_status _nss_ ## service
   		       (const char *name, int af, struct hostent *host,	      \
   			char *buffer, size_t buflen, int *errnop,	      \
   			int *h_errnop);					      \
@@ -859,8 +859,8 @@ Index: git/include/netdb.h
   			size_t buflen, int *errnop, int *h_errnop);	      \
  Index: git/inet/Makefile
  ===================================================================
---- git.orig/inet/Makefile	2014-08-29 20:00:47.176070587 -0700
-+++ git/inet/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/inet/Makefile
++++ git/inet/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Sub-makefile for inet portion of the library.
@@ -870,7 +870,7 @@ Index: git/inet/Makefile
   subdir	:= inet
 
   include ../Makeconfig
-@@ -27,7 +29,8 @@
+@@ -27,7 +29,8 @@ headers	:= netinet/ether.h netinet/in.h
   	   netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
   	   aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h
 
@@ -880,7 +880,7 @@ Index: git/inet/Makefile
   	    inet_lnaof inet_mkadr	\
   	    inet_netof inet_ntoa inet_net herrno herrno-loc \
   	    gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \
-@@ -41,18 +44,23 @@
+@@ -41,18 +44,23 @@ routines := htonl htons		\
   	    getrpcent_r getrpcbyname_r getrpcbynumber_r \
   	    ether_aton ether_aton_r ether_hton ether_line \
   	    ether_ntoa ether_ntoa_r ether_ntoh \
@@ -912,9 +912,9 @@ Index: git/inet/Makefile
 
  Index: git/intl/dcigettext.c
  ===================================================================
---- git.orig/intl/dcigettext.c	2014-08-29 20:00:47.224070587 -0700
-+++ git/intl/dcigettext.c	2014-08-29 20:01:15.200070587 -0700
-@@ -77,6 +77,10 @@
+--- git.orig/intl/dcigettext.c
++++ git/intl/dcigettext.c
+@@ -77,6 +77,10 @@ extern int errno;
   #endif
   #include "hash-string.h"
 
@@ -925,7 +925,7 @@ Index: git/intl/dcigettext.c
   /* Thread safetyness.  */
   #ifdef _LIBC
   # include <bits/libc-lock.h>
-@@ -449,9 +453,11 @@
+@@ -449,9 +453,11 @@ DCIGETTEXT (domainname, msgid1, msgid2,
   #endif
 
   #ifdef _LIBC
@@ -937,7 +937,7 @@ Index: git/intl/dcigettext.c
 
     __libc_rwlock_rdlock (_nl_state_lock);
 
-@@ -470,7 +476,11 @@
+@@ -470,7 +476,11 @@ DCIGETTEXT (domainname, msgid1, msgid2,
     search.category = category;
   # ifdef HAVE_PER_THREAD_LOCALE
   #  ifdef _LIBC
@@ -949,7 +949,7 @@ Index: git/intl/dcigettext.c
   #  endif
     search.localename = localename;
   # endif
-@@ -494,7 +504,9 @@
+@@ -494,7 +504,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
   	retval = (char *) (*foundp)->translation;
 
   # ifdef _LIBC
@@ -959,7 +959,7 @@ Index: git/intl/dcigettext.c
   # endif
         __libc_rwlock_unlock (_nl_state_lock);
         return retval;
-@@ -611,7 +623,9 @@
+@@ -611,7 +623,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
   	{
   	no_translation:
   	  FREE_BLOCKS (block_list);
@@ -969,7 +969,7 @@ Index: git/intl/dcigettext.c
   	  __libc_rwlock_unlock (_nl_state_lock);
   	  __set_errno (saved_errno);
   	  return (plural == 0
-@@ -730,7 +744,9 @@
+@@ -730,7 +744,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
   	      if (plural)
   		retval = plural_lookup (domain, n, retval, retlen);
 
@@ -979,7 +979,7 @@ Index: git/intl/dcigettext.c
   	      __libc_rwlock_unlock (_nl_state_lock);
   	      return retval;
   	    }
-@@ -1361,7 +1377,11 @@
+@@ -1361,7 +1377,11 @@ guess_category_value (category, category
        `LC_xxx', and `LANG'.  On some systems this can be done by the
        `setlocale' function itself.  */
   #ifdef _LIBC
@@ -993,8 +993,8 @@ Index: git/intl/dcigettext.c
   #endif
  Index: git/intl/Makefile
  ===================================================================
---- git.orig/intl/Makefile	2014-08-29 20:00:47.220070587 -0700
-+++ git/intl/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/intl/Makefile
++++ git/intl/Makefile
  @@ -16,6 +16,7 @@
   # <http://www.gnu.org/licenses/>.
 
@@ -1003,7 +1003,7 @@ Index: git/intl/Makefile
 
   subdir = intl
 
-@@ -48,7 +49,7 @@
+@@ -48,7 +49,7 @@ endif
   $(objpfx)plural.o: plural.c
 
   ifeq ($(run-built-tests),yes)
@@ -1014,8 +1014,8 @@ Index: git/intl/Makefile
   		 $(objpfx)tst-gettext2.out $(objpfx)tst-codeset.out \
  Index: git/io/Makefile
  ===================================================================
---- git.orig/io/Makefile	2014-08-29 20:00:47.244070587 -0700
-+++ git/io/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/io/Makefile
++++ git/io/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Sub-makefile for I/O portion of the library.
@@ -1025,7 +1025,7 @@ Index: git/io/Makefile
   subdir	:= io
 
   include ../Makeconfig
-@@ -36,7 +38,7 @@
+@@ -36,7 +38,7 @@ routines :=								\
   	fxstatat fxstatat64						\
   	statfs fstatfs statfs64 fstatfs64				\
   	statvfs fstatvfs statvfs64 fstatvfs64				\
@@ -1034,7 +1034,7 @@ Index: git/io/Makefile
   	mkdir mkdirat							\
   	open open_2 open64 open64_2 openat openat_2 openat64 openat64_2	\
   	read write lseek lseek64 access euidaccess faccessat		\
-@@ -49,11 +51,13 @@
+@@ -49,11 +51,13 @@ routines :=								\
   	ttyname ttyname_r isatty					\
   	link linkat symlink symlinkat readlink readlinkat		\
   	unlink unlinkat rmdir						\
@@ -1049,7 +1049,7 @@ Index: git/io/Makefile
 
   aux := have_o_cloexec
 
-@@ -64,18 +68,22 @@
+@@ -64,18 +68,22 @@ static-only-routines = stat fstat lstat
   		       fstatat fstatat64 mknod mknodat
 
   others		:= pwd
@@ -1077,8 +1077,8 @@ Index: git/io/Makefile
 
  Index: git/libidn/Makefile
  ===================================================================
---- git.orig/libidn/Makefile	2014-08-29 20:00:47.316070587 -0700
-+++ git/libidn/Makefile	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libidn/Makefile
++++ git/libidn/Makefile
  @@ -16,6 +16,7 @@
   # <http://www.gnu.org/licenses/>.
 
@@ -1087,7 +1087,7 @@ Index: git/libidn/Makefile
 
   subdir	:= libidn
 
-@@ -23,8 +24,8 @@
+@@ -23,8 +24,8 @@ include ../Makeconfig
 
   routines = idn-stub
 
@@ -1100,8 +1100,8 @@ Index: git/libidn/Makefile
   		    iconvme
  Index: git/libidn/toutf8.c
  ===================================================================
---- git.orig/libidn/toutf8.c	2014-08-29 20:00:47.332070587 -0700
-+++ git/libidn/toutf8.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libidn/toutf8.c
++++ git/libidn/toutf8.c
  @@ -33,6 +33,11 @@
   /* Get strlen. */
   #include <string.h>
@@ -1129,8 +1129,8 @@ Index: git/libidn/toutf8.c
    * stringprep_locale_charset - return charset used in current locale
  Index: git/libio/fileops.c
  ===================================================================
---- git.orig/libio/fileops.c	2014-08-29 20:00:47.352070587 -0700
-+++ git/libio/fileops.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/fileops.c
++++ git/libio/fileops.c
  @@ -38,6 +38,7 @@
   #include <string.h>
   #include <errno.h>
@@ -1139,7 +1139,7 @@ Index: git/libio/fileops.c
   #include <stdlib.h>
   #if _LIBC
   # include "../wcsmbs/wcsmbsload.h"
-@@ -174,7 +175,7 @@
+@@ -174,7 +175,7 @@ _IO_new_file_close_it (fp)
 
     /* Free buffer. */
   #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
@@ -1148,7 +1148,7 @@ Index: git/libio/fileops.c
       {
         if (_IO_have_wbackup (fp))
   	_IO_free_wbackup_area (fp);
-@@ -359,6 +360,7 @@
+@@ -359,6 +360,7 @@ _IO_new_file_fopen (fp, filename, mode,
         cs = strstr (last_recognized + 1, ",ccs=");
         if (cs != NULL)
   	{
@@ -1156,7 +1156,7 @@ Index: git/libio/fileops.c
   	  /* Yep.  Load the appropriate conversions and set the orientation
   	     to wide.  */
   	  struct gconv_fcts fcts;
-@@ -423,6 +425,12 @@
+@@ -423,6 +425,12 @@ _IO_new_file_fopen (fp, filename, mode,
 
   	  /* Set the mode now.  */
   	  result->_mode = 1;
@@ -1171,8 +1171,8 @@ Index: git/libio/fileops.c
 
  Index: git/libio/__fpurge.c
  ===================================================================
---- git.orig/libio/__fpurge.c	2014-08-29 20:00:47.336070587 -0700
-+++ git/libio/__fpurge.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/__fpurge.c
++++ git/libio/__fpurge.c
  @@ -21,7 +21,7 @@
   void
   __fpurge (FILE *fp)
@@ -1184,8 +1184,8 @@ Index: git/libio/__fpurge.c
         if (_IO_in_backup (fp))
  Index: git/libio/iofwide.c
  ===================================================================
---- git.orig/libio/iofwide.c	2014-08-29 20:00:47.360070587 -0700
-+++ git/libio/iofwide.c	2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/iofwide.c
++++ git/libio/iofwide.c
  @@ -26,6 +26,7 @@
 
   #include <libioP.h>
@@ -1203,7 +1203,7 @@ Index: git/libio/iofwide.c
   /* Prototypes of libio's codecvt functions.  */
   static enum __codecvt_result do_out (struct _IO_codecvt *codecvt,
   				     __mbstate_t *statep,
-@@ -513,3 +516,26 @@
+@@ -513,3 +516,26 @@ do_max_length (struct _IO_codecvt *codec
     return MB_CUR_MAX;
   #endif
   }
@@ -1232,9 +1232,9 @@ Index: git/libio/iofwide.c
  +#endif
  Index: git/libio/ioseekoff.c
  ===================================================================
---- git.orig/libio/ioseekoff.c	2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/ioseekoff.c	2014-08-29 20:01:15.200070587 -0700
-@@ -60,7 +60,7 @@
+--- git.orig/libio/ioseekoff.c
++++ git/libio/ioseekoff.c
+@@ -60,7 +60,7 @@ _IO_seekoff_unlocked (fp, offset, dir, m
   	  else
   	    abort ();
   	}
@@ -1245,9 +1245,9 @@ Index: git/libio/ioseekoff.c
   	_IO_free_wbackup_area (fp);
  Index: git/libio/ioseekpos.c
  ===================================================================
---- git.orig/libio/ioseekpos.c	2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/ioseekpos.c	2014-08-29 20:01:15.200070587 -0700
-@@ -35,7 +35,7 @@
+--- git.orig/libio/ioseekpos.c
++++ git/libio/ioseekpos.c
+@@ -35,7 +35,7 @@ _IO_seekpos_unlocked (fp, pos, mode)
     /* If we have a backup buffer, get rid of it, since the __seekoff
        callback may not know to do the right thing about it.
        This may be over-kill, but it'll do for now. TODO */
@@ -1258,8 +1258,8 @@ Index: git/libio/ioseekpos.c
   	_IO_free_backup_area (fp);
  Index: git/libio/iosetbuffer.c
  ===================================================================
---- git.orig/libio/iosetbuffer.c	2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/iosetbuffer.c	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/iosetbuffer.c
++++ git/libio/iosetbuffer.c
  @@ -24,6 +24,8 @@
      This exception applies to code released by its copyright holders
      in files containing the exception.  */
@@ -1269,7 +1269,7 @@ Index: git/libio/iosetbuffer.c
   #include "libioP.h"
 
   void
-@@ -38,9 +40,11 @@
+@@ -38,9 +40,11 @@ _IO_setbuffer (fp, buf, size)
     if (!buf)
       size = 0;
     (void) _IO_SETBUF (fp, buf, size);
@@ -1283,8 +1283,8 @@ Index: git/libio/iosetbuffer.c
   libc_hidden_def (_IO_setbuffer)
  Index: git/libio/libioP.h
  ===================================================================
---- git.orig/libio/libioP.h	2014-08-29 20:00:47.372070587 -0700
-+++ git/libio/libioP.h	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/libioP.h
++++ git/libio/libioP.h
  @@ -42,6 +42,10 @@
   /*# include <comthread.h>*/
   #endif
@@ -1296,7 +1296,7 @@ Index: git/libio/libioP.h
   #include <math_ldbl_opt.h>
 
   #include "iolibio.h"
-@@ -508,8 +512,20 @@
+@@ -508,8 +512,20 @@ extern void _IO_old_init (_IO_FILE *fp,
 
 
   #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
@@ -1320,8 +1320,8 @@ Index: git/libio/libioP.h
      : _IO_wdo_write(_f, (_f)->_wide_data->_IO_write_base,		      \
  Index: git/libio/Makefile
  ===================================================================
---- git.orig/libio/Makefile	2014-08-29 20:00:47.332070587 -0700
-+++ git/libio/Makefile	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/Makefile
++++ git/libio/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Specific makefile for libio.
@@ -1331,7 +1331,7 @@ Index: git/libio/Makefile
   subdir	:= libio
 
   include ../Makeconfig
-@@ -27,16 +29,13 @@
+@@ -27,16 +29,13 @@ headers	:= stdio.h libio.h _G_config.h b
 
   routines	:=							      \
   	filedoalloc iofclose iofdopen iofflush iofgetpos iofgets iofopen      \
@@ -1351,7 +1351,7 @@ Index: git/libio/Makefile
   									      \
   	clearerr feof ferror fileno fputc freopen fseek getc getchar	      \
   	memstream pclose putc putchar rewind setbuf setlinebuf vasprintf      \
-@@ -47,25 +46,48 @@
+@@ -47,25 +46,48 @@ routines	:=							      \
   	__fpurge __fpending __fsetlocking				      \
   									      \
   	libc_fatal fmemopen
@@ -1416,7 +1416,7 @@ Index: git/libio/Makefile
   endif
   test-srcs = test-freopen
 
-@@ -164,13 +186,17 @@
+@@ -164,13 +186,17 @@ shared-only-routines = oldiofopen oldiof
   		       oldiofsetpos64
 
   ifeq ($(run-built-tests),yes)
@@ -1436,8 +1436,8 @@ Index: git/libio/Makefile
 
  Index: git/libio/wdummyfileops.c
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/libio/wdummyfileops.c	2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/libio/wdummyfileops.c
  @@ -0,0 +1,161 @@
  +/* Copyright (C) 2007 Free Software Foundation, Inc.
  +   This file is part of the GNU C Library.
@@ -1602,8 +1602,8 @@ Index: git/libio/wdummyfileops.c
  +strong_alias (_IO_wfile_jumps_disabled, _IO_wfile_jumps_maybe_mmap)
  Index: git/locale/catnames.c
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/locale/catnames.c	2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/locale/catnames.c
  @@ -0,0 +1,48 @@
  +/* Copyright (C) 2006  Free Software Foundation, Inc.
  +   This file is part of the GNU C Library.
@@ -1655,8 +1655,8 @@ Index: git/locale/catnames.c
  +  };
  Index: git/locale/C-ctype.c
  ===================================================================
---- git.orig/locale/C-ctype.c	2014-08-29 20:00:47.396070587 -0700
-+++ git/locale/C-ctype.c	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/C-ctype.c
++++ git/locale/C-ctype.c
  @@ -19,8 +19,11 @@
   #include "localeinfo.h"
   #include <endian.h>
@@ -1669,7 +1669,7 @@ Index: git/locale/C-ctype.c
 
   /* This table's entries are taken from POSIX.2 Table 2-6
      ``LC_CTYPE Category Definition in the POSIX Locale''.
-@@ -647,6 +650,7 @@
+@@ -647,6 +650,7 @@ const struct __locale_data _nl_C_LC_CTYP
       { .word = L'7' },
       { .word = L'8' },
       { .word = L'9' },
@@ -1677,7 +1677,7 @@ Index: git/locale/C-ctype.c
       /* _NL_CTYPE_TRANSLIT_TAB_SIZE */
       { .word = NTRANSLIT },
       /* _NL_CTYPE_TRANSLIT_FROM_IDX */
-@@ -657,6 +661,22 @@
+@@ -657,6 +661,22 @@ const struct __locale_data _nl_C_LC_CTYP
       { .wstr = translit_to_idx },
       /* _NL_CTYPE_TRANSLIT_TO_TBL */
       { .wstr = (uint32_t *) translit_to_tbl },
@@ -1702,8 +1702,8 @@ Index: git/locale/C-ctype.c
       /* _NL_CTYPE_TRANSLIT_DEFAULT_MISSING */
  Index: git/locale/dummy-setlocale.c
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/locale/dummy-setlocale.c	2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/locale/dummy-setlocale.c
  @@ -0,0 +1,33 @@
  +/* Copyright (C) 2006  Free Software Foundation, Inc.
  +   This file is part of the GNU C Library.
@@ -1740,9 +1740,9 @@ Index: git/locale/dummy-setlocale.c
  +libc_hidden_def (setlocale)
  Index: git/locale/localeinfo.h
  ===================================================================
---- git.orig/locale/localeinfo.h	2014-08-29 20:00:47.404070587 -0700
-+++ git/locale/localeinfo.h	2014-08-29 20:01:15.204070587 -0700
-@@ -224,7 +224,7 @@
+--- git.orig/locale/localeinfo.h
++++ git/locale/localeinfo.h
+@@ -224,7 +224,7 @@ __libc_tsd_define (extern, __locale_t, L
      unused.  We can manage this playing some tricks with weak references.
      But with thread-local locale settings, it becomes quite ungainly unless
      we can use __thread variables.  So only in that case do we attempt this.  */
@@ -1753,8 +1753,8 @@ Index: git/locale/localeinfo.h
   #endif
  Index: git/locale/Makefile
  ===================================================================
---- git.orig/locale/Makefile	2014-08-29 20:00:47.400070587 -0700
-+++ git/locale/Makefile	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/Makefile
++++ git/locale/Makefile
  @@ -18,27 +18,43 @@
   #
   #	Makefile for locales.
@@ -1810,7 +1810,7 @@ Index: git/locale/Makefile
 
   libBrokenLocale-routines = broken_cur_max
 
-@@ -94,6 +110,9 @@
+@@ -94,6 +110,9 @@ CPPFLAGS-locale-programs = -DLOCALE_PATH
   CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
   CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
   CFLAGS-charmap-dir.c = -Wno-write-strings
@@ -1822,8 +1822,8 @@ Index: git/locale/Makefile
   cpp-srcs-left := $(addsuffix .c,$(localedef-modules) $(localedef-aux) \
  Index: git/locale/programs/charmap-dir.c
  ===================================================================
---- git.orig/locale/programs/charmap-dir.c	2014-08-29 20:00:47.408070587 -0700
-+++ git/locale/programs/charmap-dir.c	2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/programs/charmap-dir.c
++++ git/locale/programs/charmap-dir.c
  @@ -19,7 +19,9 @@
   #include <error.h>
   #include <fcntl.h>
@@ -1834,7 +1834,7 @@ Index: git/locale/programs/charmap-dir.c
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
-@@ -156,6 +158,7 @@
+@@ -156,6 +158,7 @@ charmap_closedir (CHARMAP_DIR *cdir)
     return closedir (dir);
   }
 
@@ -1842,7 +1842,7 @@ Index: git/locale/programs/charmap-dir.c
   /* Creates a subprocess decompressing the given pathname, and returns
      a stream reading its output (the decompressed data).  */
   static
-@@ -204,6 +207,7 @@
+@@ -204,6 +207,7 @@ fopen_uncompressed (const char *pathname
       }
     return NULL;
   }
@@ -1850,7 +1850,7 @@ Index: git/locale/programs/charmap-dir.c
 
   /* Opens a charmap for reading, given its name (not an alias name).  */
   FILE *
-@@ -226,6 +230,7 @@
+@@ -226,6 +230,7 @@ charmap_open (const char *directory, con
     if (stream != NULL)
       return stream;
 
@@ -1858,7 +1858,7 @@ Index: git/locale/programs/charmap-dir.c
     memcpy (p, ".gz", 4);
     stream = fopen_uncompressed (pathname, "gzip");
     if (stream != NULL)
-@@ -235,6 +240,7 @@
+@@ -235,6 +240,7 @@ charmap_open (const char *directory, con
     stream = fopen_uncompressed (pathname, "bzip2");
     if (stream != NULL)
       return stream;
@@ -1866,7 +1866,7 @@ Index: git/locale/programs/charmap-dir.c
 
     return NULL;
   }
-@@ -263,8 +269,8 @@
+@@ -263,8 +269,8 @@ charmap_aliases (const char *directory,
         char *alias = NULL;
         char junk[BUFSIZ];
 
@@ -1879,9 +1879,9 @@ Index: git/locale/programs/charmap-dir.c
                                           (naliases + 2) * sizeof (char *));
  Index: git/locale/programs/ld-collate.c
  ===================================================================
---- git.orig/locale/programs/ld-collate.c	2014-08-29 20:00:47.408070587 -0700
-+++ git/locale/programs/ld-collate.c	2014-08-29 20:01:15.208070587 -0700
-@@ -350,7 +350,7 @@
+--- git.orig/locale/programs/ld-collate.c
++++ git/locale/programs/ld-collate.c
+@@ -350,7 +350,7 @@ new_element (struct locale_collate_t *co
       }
     if (wcs != NULL)
       {
@@ -1890,7 +1890,7 @@ Index: git/locale/programs/ld-collate.c
         uint32_t zero = 0;
         /* Handle <U0000> as a single character.  */
         if (nwcs == 0)
-@@ -1776,8 +1776,7 @@
+@@ -1776,8 +1776,7 @@ symbol `%s' has the same encoding as"),
 
   	      if ((*eptr)->nwcs == runp->nwcs)
   		{
@@ -1900,7 +1900,7 @@ Index: git/locale/programs/ld-collate.c
 
   		  if (c == 0)
   		    {
-@@ -2010,9 +2009,9 @@
+@@ -2010,9 +2009,9 @@ add_to_tablewc (uint32_t ch, struct elem
   	     one consecutive entry.  */
   	  if (runp->wcnext != NULL
   	      && runp->nwcs == runp->wcnext->nwcs
@@ -1913,7 +1913,7 @@ Index: git/locale/programs/ld-collate.c
   	      && (runp->wcs[runp->nwcs - 1]
   		  == runp->wcnext->wcs[runp->nwcs - 1] + 1))
   	    {
-@@ -2036,9 +2035,9 @@
+@@ -2036,9 +2035,9 @@ add_to_tablewc (uint32_t ch, struct elem
   		runp = runp->wcnext;
   	      while (runp->wcnext != NULL
   		     && runp->nwcs == runp->wcnext->nwcs
@@ -1928,9 +1928,9 @@ Index: git/locale/programs/ld-collate.c
 
  Index: git/locale/programs/ld-ctype.c
  ===================================================================
---- git.orig/locale/programs/ld-ctype.c	2014-08-29 20:00:47.408070587 -0700
-+++ git/locale/programs/ld-ctype.c	2014-08-29 20:01:15.208070587 -0700
-@@ -957,7 +957,7 @@
+--- git.orig/locale/programs/ld-ctype.c
++++ git/locale/programs/ld-ctype.c
+@@ -957,7 +957,7 @@ ctype_output (struct localedef_t *locale
     allocate_arrays (ctype, charmap, ctype->repertoire);
 
     default_missing_len = (ctype->default_missing
@@ -1939,7 +1939,7 @@ Index: git/locale/programs/ld-ctype.c
   			 : 0);
 
     init_locale_data (&file, nelems);
-@@ -1968,7 +1968,7 @@
+@@ -1968,7 +1968,7 @@ read_translit_entry (struct linereader *
   	    ignore = 1;
   	  else
   	    /* This value is usable.  */
@@ -1948,7 +1948,7 @@ Index: git/locale/programs/ld-ctype.c
 
   	  first = 0;
   	}
-@@ -2516,8 +2516,8 @@
+@@ -2516,8 +2516,8 @@ with character code range values one mus
   	    }
 
   	handle_tok_digit:
@@ -1959,7 +1959,7 @@ Index: git/locale/programs/ld-ctype.c
   	  handle_digits = 1;
   	  goto read_charclass;
 
-@@ -4001,8 +4001,7 @@
+@@ -4001,8 +4001,7 @@ allocate_arrays (struct locale_ctype_t *
 
   	  while (idx < number)
   	    {
@@ -1969,7 +1969,7 @@ Index: git/locale/programs/ld-ctype.c
   	      if (res == 0)
   		{
   		  replace = 1;
-@@ -4039,11 +4038,11 @@
+@@ -4039,11 +4038,11 @@ allocate_arrays (struct locale_ctype_t *
         for (cnt = 0; cnt < number; ++cnt)
   	{
   	  struct translit_to_t *srunp;
@@ -1983,7 +1983,7 @@ Index: git/locale/programs/ld-ctype.c
   	      srunp = srunp->next;
   	    }
   	  /* Plus one for the extra NUL character marking the end of
-@@ -4067,18 +4066,18 @@
+@@ -4067,18 +4066,18 @@ allocate_arrays (struct locale_ctype_t *
   	  ctype->translit_from_idx[cnt] = from_len;
   	  ctype->translit_to_idx[cnt] = to_len;
 
@@ -2010,8 +2010,8 @@ Index: git/locale/programs/ld-ctype.c
   	    }
  Index: git/locale/programs/ld-messages.c
  ===================================================================
---- git.orig/locale/programs/ld-messages.c	2014-08-29 20:00:47.412070587 -0700
-+++ git/locale/programs/ld-messages.c	2014-08-29 20:01:15.208070587 -0700
+--- git.orig/locale/programs/ld-messages.c
++++ git/locale/programs/ld-messages.c
  @@ -25,6 +25,7 @@
   #include <string.h>
   #include <stdint.h>
@@ -2020,7 +2020,7 @@ Index: git/locale/programs/ld-messages.c
 
   #include <assert.h>
 
-@@ -124,6 +125,7 @@
+@@ -124,6 +125,7 @@ No definition for %s category found"), "
       }
     else
       {
@@ -2028,7 +2028,7 @@ Index: git/locale/programs/ld-messages.c
         int result;
         regex_t re;
 
-@@ -140,6 +142,7 @@
+@@ -140,6 +142,7 @@ No definition for %s category found"), "
   	}
         else if (result != 0)
   	regfree (&re);
@@ -2036,7 +2036,7 @@ Index: git/locale/programs/ld-messages.c
       }
 
     if (messages->noexpr == NULL)
-@@ -158,6 +161,7 @@
+@@ -158,6 +161,7 @@ No definition for %s category found"), "
       }
     else
       {
@@ -2044,7 +2044,7 @@ Index: git/locale/programs/ld-messages.c
         int result;
         regex_t re;
 
-@@ -174,6 +178,7 @@
+@@ -174,6 +178,7 @@ No definition for %s category found"), "
   	}
         else if (result != 0)
   	regfree (&re);
@@ -2054,9 +2054,9 @@ Index: git/locale/programs/ld-messages.c
 
  Index: git/locale/programs/ld-time.c
  ===================================================================
---- git.orig/locale/programs/ld-time.c	2014-08-29 20:00:47.412070587 -0700
-+++ git/locale/programs/ld-time.c	2014-08-29 20:01:15.208070587 -0700
-@@ -215,8 +215,10 @@
+--- git.orig/locale/programs/ld-time.c
++++ git/locale/programs/ld-time.c
+@@ -215,8 +215,10 @@ No definition for %s category found"), "
   	}
         else
   	{
@@ -2068,7 +2068,7 @@ Index: git/locale/programs/ld-time.c
   	}
       }
 
-@@ -226,7 +228,7 @@
+@@ -226,7 +228,7 @@ No definition for %s category found"), "
         const int days_per_month[12] = { 31, 29, 31, 30, 31, 30,
   				       31, 31, 30, 31 ,30, 31 };
         size_t idx;
@@ -2077,7 +2077,7 @@ Index: git/locale/programs/ld-time.c
 
         time->era_entries =
   	(struct era_data *) xmalloc (time->num_era
-@@ -464,18 +466,18 @@
+@@ -464,18 +466,18 @@ No definition for %s category found"), "
   	    }
 
   	  /* Now generate the wide character name and format.  */
@@ -2103,7 +2103,7 @@ Index: git/locale/programs/ld-time.c
   		}
   	      else
   		time->era_entries[idx].wname =
-@@ -530,7 +532,16 @@
+@@ -530,7 +532,16 @@ No definition for %s category found"), "
     if (time->date_fmt == NULL)
       time->date_fmt = "%a %b %e %H:%M:%S %Z %Y";
     if (time->wdate_fmt == NULL)
@@ -2123,9 +2123,9 @@ Index: git/locale/programs/ld-time.c
 
  Index: git/locale/programs/linereader.c
  ===================================================================
---- git.orig/locale/programs/linereader.c	2014-08-29 20:00:47.412070587 -0700
-+++ git/locale/programs/linereader.c	2014-08-29 20:01:15.208070587 -0700
-@@ -595,7 +595,7 @@
+--- git.orig/locale/programs/linereader.c
++++ git/locale/programs/linereader.c
+@@ -595,7 +595,7 @@ get_string (struct linereader *lr, const
   {
     int return_widestr = lr->return_widestr;
     char *buf;
@@ -2136,9 +2136,9 @@ Index: git/locale/programs/linereader.c
 
  Index: git/locale/programs/localedef.c
  ===================================================================
---- git.orig/locale/programs/localedef.c	2014-08-29 20:00:47.416070587 -0700
-+++ git/locale/programs/localedef.c	2014-08-29 20:01:15.208070587 -0700
-@@ -114,6 +114,7 @@
+--- git.orig/locale/programs/localedef.c
++++ git/locale/programs/localedef.c
+@@ -114,6 +114,7 @@ void (*argp_program_version_hook) (FILE
   #define OPT_LIST_ARCHIVE 309
   #define OPT_LITTLE_ENDIAN 400
   #define OPT_BIG_ENDIAN 401
@@ -2146,7 +2146,7 @@ Index: git/locale/programs/localedef.c
 
   /* Definitions of arguments for argp functions.  */
   static const struct argp_option options[] =
-@@ -150,6 +151,8 @@
+@@ -150,6 +151,8 @@ static const struct argp_option options[
       N_("Generate little-endian output") },
     { "big-endian", OPT_BIG_ENDIAN, NULL, 0,
       N_("Generate big-endian output") },
@@ -2155,7 +2155,7 @@ Index: git/locale/programs/localedef.c
     { NULL, 0, NULL, 0, NULL }
   };
 
-@@ -239,12 +242,14 @@
+@@ -239,12 +242,14 @@ main (int argc, char *argv[])
        ctype locale.  (P1003.2 4.35.5.2)  */
     setlocale (LC_CTYPE, "POSIX");
 
@@ -2170,7 +2170,7 @@ Index: git/locale/programs/localedef.c
 
     /* Process charmap file.  */
     charmap = charmap_read (charmap_file, verbose, 1, be_quiet, 1);
-@@ -338,6 +343,9 @@
+@@ -338,6 +343,9 @@ parse_opt (int key, char *arg, struct ar
       case OPT_BIG_ENDIAN:
         set_big_endian (true);
         break;
@@ -2182,9 +2182,9 @@ Index: git/locale/programs/localedef.c
         break;
  Index: git/locale/programs/locfile.c
  ===================================================================
---- git.orig/locale/programs/locfile.c	2014-08-29 20:00:47.432070587 -0700
-+++ git/locale/programs/locfile.c	2014-08-29 20:01:15.208070587 -0700
-@@ -544,6 +544,9 @@
+--- git.orig/locale/programs/locfile.c
++++ git/locale/programs/locfile.c
+@@ -544,6 +544,9 @@ compare_files (const char *filename1, co
      machine running localedef.  */
   bool swap_endianness_p;
 
@@ -2194,7 +2194,7 @@ Index: git/locale/programs/locfile.c
   /* When called outside a start_locale_structure/end_locale_structure
      or start_locale_prelude/end_locale_prelude block, record that the
      next byte in FILE's obstack will be the first byte of a new element.
-@@ -621,7 +624,7 @@
+@@ -621,7 +624,7 @@ add_locale_string (struct locale_file *f
   void
   add_locale_wstring (struct locale_file *file, const uint32_t *string)
   {
@@ -2205,9 +2205,9 @@ Index: git/locale/programs/locfile.c
   /* Record that FILE's next element is the 32-bit integer VALUE.  */
  Index: git/locale/programs/locfile.h
  ===================================================================
---- git.orig/locale/programs/locfile.h	2014-08-29 20:00:47.432070587 -0700
-+++ git/locale/programs/locfile.h	2014-08-29 20:01:15.208070587 -0700
-@@ -71,6 +71,8 @@
+--- git.orig/locale/programs/locfile.h
++++ git/locale/programs/locfile.h
+@@ -71,6 +71,8 @@ extern void write_all_categories (struct
 
   extern bool swap_endianness_p;
 
@@ -2216,7 +2216,7 @@ Index: git/locale/programs/locfile.h
   /* Change the output to be big-endian if BIG_ENDIAN is true and
      little-endian otherwise.  */
   static inline void
-@@ -275,4 +277,49 @@
+@@ -275,4 +277,49 @@ extern void identification_output (struc
   				   const struct charmap_t *charmap,
   				   const char *output_path);
 
@@ -2268,9 +2268,9 @@ Index: git/locale/programs/locfile.h
   #endif /* locfile.h */
  Index: git/locale/setlocale.c
  ===================================================================
---- git.orig/locale/setlocale.c	2014-08-29 20:00:47.432070587 -0700
-+++ git/locale/setlocale.c	2014-08-29 20:01:15.208070587 -0700
-@@ -64,36 +64,6 @@
+--- git.orig/locale/setlocale.c
++++ git/locale/setlocale.c
+@@ -64,36 +64,6 @@ static char *const _nl_current_used[] =
   #endif
 
 
@@ -2309,8 +2309,8 @@ Index: git/locale/setlocale.c
   #else
  Index: git/locale/xlocale.c
  ===================================================================
---- git.orig/locale/xlocale.c	2014-08-29 20:00:47.436070587 -0700
-+++ git/locale/xlocale.c	2014-08-29 20:01:15.208070587 -0700
+--- git.orig/locale/xlocale.c
++++ git/locale/xlocale.c
  @@ -18,6 +18,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -2319,7 +2319,7 @@ Index: git/locale/xlocale.c
   #include "localeinfo.h"
 
   #define DEFINE_CATEGORY(category, category_name, items, a) \
-@@ -25,6 +26,19 @@
+@@ -25,6 +26,19 @@ extern struct __locale_data _nl_C_##cate
   #include "categories.def"
   #undef	DEFINE_CATEGORY
 
@@ -2339,7 +2339,7 @@ Index: git/locale/xlocale.c
   /* Defined in locale/C-ctype.c.  */
   extern const char _nl_C_LC_CTYPE_class[] attribute_hidden;
   extern const char _nl_C_LC_CTYPE_toupper[] attribute_hidden;
-@@ -52,3 +66,26 @@
+@@ -52,3 +66,26 @@ const struct __locale_struct _nl_C_locob
       .__ctype_tolower = (const int *) _nl_C_LC_CTYPE_tolower + 128,
       .__ctype_toupper = (const int *) _nl_C_LC_CTYPE_toupper + 128
     };
@@ -2368,9 +2368,9 @@ Index: git/locale/xlocale.c
  +#endif /* __OPTION_EGLIBC_LOCALE_CODE */
  Index: git/localedata/Makefile
  ===================================================================
---- git.orig/localedata/Makefile	2014-08-29 20:00:47.444070587 -0700
-+++ git/localedata/Makefile	2014-08-29 20:01:15.212070587 -0700
-@@ -21,12 +21,22 @@
+--- git.orig/localedata/Makefile
++++ git/localedata/Makefile
+@@ -21,12 +21,22 @@ subdir := localedata
 
   include ../Makeconfig
 
@@ -2396,7 +2396,7 @@ Index: git/localedata/Makefile
 
   subdir-dirs = tests-mbwc
   vpath %.c tests-mbwc
-@@ -71,14 +81,20 @@
+@@ -71,14 +81,20 @@ locale_test_suite := tst_iswalnum tst_is
   		     tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans      \
   		     tst_wctype tst_wcwidth
 
@@ -2419,7 +2419,7 @@ Index: git/localedata/Makefile
   ifneq (no,$(PERL))
   tests-special += $(objpfx)mtrace-tst-leaks.out
   endif
-@@ -92,12 +108,14 @@
+@@ -92,12 +108,14 @@ install-others := $(addprefix $(inst_i18
 
   tests: $(objdir)/iconvdata/gconv-modules
 
@@ -2434,7 +2434,7 @@ Index: git/localedata/Makefile
 
   ifeq ($(run-built-tests),yes)
   # We have to generate locales
-@@ -143,9 +161,13 @@
+@@ -143,9 +161,13 @@ generated-dirs += $(LOCALES)
   $(addprefix $(objpfx),$(CTYPE_FILES)): %: \
     gen-locale.sh $(common-objpfx)locale/localedef Makefile \
     $(addprefix charmaps/,$(CHARMAPS)) $(addprefix locales/,$(LOCALE_SRCS))
@@ -2451,7 +2451,7 @@ Index: git/localedata/Makefile
   	$(evaluate-test)
 
   $(addsuffix .out,$(addprefix $(objpfx),$(tests))): %: \
-@@ -213,6 +235,11 @@
+@@ -213,6 +235,11 @@ endif
 
   include SUPPORTED
 
@@ -2465,8 +2465,8 @@ Index: git/localedata/Makefile
   # Sometimes the whole collection of locale files should be installed.
  Index: git/login/Makefile
  ===================================================================
---- git.orig/login/Makefile	2014-08-29 20:00:47.736070587 -0700
-+++ git/login/Makefile	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/login/Makefile
++++ git/login/Makefile
  @@ -18,6 +18,7 @@
   #
   #	Sub-makefile for login portion of the library.
@@ -2475,7 +2475,7 @@ Index: git/login/Makefile
 
   subdir	:= login
 
-@@ -25,14 +26,16 @@
+@@ -25,14 +26,16 @@ include ../Makeconfig
 
   headers	:= utmp.h bits/utmp.h lastlog.h pty.h
 
@@ -2497,7 +2497,7 @@ Index: git/login/Makefile
 
   ifeq (yes,$(build-pt-chown))
   others += pt_chown
-@@ -46,8 +49,8 @@
+@@ -46,8 +49,8 @@ vpath %.c programs
   tests := tst-utmp tst-utmpx tst-grantpt tst-ptsname
 
   # Build the -lutil library with these extra functions.
@@ -2510,9 +2510,9 @@ Index: git/login/Makefile
 
  Index: git/Makeconfig
  ===================================================================
---- git.orig/Makeconfig	2014-08-29 20:00:42.956070587 -0700
-+++ git/Makeconfig	2014-08-29 20:01:15.212070587 -0700
-@@ -582,7 +582,7 @@
+--- git.orig/Makeconfig
++++ git/Makeconfig
+@@ -582,7 +582,7 @@ elf-objpfx = $(common-objpfx)elf/
   # and run on the build system, causes that program with those
   # arguments to be run on the host for which the library is built.
   ifndef test-wrapper
@@ -2521,7 +2521,7 @@ Index: git/Makeconfig
   endif
   # Likewise, but the name of the program is preceded by
   # <variable>=<value> assignments for environment variables.
-@@ -1057,6 +1057,24 @@
+@@ -1057,6 +1057,24 @@ else
   libm = $(common-objpfx)math/libm.a
   endif
 
@@ -2548,9 +2548,9 @@ Index: git/Makeconfig
   # dependencies.
  Index: git/Makerules
  ===================================================================
---- git.orig/Makerules	2014-08-29 20:00:42.960070587 -0700
-+++ git/Makerules	2014-08-29 20:01:15.212070587 -0700
-@@ -379,6 +379,25 @@
+--- git.orig/Makerules
++++ git/Makerules
+@@ -379,6 +379,25 @@ define sed-remove-objpfx
   endef
   endif
   
@@ -2578,8 +2578,8 @@ Index: git/Makerules
   ifeq (yes,$(build-shared))
  Index: git/malloc/Makefile
  ===================================================================
---- git.orig/malloc/Makefile	2014-08-29 20:00:47.760070587 -0700
-+++ git/malloc/Makefile	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/malloc/Makefile
++++ git/malloc/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Makefile for malloc routines
@@ -2589,7 +2589,7 @@ Index: git/malloc/Makefile
   subdir	:= malloc
 
   include ../Makeconfig
-@@ -36,9 +38,15 @@
+@@ -36,9 +38,15 @@ install-lib := libmcheck.a
   non-lib.a := libmcheck.a
 
   # Additional library.
@@ -2605,7 +2605,7 @@ Index: git/malloc/Makefile
   libmemusage-routines = memusage
   libmemusage-inhibit-o = $(filter-out .os,$(object-suffixes))
 
-@@ -67,7 +75,7 @@
+@@ -67,7 +75,7 @@ endif
   # Unless we get a test for the availability of libgd which also works
   # for cross-compiling we disable the memusagestat generation in this
   # situation.
@@ -2616,8 +2616,8 @@ Index: git/malloc/Makefile
   others: $(objpfx)memusage
  Index: git/malloc/memusage.c
  ===================================================================
---- git.orig/malloc/memusage.c	2014-08-29 20:00:47.768070587 -0700
-+++ git/malloc/memusage.c	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/malloc/memusage.c
++++ git/malloc/memusage.c
  @@ -33,6 +33,7 @@
   #include <stdint.h>
   #include <sys/mman.h>
@@ -2626,7 +2626,7 @@ Index: git/malloc/memusage.c
 
   #include <memusage.h>
 
-@@ -93,7 +94,11 @@
+@@ -93,7 +94,11 @@ static __thread uintptr_t start_sp;
   #define peak_stack      peak_use[1]
   #define peak_total      peak_use[2]
 
@@ -2641,9 +2641,9 @@ Index: git/malloc/memusage.c
   static int fd = -1;
  Index: git/malloc/memusage.sh
  ===================================================================
---- git.orig/malloc/memusage.sh	2014-08-29 20:00:47.768070587 -0700
-+++ git/malloc/memusage.sh	2014-08-29 20:01:15.212070587 -0700
-@@ -35,7 +35,7 @@
+--- git.orig/malloc/memusage.sh
++++ git/malloc/memusage.sh
+@@ -35,7 +35,7 @@ do_missing_arg() {
 
   # Print help message
   do_help() {
@@ -2654,9 +2654,9 @@ Index: git/malloc/memusage.sh
      -n,--progname=NAME     Name of the program file to profile
  Index: git/math/Makefile
  ===================================================================
---- git.orig/math/Makefile	2014-08-29 20:00:47.836070587 -0700
-+++ git/math/Makefile	2014-08-29 20:01:15.212070587 -0700
-@@ -21,6 +21,8 @@
+--- git.orig/math/Makefile
++++ git/math/Makefile
+@@ -21,6 +21,8 @@ subdir		:= math
 
   include ../Makeconfig
 
@@ -2665,7 +2665,7 @@ Index: git/math/Makefile
   # Installed header files.
   headers		:= math.h bits/mathcalls.h bits/mathinline.h bits/huge_val.h \
   		   bits/huge_valf.h bits/huge_vall.h bits/inf.h bits/nan.h \
-@@ -33,8 +35,8 @@
+@@ -33,8 +35,8 @@ aux		:= setfpucw fpu_control
 
   # Build the -lm library.
 
@@ -2678,8 +2678,8 @@ Index: git/math/Makefile
   	       fclrexcpt fgetexcptflg fraiseexcpt fsetexcptflg		\
  Index: git/misc/err.c
  ===================================================================
---- git.orig/misc/err.c	2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/err.c	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/err.c
++++ git/misc/err.c
  @@ -22,6 +22,7 @@
   #include <errno.h>
   #include <string.h>
@@ -2688,7 +2688,7 @@ Index: git/misc/err.c
 
   #include <wchar.h>
   #define flockfile(s) _IO_flockfile (s)
-@@ -37,6 +38,7 @@
+@@ -37,6 +38,7 @@ extern char *__progname;
     va_end (ap);								      \
   }
 
@@ -2696,7 +2696,7 @@ Index: git/misc/err.c
   static void
   convert_and_print (const char *format, __gnuc_va_list ap)
   {
-@@ -81,6 +83,7 @@
+@@ -81,6 +83,7 @@ convert_and_print (const char *format, _
 
     __vfwprintf (stderr, wformat, ap);
   }
@@ -2704,7 +2704,7 @@ Index: git/misc/err.c
 
   void
   vwarnx (const char *format, __gnuc_va_list ap)
-@@ -88,9 +91,13 @@
+@@ -88,9 +91,13 @@ vwarnx (const char *format, __gnuc_va_li
     flockfile (stderr);
     if (_IO_fwide (stderr, 0) > 0)
       {
@@ -2718,7 +2718,7 @@ Index: git/misc/err.c
       }
     else
       {
-@@ -111,6 +118,7 @@
+@@ -111,6 +118,7 @@ vwarn (const char *format, __gnuc_va_lis
     flockfile (stderr);
     if (_IO_fwide (stderr, 0) > 0)
       {
@@ -2726,7 +2726,7 @@ Index: git/misc/err.c
         __fwprintf (stderr, L"%s: ", __progname);
         if (format)
   	{
-@@ -119,6 +127,9 @@
+@@ -119,6 +127,9 @@ vwarn (const char *format, __gnuc_va_lis
   	}
         __set_errno (error);
         __fwprintf (stderr, L"%m\n");
@@ -2738,8 +2738,8 @@ Index: git/misc/err.c
       {
  Index: git/misc/error.c
  ===================================================================
---- git.orig/misc/error.c	2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/error.c	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/error.c
++++ git/misc/error.c
  @@ -35,6 +35,7 @@
   #endif
 
@@ -2748,7 +2748,7 @@ Index: git/misc/error.c
   # include <libintl.h>
   # include <stdbool.h>
   # include <stdint.h>
-@@ -205,6 +206,7 @@
+@@ -205,6 +206,7 @@ error_tail (int status, int errnum, cons
   #if _LIBC
     if (_IO_fwide (stderr, 0) > 0)
       {
@@ -2756,7 +2756,7 @@ Index: git/misc/error.c
         size_t len = strlen (message) + 1;
         wchar_t *wmessage = NULL;
         mbstate_t st;
-@@ -265,6 +267,9 @@
+@@ -265,6 +267,9 @@ error_tail (int status, int errnum, cons
 
         if (use_malloc)
   	free (wmessage);
@@ -2768,8 +2768,8 @@ Index: git/misc/error.c
   #endif
  Index: git/misc/Makefile
  ===================================================================
---- git.orig/misc/Makefile	2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/Makefile	2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/Makefile
++++ git/misc/Makefile
  @@ -19,6 +19,10 @@
   #	Sub-makefile for misc portion of the library.
   #
@@ -2781,7 +2781,7 @@ Index: git/misc/Makefile
   subdir	:= misc
 
   include ../Makeconfig
-@@ -46,40 +50,47 @@
+@@ -46,40 +50,47 @@ routines := brk sbrk sstk ioctl \
   	    select pselect \
   	    acct chroot fsync sync fdatasync syncfs reboot \
   	    gethostid sethostid \
@@ -2838,9 +2838,9 @@ Index: git/misc/Makefile
   CFLAGS-tsearch.c = $(uses-callbacks)
  Index: git/misc/sys/xattr.h
  ===================================================================
---- git.orig/misc/sys/xattr.h	2014-08-29 20:00:52.644070587 -0700
-+++ git/misc/sys/xattr.h	2014-08-29 20:01:15.216070587 -0700
-@@ -26,7 +26,6 @@
+--- git.orig/misc/sys/xattr.h
++++ git/misc/sys/xattr.h
+@@ -26,7 +26,6 @@ __BEGIN_DECLS
 
   /* The following constants should be used for the fifth parameter of
      `*setxattr'.  */
@@ -2848,7 +2848,7 @@ Index: git/misc/sys/xattr.h
   enum
   {
     XATTR_CREATE = 1,	/* set value, fail if attr already exists.  */
-@@ -34,7 +33,6 @@
+@@ -34,7 +33,6 @@ enum
     XATTR_REPLACE = 2	/* set value, fail if attr does not exist.  */
   #define XATTR_REPLACE	XATTR_REPLACE
   };
@@ -2858,9 +2858,9 @@ Index: git/misc/sys/xattr.h
      is SIZE bytes long).  Return 0 on success, -1 for errors.  */
  Index: git/misc/tst-efgcvt.c
  ===================================================================
---- git.orig/misc/tst-efgcvt.c	2014-08-29 20:00:52.652070587 -0700
-+++ git/misc/tst-efgcvt.c	2014-08-29 20:01:15.216070587 -0700
-@@ -59,7 +59,7 @@
+--- git.orig/misc/tst-efgcvt.c
++++ git/misc/tst-efgcvt.c
+@@ -59,7 +59,7 @@ static testcase ecvt_tests[] =
     { 123.01, -4, 3, "" },
     { 126.71, -4, 3, "" },
     { 0.0, 4, 1, "0000" },
@@ -2871,8 +2871,8 @@ Index: git/misc/tst-efgcvt.c
   #endif
  Index: git/nis/Makefile
  ===================================================================
---- git.orig/nis/Makefile	2014-08-29 20:00:52.660070587 -0700
-+++ git/nis/Makefile	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nis/Makefile
++++ git/nis/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Makefile for NIS/NIS+ part.
@@ -2882,7 +2882,7 @@ Index: git/nis/Makefile
   subdir	:= nis
 
   include ../Makeconfig
-@@ -30,19 +32,26 @@
+@@ -30,19 +32,26 @@ endif
 
   # These are the databases available for the nis (and perhaps later nisplus)
   # service.  This must be a superset of the services in nss.
@@ -2915,7 +2915,7 @@ Index: git/nis/Makefile
   vpath %.c $(subdir-dirs)
 
   libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
-@@ -60,11 +69,11 @@
+@@ -60,11 +69,11 @@ libnsl-routines = yp_xdr ypclnt ypupdate
   libnss_compat-routines	:= $(addprefix compat-,grp pwd spwd initgroups)
   libnss_compat-inhibit-o	= $(filter-out .os,$(object-suffixes))
 
@@ -2929,7 +2929,7 @@ Index: git/nis/Makefile
   			   nss-nisplus nisplus-initgroups
   libnss_nisplus-inhibit-o = $(filter-out .os,$(object-suffixes))
 
-@@ -80,12 +89,12 @@
+@@ -80,12 +89,12 @@ libnsl-libc = $(common-objpfx)linkobj/li
   # Target-specific variable setting to link objects using deprecated
   # RPC interfaces with the version of libc.so that makes them available
   # for new links:
@@ -2947,8 +2947,8 @@ Index: git/nis/Makefile
   endif
  Index: git/nptl/Makefile
  ===================================================================
---- git.orig/nptl/Makefile	2014-08-29 20:00:52.704070587 -0700
-+++ git/nptl/Makefile	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nptl/Makefile
++++ git/nptl/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Sub-makefile for NPTL portion of the library.
@@ -2958,7 +2958,7 @@ Index: git/nptl/Makefile
   subdir	:= nptl
 
   include ../Makeconfig
-@@ -116,7 +118,7 @@
+@@ -116,7 +118,7 @@ libpthread-routines = nptl-init vars eve
   		      pt-raise pt-system \
   		      flockfile ftrylockfile funlockfile \
   		      sigaction \
@@ -2967,7 +2967,7 @@ Index: git/nptl/Makefile
   		      pthread_kill_other_threads \
   		      pthread_getaffinity pthread_setaffinity \
   		      pthread_attr_getaffinity pthread_attr_setaffinity \
-@@ -136,6 +138,8 @@
+@@ -136,6 +138,8 @@ libpthread-routines = nptl-init vars eve
   #		      pthread_setgid pthread_setegid pthread_setregid \
   #		      pthread_setresgid
 
@@ -2976,7 +2976,7 @@ Index: git/nptl/Makefile
   libpthread-shared-only-routines = version pt-allocrtsig unwind-forcedunwind
   libpthread-static-only-routines = pthread_atfork
 
-@@ -210,7 +214,7 @@
+@@ -210,7 +214,7 @@ tests = tst-typesizes \
   	tst-mutexpi1 tst-mutexpi2 tst-mutexpi3 tst-mutexpi4 tst-mutexpi5 \
   	tst-mutexpi5a tst-mutexpi6 tst-mutexpi7 tst-mutexpi7a tst-mutexpi8 \
   	tst-mutexpi9 \
@@ -2985,7 +2985,7 @@ Index: git/nptl/Makefile
   	tst-cond1 tst-cond2 tst-cond3 tst-cond4 tst-cond5 tst-cond6 tst-cond7 \
   	tst-cond8 tst-cond9 tst-cond10 tst-cond11 tst-cond12 tst-cond13 \
   	tst-cond14 tst-cond15 tst-cond16 tst-cond17 tst-cond18 tst-cond19 \
-@@ -244,14 +248,14 @@
+@@ -244,14 +248,14 @@ tests = tst-typesizes \
   	tst-cancel6 tst-cancel7 tst-cancel8 tst-cancel9 tst-cancel10 \
   	tst-cancel11 tst-cancel12 tst-cancel13 tst-cancel14 tst-cancel15 \
   	tst-cancel16 tst-cancel17 tst-cancel18 tst-cancel19 tst-cancel20 \
@@ -3002,7 +3002,7 @@ Index: git/nptl/Makefile
   	tst-exit1 tst-exit2 tst-exit3 \
   	tst-stdio1 tst-stdio2 \
   	tst-stack1 tst-stack2 tst-stack3 tst-pthread-getattr \
-@@ -259,13 +263,12 @@
+@@ -259,13 +263,12 @@ tests = tst-typesizes \
   	tst-unload \
   	tst-dlsym1 \
   	tst-sysconf \
@@ -3017,7 +3017,7 @@ Index: git/nptl/Makefile
   	tst-abstime \
   	tst-vfork1 tst-vfork2 tst-vfork1x tst-vfork2x \
   	tst-getpid1 tst-getpid2 tst-getpid3 \
-@@ -275,6 +278,17 @@
+@@ -275,6 +278,17 @@ xtests = tst-setuid1 tst-setuid1-static
   	tst-mutexpp1 tst-mutexpp6 tst-mutexpp10
   test-srcs = tst-oddstacklimit
 
@@ -3037,8 +3037,8 @@ Index: git/nptl/Makefile
 
  Index: git/nptl/pthread_create.c
  ===================================================================
---- git.orig/nptl/pthread_create.c	2014-08-29 20:00:52.764070587 -0700
-+++ git/nptl/pthread_create.c	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nptl/pthread_create.c
++++ git/nptl/pthread_create.c
  @@ -31,6 +31,7 @@
   #include <kernel-features.h>
   #include <exit-thread.h>
@@ -3047,7 +3047,7 @@ Index: git/nptl/pthread_create.c
   #include <shlib-compat.h>
 
   #include <stap-probe.h>
-@@ -240,8 +241,10 @@
+@@ -240,8 +241,10 @@ start_thread (void *arg)
     THREAD_SETMEM (pd, cpuclock_offset, now);
   #endif
 
@@ -3058,7 +3058,7 @@ Index: git/nptl/pthread_create.c
 
     /* Initialize pointers to locale data.  */
     __ctype_init ();
-@@ -322,8 +325,10 @@
+@@ -322,8 +325,10 @@ start_thread (void *arg)
     /* Run the destructor for the thread-local data.  */
     __nptl_deallocate_tsd ();
 
@@ -3071,8 +3071,8 @@ Index: git/nptl/pthread_create.c
        do not notify the debugger, it might just irritate it if there
  Index: git/nscd/Makefile
  ===================================================================
---- git.orig/nscd/Makefile	2014-08-29 20:00:52.948070587 -0700
-+++ git/nscd/Makefile	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nscd/Makefile
++++ git/nscd/Makefile
  @@ -18,14 +18,17 @@
   #
   #	Sub-makefile for nscd portion of the library.
@@ -3093,7 +3093,7 @@ Index: git/nscd/Makefile
   endif
 
   # To find xmalloc.c
-@@ -37,14 +40,18 @@
+@@ -37,14 +40,18 @@ nscd-modules := nscd connections pwdcach
   		dbg_log nscd_conf nscd_stat cache mem nscd_setup_thread \
   		xmalloc xstrdup aicache initgrcache gai res_hconf \
   		netgroupcache
@@ -3117,7 +3117,7 @@ Index: git/nscd/Makefile
 
   endif
 
-@@ -101,7 +108,15 @@
+@@ -101,7 +108,15 @@ include $(patsubst %,$(..)cppflags-itera
   $(objpfx)nscd: $(nscd-modules:%=$(objpfx)%.o)
 
   ifeq ($(build-shared),yes)
@@ -3137,16 +3137,16 @@ Index: git/nscd/Makefile
   endif
  Index: git/nscd/nis_hash.c
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nscd/nis_hash.c	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nscd/nis_hash.c
  @@ -0,0 +1,3 @@
  +/* If OPTION_EGLIBC_NIS is disabled, nscd can't get this from libnsl.so;
  +   we need our own copy.  */
  +#include "../nis/nis_hash.c"
  Index: git/nss/fixed-nsswitch.conf
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/fixed-nsswitch.conf	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/fixed-nsswitch.conf
  @@ -0,0 +1,22 @@
  +# /etc/nsswitch.conf
  +#
@@ -3172,8 +3172,8 @@ Index: git/nss/fixed-nsswitch.conf
  +netgroup:       files
  Index: git/nss/fixed-nsswitch.functions
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/fixed-nsswitch.functions	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/fixed-nsswitch.functions
  @@ -0,0 +1,121 @@
  +/* List of functions defined for fixed NSS in GNU C Library.
  +   Copyright (C) 1996, 1997, 1998, 2005 Free Software Foundation, Inc.
@@ -3298,8 +3298,8 @@ Index: git/nss/fixed-nsswitch.functions
  +DEFINE_GET (shadow, files, spnam)
  Index: git/nss/gen-fixed-nsswitch.c
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/gen-fixed-nsswitch.c	2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/gen-fixed-nsswitch.c
  @@ -0,0 +1,803 @@
  +/* gen-fixed-nsswitch.c --- generate fixed name service data structures
  +   Copyright (C) 1996-1999, 2001-2006, 2007 Free Software Foundation, Inc.
@@ -4106,8 +4106,8 @@ Index: git/nss/gen-fixed-nsswitch.c
  +}
  Index: git/nss/getent.c
  ===================================================================
---- git.orig/nss/getent.c	2014-08-29 20:00:52.976070587 -0700
-+++ git/nss/getent.c	2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nss/getent.c
++++ git/nss/getent.c
  @@ -39,6 +39,7 @@
   #include <netinet/ether.h>
   #include <netinet/in.h>
@@ -4116,7 +4116,7 @@ Index: git/nss/getent.c
 
   /* Get libc version number.  */
   #include <version.h>
-@@ -91,6 +92,7 @@
+@@ -91,6 +92,7 @@ warranty; not even for MERCHANTABILITY o
     fprintf (stream, gettext ("Written by %s.\n"), "Thorsten Kukuk");
   }
 
@@ -4124,7 +4124,7 @@ Index: git/nss/getent.c
   /* This is for aliases */
   static void
   print_aliases (struct aliasent *alias)
-@@ -135,7 +137,9 @@
+@@ -135,7 +137,9 @@ aliases_keys (int number, char *key[])
 
     return result;
   }
@@ -4134,7 +4134,7 @@ Index: git/nss/getent.c
   /* This is for ethers */
   static int
   ethers_keys (int number, char *key[])
-@@ -179,6 +183,7 @@
+@@ -179,6 +183,7 @@ ethers_keys (int number, char *key[])
 
     return result;
   }
@@ -4142,7 +4142,7 @@ Index: git/nss/getent.c
 
   /* This is for group */
   static void
-@@ -301,6 +306,7 @@
+@@ -301,6 +306,7 @@ gshadow_keys (int number, char *key[])
     return result;
   }
 
@@ -4150,7 +4150,7 @@ Index: git/nss/getent.c
   /* This is for hosts */
   static void
   print_hosts (struct hostent *host)
-@@ -598,6 +604,7 @@
+@@ -598,6 +604,7 @@ networks_keys (int number, char *key[])
 
     return result;
   }
@@ -4158,7 +4158,7 @@ Index: git/nss/getent.c
 
   /* Now is all for passwd */
   static void
-@@ -650,6 +657,7 @@
+@@ -650,6 +657,7 @@ passwd_keys (int number, char *key[])
     return result;
   }
 
@@ -4166,7 +4166,7 @@ Index: git/nss/getent.c
   /* This is for protocols */
   static void
   print_protocols (struct protoent *proto)
-@@ -805,6 +813,7 @@
+@@ -805,6 +813,7 @@ services_keys (int number, char *key[])
 
     return result;
   }
@@ -4174,7 +4174,7 @@ Index: git/nss/getent.c
 
   /* This is for shadow */
   static void
-@@ -871,21 +880,34 @@
+@@ -871,21 +880,34 @@ struct
     } databases[] =
     {
   #define D(name) { #name, name ## _keys },
@@ -4204,10 +4204,11 @@ Index: git/nss/getent.c
   D(group)
   D(gshadow)
  -D(hosts)
-+DN(hosts)
- D(initgroups)
+-D(initgroups)
  -D(netgroup)
  -D(networks)
++DN(hosts)
++DN(initgroups)
  +DN(netgroup)
  +DN(networks)
   D(passwd)
@@ -4222,8 +4223,8 @@ Index: git/nss/getent.c
       { NULL, NULL }
  Index: git/nss/getnssent_r.c
  ===================================================================
---- git.orig/nss/getnssent_r.c	2014-08-29 20:00:52.976070587 -0700
-+++ git/nss/getnssent_r.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/getnssent_r.c
++++ git/nss/getnssent_r.c
  @@ -16,6 +16,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -4232,7 +4233,7 @@ Index: git/nss/getnssent_r.c
   #include <netdb.h>
   #include "nsswitch.h"
 
-@@ -59,11 +60,13 @@
+@@ -59,11 +60,13 @@ __nss_setent (const char *func_name, db_
     } fct;
     int no_more;
 
@@ -4246,7 +4247,7 @@ Index: git/nss/getnssent_r.c
 
     /* Cycle through the services and run their `setXXent' functions until
        we find an available service.  */
-@@ -101,11 +104,13 @@
+@@ -101,11 +104,13 @@ __nss_endent (const char *func_name, db_
     } fct;
     int no_more;
 
@@ -4260,7 +4261,7 @@ Index: git/nss/getnssent_r.c
 
     /* Cycle through all the services and run their endXXent functions.  */
     no_more = setup (func_name, lookup_fct, &fct.ptr, nip, startp, 1);
-@@ -141,12 +146,14 @@
+@@ -141,12 +146,14 @@ __nss_getent_r (const char *getent_func_
     int no_more;
     enum nss_status status;
 
@@ -4275,7 +4276,7 @@ Index: git/nss/getnssent_r.c
 
     /* Initialize status to return if no more functions are found.  */
     status = NSS_STATUS_NOTFOUND;
-@@ -161,7 +168,7 @@
+@@ -161,7 +168,7 @@ __nss_getent_r (const char *getent_func_
         int is_last_nip = *nip == *last_nip;
 
         status = DL_CALL_FCT (fct.f,
@@ -4286,8 +4287,8 @@ Index: git/nss/getnssent_r.c
   	 provided buffer is too small.  In this case we should give
  Index: git/nss/Makefile
  ===================================================================
---- git.orig/nss/Makefile	2014-08-29 20:00:52.972070587 -0700
-+++ git/nss/Makefile	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/Makefile
++++ git/nss/Makefile
  @@ -18,29 +18,36 @@
   #
   #	Makefile for name service switch.
@@ -4333,7 +4334,7 @@ Index: git/nss/Makefile
 
   # Specify rules for the nss_* modules.  We have some services.
   services		:= files db
-@@ -55,7 +62,7 @@
+@@ -55,7 +62,7 @@ subdir-dirs = $(services:%=nss_%)
   vpath %.c $(subdir-dirs) ../locale/programs ../intl
 
 
@@ -4342,7 +4343,7 @@ Index: git/nss/Makefile
   			   files-initgroups files-have_o_cloexec files-init
 
   libnss_db-dbs		:= $(addprefix db-,\
-@@ -78,6 +85,45 @@
+@@ -78,6 +85,45 @@ tests-static		= tst-nss-static
   tests			+= $(tests-static)
   endif
 
@@ -4390,8 +4391,8 @@ Index: git/nss/Makefile
   ifeq (yes,$(have-selinux))
  Index: git/nss/nsswitch.c
  ===================================================================
---- git.orig/nss/nsswitch.c	2014-08-29 20:00:53.004070587 -0700
-+++ git/nss/nsswitch.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/nsswitch.c
++++ git/nss/nsswitch.c
  @@ -26,6 +26,7 @@
   #include <stdio_ext.h>
   #include <stdlib.h>
@@ -4416,7 +4417,7 @@ Index: git/nss/nsswitch.c
   /* Prototypes for the local functions.  */
   static name_database *nss_parse_file (const char *fname) internal_function;
   static name_database_entry *nss_getline (char *line) internal_function;
-@@ -79,6 +89,9 @@
+@@ -79,6 +89,9 @@ bool __nss_database_custom[NSS_DBSIDX_ma
 
   __libc_lock_define_initialized (static, lock)
 
@@ -4426,7 +4427,7 @@ Index: git/nss/nsswitch.c
   #if !defined DO_STATIC_NSS || defined SHARED
   /* String with revision number of the shared object files.  */
   static const char *const __nss_shlib_revision = LIBNSS_FILES_SO + 15;
-@@ -93,6 +106,20 @@
+@@ -93,6 +106,20 @@ static name_database *service_table;
      __libc_freeres.  */
   static name_database_entry *defconfig_entries;
 
@@ -4447,7 +4448,7 @@ Index: git/nss/nsswitch.c
 
   #ifdef USE_NSCD
   /* Nonzero if this is the nscd process.  */
-@@ -109,20 +136,22 @@
+@@ -109,20 +136,22 @@ __nss_database_lookup (const char *datab
   		       const char *defconfig, service_user **ni)
   {
     /* Prevent multiple threads to change the service table.  */
@@ -4472,7 +4473,7 @@ Index: git/nss/nsswitch.c
 
     /* Test whether configuration data is available.  */
     if (service_table != NULL)
-@@ -144,6 +173,7 @@
+@@ -144,6 +173,7 @@ __nss_database_lookup (const char *datab
   	    *ni = entry->service;
       }
 
@@ -4480,7 +4481,7 @@ Index: git/nss/nsswitch.c
     /* No configuration data is available, either because nsswitch.conf
        doesn't exist or because it doesn't have a line for this database.
 
-@@ -166,13 +196,23 @@
+@@ -166,13 +196,23 @@ __nss_database_lookup (const char *datab
   	    {
   	      entry->next = defconfig_entries;
   	      entry->service = *ni;
@@ -4506,7 +4507,7 @@ Index: git/nss/nsswitch.c
 
     return *ni != NULL ? 0 : -1;
   }
-@@ -252,6 +292,7 @@
+@@ -252,6 +292,7 @@ __nss_next2 (service_user **ni, const ch
   libc_hidden_def (__nss_next2)
 
 
@@ -4514,7 +4515,7 @@ Index: git/nss/nsswitch.c
   int
   attribute_compat_text_section
   __nss_next (service_user **ni, const char *fct_name, void **fctp, int status,
-@@ -300,13 +341,13 @@
+@@ -300,13 +341,13 @@ __nss_configure_lookup (const char *dbna
       }
 
     /* Prevent multiple threads to change the service table.  */
@@ -4530,7 +4531,7 @@ Index: git/nss/nsswitch.c
 
     return 0;
   }
-@@ -402,7 +443,7 @@
+@@ -402,7 +443,7 @@ __nss_lookup_function (service_user *ni,
     void **found, *result;
 
     /* We now modify global data.  Protect it.  */
@@ -4539,7 +4540,7 @@ Index: git/nss/nsswitch.c
 
     /* Search the tree of functions previously requested.  Data in the
        tree are `known_function' structures, whose first member is a
-@@ -413,7 +454,7 @@
+@@ -413,7 +454,7 @@ __nss_lookup_function (service_user *ni,
        enough to a pointer to our structure to use as a lookup key that
        will be passed to `known_compare' (above).  */
 
@@ -4548,7 +4549,7 @@ Index: git/nss/nsswitch.c
     if (found == NULL)
       /* This means out-of-memory.  */
       result = NULL;
-@@ -440,7 +481,7 @@
+@@ -440,7 +481,7 @@ __nss_lookup_function (service_user *ni,
   #endif
   	  /* Oops.  We can't instantiate this node properly.
   	     Remove it from the tree.  */
@@ -4557,7 +4558,7 @@ Index: git/nss/nsswitch.c
   	  free (known);
   	  result = NULL;
   	}
-@@ -520,13 +561,43 @@
+@@ -520,13 +561,43 @@ __nss_lookup_function (service_user *ni,
       }
 
     /* Remove the lock.  */
@@ -4602,7 +4603,7 @@ Index: git/nss/nsswitch.c
   static name_database *
   internal_function
   nss_parse_file (const char *fname)
-@@ -632,8 +703,10 @@
+@@ -632,8 +703,10 @@ nss_parse_service_list (const char *line
   					     + (line - name + 1));
         if (new_service == NULL)
   	return result;
@@ -4614,7 +4615,7 @@ Index: git/nss/nsswitch.c
 
         /* Set default actions.  */
         new_service->actions[2 + NSS_STATUS_TRYAGAIN] = NSS_ACTION_CONTINUE;
-@@ -642,7 +715,7 @@
+@@ -642,7 +715,7 @@ nss_parse_service_list (const char *line
         new_service->actions[2 + NSS_STATUS_SUCCESS] = NSS_ACTION_RETURN;
         new_service->actions[2 + NSS_STATUS_RETURN] = NSS_ACTION_RETURN;
         new_service->library = NULL;
@@ -4623,7 +4624,7 @@ Index: git/nss/nsswitch.c
         new_service->next = NULL;
 
         while (isspace (line[0]))
-@@ -778,9 +851,10 @@
+@@ -778,9 +851,10 @@ nss_getline (char *line)
     result = (name_database_entry *) malloc (sizeof (name_database_entry) + len);
     if (result == NULL)
       return NULL;
@@ -4635,7 +4636,7 @@ Index: git/nss/nsswitch.c
 
     /* Parse the list of services.  */
     result->service = nss_parse_service_list (line);
-@@ -816,6 +890,7 @@
+@@ -816,6 +890,7 @@ nss_new_service (name_database *database
     return *currentp;
   }
   #endif
@@ -4643,7 +4644,7 @@ Index: git/nss/nsswitch.c
 
 
   #if defined SHARED && defined USE_NSCD
-@@ -834,6 +909,7 @@
+@@ -834,6 +909,7 @@ nss_load_all_libraries (const char *serv
   }
 
 
@@ -4651,7 +4652,7 @@ Index: git/nss/nsswitch.c
   /* Called by nscd and nscd alone.  */
   void
   __nss_disable_nscd (void (*cb) (size_t, struct traced_file *))
-@@ -857,8 +933,10 @@
+@@ -857,8 +933,10 @@ __nss_disable_nscd (void (*cb) (size_t,
     __nss_not_use_nscd_services = -1;
     __nss_not_use_nscd_netgroup = -1;
   }
@@ -4662,7 +4663,7 @@ Index: git/nss/nsswitch.c
   static void
   free_database_entries (name_database_entry *entry)
   {
-@@ -871,8 +949,8 @@
+@@ -871,8 +949,8 @@ free_database_entries (name_database_ent
   	{
   	  service_user *olds = service;
 
@@ -4673,16 +4674,16 @@ Index: git/nss/nsswitch.c
 
   	  service = service->next;
   	  free (olds);
-@@ -926,3 +1004,4 @@
+@@ -926,3 +1004,4 @@ libc_freeres_fn (free_mem)
 
     free (top);
   }
  +#endif /* __OPTION_EGLIBC_NSSWITCH */
  Index: git/nss/nsswitch.h
  ===================================================================
---- git.orig/nss/nsswitch.h	2014-08-29 20:00:53.012070587 -0700
-+++ git/nss/nsswitch.h	2014-08-29 20:01:15.220070587 -0700
-@@ -65,10 +65,20 @@
+--- git.orig/nss/nsswitch.h
++++ git/nss/nsswitch.h
+@@ -65,10 +65,20 @@ typedef struct service_user
     lookup_actions actions[5];
     /* Link to the underlying library object.  */
     service_library *library;
@@ -4706,7 +4707,7 @@ Index: git/nss/nsswitch.h
   } service_user;
 
   /* To access the action based on the status value use this macro.  */
-@@ -82,7 +92,7 @@
+@@ -82,7 +92,7 @@ typedef struct name_database_entry
     /* List of service to be used.  */
     service_user *service;
     /* Name of the database.  */
@@ -4717,8 +4718,8 @@ Index: git/nss/nsswitch.h
 
  Index: git/posix/bug-regex1.c
  ===================================================================
---- git.orig/posix/bug-regex1.c	2014-08-29 20:00:53.184070587 -0700
-+++ git/posix/bug-regex1.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/bug-regex1.c
++++ git/posix/bug-regex1.c
  @@ -4,6 +4,7 @@
   #include <string.h>
   #include <regex.h>
@@ -4727,7 +4728,7 @@ Index: git/posix/bug-regex1.c
 
   int
   main (void)
-@@ -17,7 +18,9 @@
+@@ -17,7 +18,9 @@ main (void)
     memset (&regex, '\0', sizeof (regex));
 
     setlocale (LC_ALL, "de_DE.ISO-8859-1");
@@ -4739,8 +4740,8 @@ Index: git/posix/bug-regex1.c
 
  Index: git/posix/bug-regex6.c
  ===================================================================
---- git.orig/posix/bug-regex6.c	2014-08-29 20:00:53.204070587 -0700
-+++ git/posix/bug-regex6.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/bug-regex6.c
++++ git/posix/bug-regex6.c
  @@ -22,6 +22,7 @@
   #include <string.h>
   #include <sys/types.h>
@@ -4749,7 +4750,7 @@ Index: git/posix/bug-regex6.c
 
 
   int
-@@ -30,7 +31,12 @@
+@@ -30,7 +31,12 @@ main (int argc, char *argv[])
     regex_t re;
     regmatch_t mat[10];
     int i, j, ret = 0;
@@ -4765,8 +4766,8 @@ Index: git/posix/bug-regex6.c
       { 0, 48 }, { 0, 5 }, { 0, 4 }, { 5, 20 }, { 7, 20 }, { 20, 42 },
  Index: git/posix/fnmatch.c
  ===================================================================
---- git.orig/posix/fnmatch.c	2014-08-29 20:00:53.208070587 -0700
-+++ git/posix/fnmatch.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/fnmatch.c
++++ git/posix/fnmatch.c
  @@ -30,6 +30,10 @@
   #include <ctype.h>
   #include <string.h>
@@ -4778,7 +4779,7 @@ Index: git/posix/fnmatch.c
   #if defined STDC_HEADERS || defined _LIBC
   # include <stdlib.h>
   #endif
-@@ -131,7 +135,7 @@
+@@ -131,7 +135,7 @@ extern int fnmatch (const char *pattern,
   #   define ISWCTYPE(WC, WT)	iswctype (WC, WT)
   #  endif
 
@@ -4789,8 +4790,8 @@ Index: git/posix/fnmatch.c
   #  endif
  Index: git/posix/fnmatch_loop.c
  ===================================================================
---- git.orig/posix/fnmatch_loop.c	2014-08-29 20:00:53.220070587 -0700
-+++ git/posix/fnmatch_loop.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/fnmatch_loop.c
++++ git/posix/fnmatch_loop.c
  @@ -15,6 +15,8 @@
      License along with the GNU C Library; if not, see
      <http://www.gnu.org/licenses/>.  */
@@ -4800,7 +4801,7 @@ Index: git/posix/fnmatch_loop.c
   #include <stdint.h>
 
   struct STRUCT
-@@ -54,10 +56,15 @@
+@@ -54,10 +56,15 @@ FCT (pattern, string, string_end, no_lea
     const char *collseq = (const char *)
       _NL_CURRENT(LC_COLLATE, _NL_COLLATE_COLLSEQWC);
   # else
@@ -4818,7 +4819,7 @@ Index: git/posix/fnmatch_loop.c
 
     while ((c = *p++) != L('\0'))
       {
-@@ -277,7 +284,7 @@
+@@ -277,7 +284,7 @@ FCT (pattern, string, string_end, no_lea
   		    /* Leave room for the null.  */
   		    CHAR str[CHAR_CLASS_MAX_LENGTH + 1];
   		    size_t c1 = 0;
@@ -4827,7 +4828,7 @@ Index: git/posix/fnmatch_loop.c
   		    wctype_t wt;
   #endif
   		    const CHAR *startp = p;
-@@ -307,7 +314,7 @@
+@@ -307,7 +314,7 @@ FCT (pattern, string, string_end, no_lea
   		      }
   		    str[c1] = L('\0');
 
@@ -4836,7 +4837,7 @@ Index: git/posix/fnmatch_loop.c
   		    wt = IS_CHAR_CLASS (str);
   		    if (wt == 0)
   		      /* Invalid character class name.  */
-@@ -681,8 +688,10 @@
+@@ -681,8 +688,10 @@ FCT (pattern, string, string_end, no_lea
   			else
   			  lcollseq = __collseq_table_lookup (collseq, cold);
   # else
@@ -4849,7 +4850,7 @@ Index: git/posix/fnmatch_loop.c
   # endif
 
   			is_seqval = 0;
-@@ -858,7 +867,7 @@
+@@ -858,7 +867,7 @@ FCT (pattern, string, string_end, no_lea
   				    goto matched;
   				  }
   # else
@@ -4860,8 +4861,8 @@ Index: git/posix/fnmatch_loop.c
 
  Index: git/posix/glob.c
  ===================================================================
---- git.orig/posix/glob.c	2014-08-29 20:00:53.232070587 -0700
-+++ git/posix/glob.c	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/glob.c
++++ git/posix/glob.c
  @@ -25,6 +25,9 @@
   #include <sys/types.h>
   #include <sys/stat.h>
@@ -4872,7 +4873,7 @@ Index: git/posix/glob.c
 
   /* Outcomment the following line for production quality code.  */
   /* #define NDEBUG 1 */
-@@ -607,6 +610,7 @@
+@@ -607,6 +610,7 @@ glob (pattern, flags, errfunc, pglob)
   	  if (home_dir == NULL || home_dir[0] == '\0')
   	    home_dir = "c:/users/default"; /* poor default */
   #  else
@@ -4880,7 +4881,7 @@ Index: git/posix/glob.c
   	  if (home_dir == NULL || home_dir[0] == '\0')
   	    {
   	      int success;
-@@ -623,19 +627,19 @@
+@@ -623,19 +627,19 @@ glob (pattern, flags, errfunc, pglob)
   	      if (success)
   		{
   		  struct passwd *p;
@@ -4903,7 +4904,7 @@ Index: git/posix/glob.c
   		  if (__libc_use_alloca (alloca_used + pwbuflen))
   		    pwtmpbuf = alloca_account (pwbuflen, alloca_used);
   		  else
-@@ -682,9 +686,9 @@
+@@ -682,9 +686,9 @@ glob (pattern, flags, errfunc, pglob)
   			}
   		      __set_errno (save);
   		    }
@@ -4915,7 +4916,7 @@ Index: git/posix/glob.c
   		  if (p != NULL)
   		    {
   		      if (!malloc_pwtmpbuf)
-@@ -713,6 +717,7 @@
+@@ -713,6 +717,7 @@ glob (pattern, flags, errfunc, pglob)
   		    }
   		}
   	    }
@@ -4925,8 +4926,8 @@ Index: git/posix/glob.c
   	      if (flags & GLOB_TILDE_CHECK)
  Index: git/posix/Makefile
  ===================================================================
---- git.orig/posix/Makefile	2014-08-29 20:00:53.160070587 -0700
-+++ git/posix/Makefile	2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/Makefile
++++ git/posix/Makefile
  @@ -18,6 +18,8 @@
   #
   #	Sub-makefile for POSIX portion of the library.
@@ -4936,7 +4937,7 @@ Index: git/posix/Makefile
   subdir	:= posix
 
   include ../Makeconfig
-@@ -43,13 +45,24 @@
+@@ -43,13 +45,24 @@ routines :=								      \
   	getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid	      \
   	getresuid getresgid setresuid setresgid				      \
   	pathconf sysconf fpathconf					      \
@@ -4963,7 +4964,7 @@ Index: git/posix/Makefile
   	spawn_faction_init spawn_faction_destroy spawn_faction_addclose	      \
   	spawn_faction_addopen spawn_faction_adddup2			      \
   	spawnattr_init spawnattr_destroy				      \
-@@ -57,41 +70,53 @@
+@@ -57,41 +70,53 @@ routines :=								      \
   	spawnattr_getflags spawnattr_setflags				      \
   	spawnattr_getpgroup spawnattr_setpgroup spawn spawnp spawni	      \
   	spawnattr_getsigmask spawnattr_getschedpolicy spawnattr_getschedparam \
@@ -5040,7 +5041,7 @@ Index: git/posix/Makefile
   endif
   tests-static	= tst-exec-static tst-spawn-static
   tests		+= $(tests-static)
-@@ -117,7 +142,10 @@
+@@ -117,7 +142,10 @@ generated += $(addprefix wordexp-test-re
 
   ifeq ($(run-built-tests),yes)
   ifeq (yes,$(build-shared))
@@ -5052,7 +5053,7 @@ Index: git/posix/Makefile
   endif
   endif
 
-@@ -125,12 +153,16 @@
+@@ -125,12 +153,16 @@ endif
   # XXX Please note that for now we ignore the result of this test.
   tests-special += $(objpfx)annexc.out
   ifeq ($(run-built-tests),yes)
@@ -5072,7 +5073,7 @@ Index: git/posix/Makefile
   xtests-special += $(objpfx)bug-ga2-mem.out
   endif
 
-@@ -143,6 +175,8 @@
+@@ -143,6 +175,8 @@ $(objpfx)globtest.out: globtest.sh $(obj
   	$(SHELL) $< $(common-objpfx) '$(test-via-rtld-prefix)' \
   		'$(test-program-prefix)' '$(test-wrapper-env)'; \
   	$(evaluate-test)
@@ -5081,7 +5082,7 @@ Index: git/posix/Makefile
   $(objpfx)wordexp-tst.out: wordexp-tst.sh $(objpfx)wordexp-test
   	$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
   		 '$(run-program-env)' '$(test-program-prefix-after-env)'; \
-@@ -205,7 +239,10 @@
+@@ -205,7 +239,10 @@ tst-dir-ARGS = `pwd` `cd $(common-objdir
   tst-chmod-ARGS = $(objdir)
   tst-vfork3-ARGS = --test-dir=$(objpfx)
 
@@ -5095,8 +5096,8 @@ Index: git/posix/Makefile
   tst-boost-ARGS = BOOST.tests
  Index: git/posix/regcomp.c
  ===================================================================
---- git.orig/posix/regcomp.c	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regcomp.c	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regcomp.c
++++ git/posix/regcomp.c
  @@ -18,6 +18,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -5105,7 +5106,7 @@ Index: git/posix/regcomp.c
 
   static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
   					  size_t length, reg_syntax_t syntax);
-@@ -305,7 +306,7 @@
+@@ -305,7 +306,7 @@ re_compile_fastmap_iter (regex_t *bufp,
   {
     re_dfa_t *dfa = (re_dfa_t *) bufp->buffer;
     int node_cnt;
@@ -5114,7 +5115,7 @@ Index: git/posix/regcomp.c
     for (node_cnt = 0; node_cnt < init_state->nodes.nelem; ++node_cnt)
       {
         int node = init_state->nodes.elems[node_cnt];
-@@ -315,9 +316,9 @@
+@@ -315,9 +316,9 @@ re_compile_fastmap_iter (regex_t *bufp,
   	{
   	  re_set_fastmap (fastmap, icase, dfa->nodes[node].opr.c);
   #ifdef RE_ENABLE_I18N
@@ -5126,7 +5127,7 @@ Index: git/posix/regcomp.c
   	      wchar_t wc;
   	      mbstate_t state;
 
-@@ -348,7 +349,11 @@
+@@ -348,7 +349,11 @@ re_compile_fastmap_iter (regex_t *bufp,
   		  re_set_fastmap (fastmap, icase, ch);
   	    }
   	}
@@ -5139,7 +5140,7 @@ Index: git/posix/regcomp.c
         else if (type == COMPLEX_BRACKET)
   	{
   	  re_charset_t *cset = dfa->nodes[node].opr.mbcset;
-@@ -376,7 +381,7 @@
+@@ -376,7 +381,7 @@ re_compile_fastmap_iter (regex_t *bufp,
   	     i.e. where we would not find an invalid sequence.  This only
   	     applies to multibyte character sets; for single byte character
   	     sets, the SIMPLE_BRACKET again suffices.  */
@@ -5148,7 +5149,7 @@ Index: git/posix/regcomp.c
   	      && (cset->nchar_classes || cset->non_match || cset->nranges
   # ifdef _LIBC
   		  || cset->nequiv_classes
-@@ -404,7 +409,7 @@
+@@ -404,7 +409,7 @@ re_compile_fastmap_iter (regex_t *bufp,
   		  memset (&state, '\0', sizeof (state));
   		  if (__wcrtomb (buf, cset->mbchars[i], &state) != (size_t) -1)
   		    re_set_fastmap (fastmap, icase, *(unsigned char *) buf);
@@ -5157,7 +5158,7 @@ Index: git/posix/regcomp.c
   		    {
   		      if (__wcrtomb (buf, towlower (cset->mbchars[i]), &state)
   			  != (size_t) -1)
-@@ -413,7 +418,7 @@
+@@ -413,7 +418,7 @@ re_compile_fastmap_iter (regex_t *bufp,
   		}
   	    }
   	}
@@ -5166,7 +5167,7 @@ Index: git/posix/regcomp.c
         else if (type == OP_PERIOD
   #ifdef RE_ENABLE_I18N
   	       || type == OP_UTF8_PERIOD
-@@ -856,11 +861,15 @@
+@@ -856,11 +861,15 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
 
     dfa->mb_cur_max = MB_CUR_MAX;
   #ifdef _LIBC
@@ -5183,7 +5184,7 @@ Index: git/posix/regcomp.c
   #else
   # ifdef HAVE_LANGINFO_CODESET
     codeset_name = nl_langinfo (CODESET);
-@@ -886,7 +895,7 @@
+@@ -886,7 +895,7 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
   #endif
 
   #ifdef RE_ENABLE_I18N
@@ -5192,7 +5193,7 @@ Index: git/posix/regcomp.c
       {
         if (dfa->is_utf8)
   	dfa->sb_char = (re_bitset_ptr_t) utf8_sb_map;
-@@ -1784,7 +1793,7 @@
+@@ -1784,7 +1793,7 @@ peek_token (re_token_t *token, re_string
     token->word_char = 0;
   #ifdef RE_ENABLE_I18N
     token->mb_partial = 0;
@@ -5201,7 +5202,7 @@ Index: git/posix/regcomp.c
         !re_string_first_byte (input, re_string_cur_idx (input)))
       {
         token->type = CHARACTER;
-@@ -1805,7 +1814,7 @@
+@@ -1805,7 +1814,7 @@ peek_token (re_token_t *token, re_string
         token->opr.c = c2;
         token->type = CHARACTER;
   #ifdef RE_ENABLE_I18N
@@ -5210,7 +5211,7 @@ Index: git/posix/regcomp.c
   	{
   	  wint_t wc = re_string_wchar_at (input,
   					  re_string_cur_idx (input) + 1);
-@@ -1919,7 +1928,7 @@
+@@ -1919,7 +1928,7 @@ peek_token (re_token_t *token, re_string
 
     token->type = CHARACTER;
   #ifdef RE_ENABLE_I18N
@@ -5219,7 +5220,7 @@ Index: git/posix/regcomp.c
       {
         wint_t wc = re_string_wchar_at (input, re_string_cur_idx (input));
         token->word_char = IS_WIDE_WORD_CHAR (wc) != 0;
-@@ -2019,7 +2028,7 @@
+@@ -2019,7 +2028,7 @@ peek_token_bracket (re_token_t *token, r
     token->opr.c = c;
 
   #ifdef RE_ENABLE_I18N
@@ -5228,7 +5229,7 @@ Index: git/posix/regcomp.c
         !re_string_first_byte (input, re_string_cur_idx (input)))
       {
         token->type = CHARACTER;
-@@ -2242,7 +2251,7 @@
+@@ -2242,7 +2251,7 @@ parse_expression (re_string_t *regexp, r
   	  return NULL;
   	}
   #ifdef RE_ENABLE_I18N
@@ -5237,7 +5238,7 @@ Index: git/posix/regcomp.c
   	{
   	  while (!re_string_eoi (regexp)
   		 && !re_string_first_byte (regexp, re_string_cur_idx (regexp)))
-@@ -2380,7 +2389,7 @@
+@@ -2380,7 +2389,7 @@ parse_expression (re_string_t *regexp, r
   	  *err = REG_ESPACE;
   	  return NULL;
   	}
@@ -5246,7 +5247,7 @@ Index: git/posix/regcomp.c
   	dfa->has_mb_node = 1;
         break;
       case OP_WORD:
-@@ -2686,7 +2695,7 @@
+@@ -2686,7 +2695,7 @@ build_range_exp (bitset_t sbcset, bracke
          However, for !_LIBC we have no collation elements: if the
          character set is single byte, the single byte character set
          that we build below suffices.  parse_bracket_exp passes
@@ -5255,7 +5256,7 @@ Index: git/posix/regcomp.c
       if (mbcset)
         {
   	/* Check the space of the arrays.  */
-@@ -2782,7 +2791,13 @@
+@@ -2782,7 +2791,13 @@ parse_bracket_exp (re_string_t *regexp,
   		   reg_syntax_t syntax, reg_errcode_t *err)
   {
   #ifdef _LIBC
@@ -5269,7 +5270,7 @@ Index: git/posix/regcomp.c
     const char *collseqwc;
     uint32_t nrules;
     int32_t table_size;
-@@ -2830,18 +2845,20 @@
+@@ -2830,18 +2845,20 @@ parse_bracket_exp (re_string_t *regexp,
   	  if (MB_CUR_MAX == 1)
   	  */
   	  if (nrules == 0)
@@ -5291,7 +5292,7 @@ Index: git/posix/regcomp.c
         else if (br_elem->type == COLL_SYM)
   	{
   	  size_t sym_name_len = strlen ((char *) br_elem->opr.name);
-@@ -2872,11 +2889,11 @@
+@@ -2872,11 +2889,11 @@ parse_bracket_exp (re_string_t *regexp,
   		{
   		  /* No valid character.  Match it as a single byte
   		     character.  */
@@ -5305,7 +5306,7 @@ Index: git/posix/regcomp.c
   	}
         return UINT_MAX;
       }
-@@ -2916,7 +2933,7 @@
+@@ -2916,7 +2933,7 @@ parse_bracket_exp (re_string_t *regexp,
   	 However, if we have no collation elements, and the character set
   	 is single byte, the single byte character set that we
   	 build below suffices. */
@@ -5314,7 +5315,7 @@ Index: git/posix/regcomp.c
   	{
   	  /* Check the space of the arrays.  */
   	  if (BE (*range_alloc == mbcset->nranges, 0))
-@@ -2953,7 +2970,7 @@
+@@ -2953,7 +2970,7 @@ parse_bracket_exp (re_string_t *regexp,
   	  if (MB_CUR_MAX == 1)
   	  */
   	  if (nrules == 0)
@@ -5323,7 +5324,7 @@ Index: git/posix/regcomp.c
   	  else
   	    ch_collseq = __collseq_table_lookup (collseqwc, __btowc (ch));
   	  if (start_collseq <= ch_collseq && ch_collseq <= end_collseq)
-@@ -3031,7 +3048,10 @@
+@@ -3031,7 +3048,10 @@ parse_bracket_exp (re_string_t *regexp,
     re_bitset_ptr_t sbcset;
   #ifdef RE_ENABLE_I18N
     re_charset_t *mbcset;
@@ -5335,7 +5336,7 @@ Index: git/posix/regcomp.c
     int equiv_class_alloc = 0, char_class_alloc = 0;
   #endif /* not RE_ENABLE_I18N */
     int non_match = 0;
-@@ -3039,9 +3059,15 @@
+@@ -3039,9 +3059,15 @@ parse_bracket_exp (re_string_t *regexp,
     int token_len;
     int first_round = 1;
   #ifdef _LIBC
@@ -5351,7 +5352,7 @@ Index: git/posix/regcomp.c
     if (nrules)
       {
         /*
-@@ -3169,7 +3195,7 @@
+@@ -3169,7 +3195,7 @@ parse_bracket_exp (re_string_t *regexp,
   #else
   # ifdef RE_ENABLE_I18N
   	  *err = build_range_exp (sbcset,
@@ -5360,7 +5361,7 @@ Index: git/posix/regcomp.c
   				  &range_alloc, &start_elem, &end_elem);
   # else
   	  *err = build_range_exp (sbcset, &start_elem, &end_elem);
-@@ -3185,7 +3211,7 @@
+@@ -3185,7 +3211,7 @@ parse_bracket_exp (re_string_t *regexp,
   	    case SB_CHAR:
   	      bitset_set (sbcset, start_elem.opr.ch);
   	      break;
@@ -5369,7 +5370,7 @@ Index: git/posix/regcomp.c
   	    case MB_CHAR:
   	      /* Check whether the array has enough space.  */
   	      if (BE (mbchar_alloc == mbcset->nmbchars, 0))
-@@ -3203,7 +3229,7 @@
+@@ -3203,7 +3229,7 @@ parse_bracket_exp (re_string_t *regexp,
   		}
   	      mbcset->mbchars[mbcset->nmbchars++] = start_elem.opr.wch;
   	      break;
@@ -5378,7 +5379,7 @@ Index: git/posix/regcomp.c
   	    case EQUIV_CLASS:
   	      *err = build_equiv_class (sbcset,
   #ifdef RE_ENABLE_I18N
-@@ -3253,11 +3279,11 @@
+@@ -3253,11 +3279,11 @@ parse_bracket_exp (re_string_t *regexp,
 
   #ifdef RE_ENABLE_I18N
     /* Ensure only single byte characters are set.  */
@@ -5392,7 +5393,7 @@ Index: git/posix/regcomp.c
   						     || mbcset->non_match)))
       {
         bin_tree_t *mbc_tree;
-@@ -3326,7 +3352,7 @@
+@@ -3326,7 +3352,7 @@ parse_bracket_element (bracket_elem_t *e
   		       re_token_t *token, int token_len, re_dfa_t *dfa,
   		       reg_syntax_t syntax, int accept_hyphen)
   {
@@ -5401,7 +5402,7 @@ Index: git/posix/regcomp.c
     int cur_char_size;
     cur_char_size = re_string_char_size_at (regexp, re_string_cur_idx (regexp));
     if (cur_char_size > 1)
-@@ -3336,7 +3362,7 @@
+@@ -3336,7 +3362,7 @@ parse_bracket_element (bracket_elem_t *e
         re_string_skip_bytes (regexp, cur_char_size);
         return REG_NOERROR;
       }
@@ -5410,7 +5411,7 @@ Index: git/posix/regcomp.c
     re_string_skip_bytes (regexp, token_len); /* Skip a token.  */
     if (token->type == OP_OPEN_COLL_ELEM || token->type == OP_OPEN_CHAR_CLASS
         || token->type == OP_OPEN_EQUIV_CLASS)
-@@ -3416,7 +3442,9 @@
+@@ -3416,7 +3442,9 @@ build_equiv_class (bitset_t sbcset, re_c
   build_equiv_class (bitset_t sbcset, const unsigned char *name)
   #endif /* not RE_ENABLE_I18N */
   {
@@ -5421,7 +5422,7 @@ Index: git/posix/regcomp.c
     uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
     if (nrules != 0)
       {
-@@ -3488,7 +3516,7 @@
+@@ -3488,7 +3516,7 @@ build_equiv_class (bitset_t sbcset, cons
         mbcset->equiv_classes[mbcset->nequiv_classes++] = idx1;
       }
     else
@@ -5430,7 +5431,7 @@ Index: git/posix/regcomp.c
       {
         if (BE (strlen ((const char *) name) != 1, 0))
   	return REG_ECOLLATE;
-@@ -3522,7 +3550,7 @@
+@@ -3522,7 +3550,7 @@ build_charclass (RE_TRANSLATE_TYPE trans
         && (strcmp (name, "upper") == 0 || strcmp (name, "lower") == 0))
       name = "alpha";
 
@@ -5439,7 +5440,7 @@ Index: git/posix/regcomp.c
     /* Check the space of the arrays.  */
     if (BE (*char_class_alloc == mbcset->nchar_classes, 0))
       {
-@@ -3538,7 +3566,7 @@
+@@ -3538,7 +3566,7 @@ build_charclass (RE_TRANSLATE_TYPE trans
         *char_class_alloc = new_char_class_alloc;
       }
     mbcset->char_classes[mbcset->nchar_classes++] = __wctype (name);
@@ -5448,7 +5449,7 @@ Index: git/posix/regcomp.c
 
   #define BUILD_CHARCLASS_LOOP(ctype_func)	\
     do {						\
-@@ -3649,7 +3677,7 @@
+@@ -3649,7 +3677,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TR
 
   #ifdef RE_ENABLE_I18N
     /* Ensure only single byte characters are set.  */
@@ -5457,7 +5458,7 @@ Index: git/posix/regcomp.c
       bitset_mask (sbcset, dfa->sb_char);
   #endif
 
-@@ -3661,7 +3689,7 @@
+@@ -3661,7 +3689,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TR
       goto build_word_op_espace;
 
   #ifdef RE_ENABLE_I18N
@@ -5468,8 +5469,8 @@ Index: git/posix/regcomp.c
         /* Build a tree for complex bracket.  */
  Index: git/posix/regexec.c
  ===================================================================
---- git.orig/posix/regexec.c	2014-08-29 20:00:53.268070587 -0700
-+++ git/posix/regexec.c	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regexec.c
++++ git/posix/regexec.c
  @@ -18,6 +18,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -5478,7 +5479,7 @@ Index: git/posix/regexec.c
 
   static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags,
   				     int n) internal_function;
-@@ -186,11 +187,11 @@
+@@ -186,11 +187,11 @@ static int build_trtable (const re_dfa_t
   static int check_node_accept_bytes (const re_dfa_t *dfa, int node_idx,
   				    const re_string_t *input, int idx)
        internal_function;
@@ -5492,7 +5493,7 @@ Index: git/posix/regexec.c
   #endif /* RE_ENABLE_I18N */
   static int group_nodes_into_DFAstates (const re_dfa_t *dfa,
   				       const re_dfastate_t *state,
-@@ -255,25 +256,9 @@
+@@ -255,25 +256,9 @@ regexec (preg, string, nmatch, pmatch, e
     return err != REG_NOERROR;
   }
 
@@ -5521,7 +5522,7 @@ Index: git/posix/regexec.c
 
   /* Entry points for GNU code.  */
 
-@@ -728,7 +713,7 @@
+@@ -728,7 +713,7 @@ re_search_internal (preg, string, length
     incr = (range < 0) ? -1 : 1;
     left_lim = (range < 0) ? start + range : start;
     right_lim = (range < 0) ? start : start + range;
@@ -5530,7 +5531,7 @@ Index: git/posix/regexec.c
     match_kind =
       (fastmap
        ? ((sb || !(preg->syntax & RE_ICASE || t) ? 4 : 0)
-@@ -3448,7 +3433,7 @@
+@@ -3448,7 +3433,7 @@ out_free:
   	  if (BE (dest_states_word[i] == NULL && err != REG_NOERROR, 0))
   	    goto out_free;
 
@@ -5539,7 +5540,7 @@ Index: git/posix/regexec.c
   	    need_word_trtable = 1;
 
   	  dest_states_nl[i] = re_acquire_state_context (&err, dfa, &follows,
-@@ -3590,7 +3575,7 @@
+@@ -3590,7 +3575,7 @@ group_nodes_into_DFAstates (const re_dfa
         else if (type == OP_PERIOD)
   	{
   #ifdef RE_ENABLE_I18N
@@ -5548,7 +5549,7 @@ Index: git/posix/regexec.c
   	    bitset_merge (accepts, dfa->sb_char);
   	  else
   #endif
-@@ -3641,7 +3626,7 @@
+@@ -3641,7 +3626,7 @@ group_nodes_into_DFAstates (const re_dfa
   		  continue;
   		}
   #ifdef RE_ENABLE_I18N
@@ -5557,7 +5558,7 @@ Index: git/posix/regexec.c
   		for (j = 0; j < BITSET_WORDS; ++j)
   		  any_set |= (accepts[j] &= (dfa->word_char[j] | ~dfa->sb_char[j]));
   	      else
-@@ -3660,7 +3645,7 @@
+@@ -3660,7 +3645,7 @@ group_nodes_into_DFAstates (const re_dfa
   		  continue;
   		}
   #ifdef RE_ENABLE_I18N
@@ -5566,7 +5567,7 @@ Index: git/posix/regexec.c
   		for (j = 0; j < BITSET_WORDS; ++j)
   		  any_set |= (accepts[j] &= ~(dfa->word_char[j] & dfa->sb_char[j]));
   	      else
-@@ -3832,12 +3817,6 @@
+@@ -3832,12 +3817,6 @@ check_node_accept_bytes (const re_dfa_t
     if (node->type == COMPLEX_BRACKET)
       {
         const re_charset_t *cset = node->opr.mbcset;
@@ -5579,7 +5580,7 @@ Index: git/posix/regexec.c
         int match_len = 0;
         wchar_t wc = ((cset->nranges || cset->nchar_classes || cset->nmbchars)
   		    ? re_string_wchar_at (input, str_idx) : 0);
-@@ -3849,6 +3828,7 @@
+@@ -3849,6 +3828,7 @@ check_node_accept_bytes (const re_dfa_t
   	    match_len = char_len;
   	    goto check_node_accept_bytes_match;
   	  }
@@ -5587,7 +5588,7 @@ Index: git/posix/regexec.c
         /* match with character_class?  */
         for (i = 0; i < cset->nchar_classes; ++i)
   	{
-@@ -3859,8 +3839,16 @@
+@@ -3859,8 +3839,16 @@ check_node_accept_bytes (const re_dfa_t
   	      goto check_node_accept_bytes_match;
   	    }
   	}
@@ -5605,7 +5606,7 @@ Index: git/posix/regexec.c
         nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
         if (nrules != 0)
   	{
-@@ -3953,8 +3941,12 @@
+@@ -3953,8 +3941,12 @@ check_node_accept_bytes (const re_dfa_t
   	    }
   	}
         else
@@ -5619,7 +5620,7 @@ Index: git/posix/regexec.c
   	  /* match with range expression?  */
   #if __GNUC__ >= 2
   	  wchar_t cmp_buf[] = {L'\0', L'\0', wc, L'\0', L'\0', L'\0'};
-@@ -3973,6 +3965,7 @@
+@@ -3973,6 +3965,7 @@ check_node_accept_bytes (const re_dfa_t
   		  goto check_node_accept_bytes_match;
   		}
   	    }
@@ -5627,7 +5628,7 @@ Index: git/posix/regexec.c
   	}
       check_node_accept_bytes_match:
         if (!cset->non_match)
-@@ -3988,7 +3981,7 @@
+@@ -3988,7 +3981,7 @@ check_node_accept_bytes (const re_dfa_t
     return 0;
   }
 
@@ -5636,7 +5637,7 @@ Index: git/posix/regexec.c
   static unsigned int
   internal_function
   find_collation_sequence_value (const unsigned char *mbs, size_t mbs_len)
-@@ -4046,7 +4039,7 @@
+@@ -4046,7 +4039,7 @@ find_collation_sequence_value (const uns
         return UINT_MAX;
       }
   }
@@ -5645,7 +5646,7 @@ Index: git/posix/regexec.c
   #endif /* RE_ENABLE_I18N */
 
   /* Check whether the node accepts the byte which is IDX-th
-@@ -4137,7 +4130,7 @@
+@@ -4137,7 +4130,7 @@ extend_buffers (re_match_context_t *mctx
     if (pstr->icase)
       {
   #ifdef RE_ENABLE_I18N
@@ -5654,7 +5655,7 @@ Index: git/posix/regexec.c
   	{
   	  ret = build_wcs_upper_buffer (pstr);
   	  if (BE (ret != REG_NOERROR, 0))
-@@ -4150,7 +4143,7 @@
+@@ -4150,7 +4143,7 @@ extend_buffers (re_match_context_t *mctx
     else
       {
   #ifdef RE_ENABLE_I18N
@@ -5665,8 +5666,8 @@ Index: git/posix/regexec.c
   #endif /* RE_ENABLE_I18N  */
  Index: git/posix/regexec-compat.c
  ===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ git/posix/regexec-compat.c	2014-08-29 20:01:15.224070587 -0700
+--- /dev/null
++++ git/posix/regexec-compat.c
  @@ -0,0 +1,39 @@
  +/* Extended regular expression matching and search library.
  +   Copyright (C) 2008 Free Software Foundation, Inc.
@@ -5709,8 +5710,8 @@ Index: git/posix/regexec-compat.c
  +#endif
  Index: git/posix/regex.h
  ===================================================================
---- git.orig/posix/regex.h	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regex.h	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regex.h
++++ git/posix/regex.h
  @@ -21,6 +21,7 @@
   #define _REGEX_H 1
 
@@ -5719,7 +5720,7 @@ Index: git/posix/regex.h
 
   /* Allow the use in C++ code.  */
   #ifdef __cplusplus
-@@ -156,6 +157,8 @@
+@@ -156,6 +157,8 @@ typedef unsigned long int reg_syntax_t;
      treated as 'a\{1'.  */
   # define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
 
@@ -5728,7 +5729,7 @@ Index: git/posix/regex.h
   /* If this bit is set, then ignore case when matching.
      If not set, then case is significant.  */
   # define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
-@@ -172,6 +175,7 @@
+@@ -172,6 +175,7 @@ typedef unsigned long int reg_syntax_t;
   /* If this bit is set, then no_sub will be set to 1 during
      re_compile_pattern.  */
   # define RE_NO_SUB (RE_CONTEXT_INVALID_DUP << 1)
@@ -5736,7 +5737,7 @@ Index: git/posix/regex.h
   #endif
 
   /* This global variable defines the particular regexp syntax to use (for
-@@ -231,8 +235,13 @@
+@@ -231,8 +235,13 @@ extern reg_syntax_t re_syntax_options;
     (RE_CHAR_CLASSES | RE_DOT_NEWLINE      | RE_DOT_NOT_NULL		\
      | RE_INTERVALS  | RE_NO_EMPTY_RANGES)
 
@@ -5750,7 +5751,7 @@ Index: git/posix/regex.h
 
   /* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes
      RE_LIMITED_OPS, i.e., \? \+ \| are not recognized.  Actually, this
-@@ -298,9 +307,11 @@
+@@ -298,9 +307,11 @@ extern reg_syntax_t re_syntax_options;
   /* Like REG_NOTBOL, except for the end-of-line.  */
   #define REG_NOTEOL (1 << 1)
 
@@ -5764,9 +5765,9 @@ Index: git/posix/regex.h
   /* If any error codes are removed, changed, or added, update the
  Index: git/posix/regex_internal.c
  ===================================================================
---- git.orig/posix/regex_internal.c	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regex_internal.c	2014-08-29 20:01:15.224070587 -0700
-@@ -43,8 +43,8 @@
+--- git.orig/posix/regex_internal.c
++++ git/posix/regex_internal.c
+@@ -43,8 +43,8 @@ re_string_allocate (re_string_t *pstr, c
     int init_buf_len;
 
     /* Ensure at least one character fits into the buffers.  */
@@ -5777,7 +5778,7 @@ Index: git/posix/regex_internal.c
     init_buf_len = (len + 1 < init_len) ? len + 1: init_len;
     re_string_construct_common (str, len, pstr, trans, icase, dfa);
 
-@@ -55,7 +55,7 @@
+@@ -55,7 +55,7 @@ re_string_allocate (re_string_t *pstr, c
     pstr->word_char = dfa->word_char;
     pstr->word_ops_used = dfa->word_ops_used;
     pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str;
@@ -5786,7 +5787,7 @@ Index: git/posix/regex_internal.c
     pstr->valid_raw_len = pstr->valid_len;
     return REG_NOERROR;
   }
-@@ -82,7 +82,7 @@
+@@ -82,7 +82,7 @@ re_string_construct (re_string_t *pstr,
     if (icase)
       {
   #ifdef RE_ENABLE_I18N
@@ -5795,7 +5796,7 @@ Index: git/posix/regex_internal.c
   	{
   	  while (1)
   	    {
-@@ -91,7 +91,7 @@
+@@ -91,7 +91,7 @@ re_string_construct (re_string_t *pstr,
   		return ret;
   	      if (pstr->valid_raw_len >= len)
   		break;
@@ -5804,7 +5805,7 @@ Index: git/posix/regex_internal.c
   		break;
   	      ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2);
   	      if (BE (ret != REG_NOERROR, 0))
-@@ -105,7 +105,7 @@
+@@ -105,7 +105,7 @@ re_string_construct (re_string_t *pstr,
     else
       {
   #ifdef RE_ENABLE_I18N
@@ -5813,7 +5814,7 @@ Index: git/posix/regex_internal.c
   	build_wcs_buffer (pstr);
         else
   #endif /* RE_ENABLE_I18N  */
-@@ -130,7 +130,7 @@
+@@ -130,7 +130,7 @@ internal_function __attribute_warn_unuse
   re_string_realloc_buffers (re_string_t *pstr, int new_buf_len)
   {
   #ifdef RE_ENABLE_I18N
@@ -5822,7 +5823,7 @@ Index: git/posix/regex_internal.c
       {
         wint_t *new_wcs;
 
-@@ -177,7 +177,7 @@
+@@ -177,7 +177,7 @@ re_string_construct_common (const char *
     pstr->trans = trans;
     pstr->icase = icase ? 1 : 0;
     pstr->mbs_allocated = (trans != NULL || icase);
@@ -5831,7 +5832,7 @@ Index: git/posix/regex_internal.c
     pstr->is_utf8 = dfa->is_utf8;
     pstr->map_notascii = dfa->map_notascii;
     pstr->stop = pstr->len;
-@@ -203,7 +203,7 @@
+@@ -203,7 +203,7 @@ build_wcs_buffer (re_string_t *pstr)
   {
   #ifdef _LIBC
     unsigned char buf[MB_LEN_MAX];
@@ -5840,7 +5841,7 @@ Index: git/posix/regex_internal.c
   #else
     unsigned char buf[64];
   #endif
-@@ -226,7 +226,7 @@
+@@ -226,7 +226,7 @@ build_wcs_buffer (re_string_t *pstr)
   	{
   	  int i, ch;
 
@@ -5849,7 +5850,7 @@ Index: git/posix/regex_internal.c
   	    {
   	      ch = pstr->raw_mbs [pstr->raw_mbs_idx + byte_idx + i];
   	      buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch];
-@@ -275,7 +275,7 @@
+@@ -275,7 +275,7 @@ build_wcs_upper_buffer (re_string_t *pst
     size_t mbclen;
   #ifdef _LIBC
     char buf[MB_LEN_MAX];
@@ -5858,7 +5859,7 @@ Index: git/posix/regex_internal.c
   #else
     char buf[64];
   #endif
-@@ -369,7 +369,7 @@
+@@ -369,7 +369,7 @@ build_wcs_upper_buffer (re_string_t *pst
   	  {
   	    int i, ch;
 
@@ -5867,7 +5868,7 @@ Index: git/posix/regex_internal.c
   	      {
   		ch = pstr->raw_mbs [pstr->raw_mbs_idx + src_idx + i];
   		buf[i] = pstr->trans[ch];
-@@ -567,8 +567,9 @@
+@@ -567,8 +567,9 @@ re_string_translate_buffer (re_string_t
   }
 
   /* This function re-construct the buffers.
@@ -5879,7 +5880,7 @@ Index: git/posix/regex_internal.c
 
   static reg_errcode_t
   internal_function __attribute_warn_unused_result__
-@@ -579,7 +580,7 @@
+@@ -579,7 +580,7 @@ re_string_reconstruct (re_string_t *pstr
       {
         /* Reset buffer.  */
   #ifdef RE_ENABLE_I18N
@@ -5888,7 +5889,7 @@ Index: git/posix/regex_internal.c
   	memset (&pstr->cur_state, '\0', sizeof (mbstate_t));
   #endif /* RE_ENABLE_I18N */
         pstr->len = pstr->raw_len;
-@@ -670,7 +671,7 @@
+@@ -670,7 +671,7 @@ re_string_reconstruct (re_string_t *pstr
   	      pstr->tip_context = re_string_context_at (pstr, offset - 1,
   							eflags);
   #ifdef RE_ENABLE_I18N
@@ -5897,7 +5898,7 @@ Index: git/posix/regex_internal.c
   		memmove (pstr->wcs, pstr->wcs + offset,
   			 (pstr->valid_len - offset) * sizeof (wint_t));
   #endif /* RE_ENABLE_I18N */
-@@ -699,7 +700,7 @@
+@@ -699,7 +700,7 @@ re_string_reconstruct (re_string_t *pstr
   #endif
   	  pstr->valid_len = 0;
   #ifdef RE_ENABLE_I18N
@@ -5906,7 +5907,7 @@ Index: git/posix/regex_internal.c
   	    {
   	      int wcs_idx;
   	      wint_t wc = WEOF;
-@@ -711,7 +712,7 @@
+@@ -711,7 +712,7 @@ re_string_reconstruct (re_string_t *pstr
   		  /* Special case UTF-8.  Multi-byte chars start with any
   		     byte other than 0x80 - 0xbf.  */
   		  raw = pstr->raw_mbs + pstr->raw_mbs_idx;
@@ -5915,7 +5916,7 @@ Index: git/posix/regex_internal.c
   		  if (end < pstr->raw_mbs)
   		    end = pstr->raw_mbs;
   		  p = raw + offset - 1;
-@@ -803,7 +804,7 @@
+@@ -803,7 +804,7 @@ re_string_reconstruct (re_string_t *pstr
 
     /* Then build the buffers.  */
   #ifdef RE_ENABLE_I18N
@@ -5924,7 +5925,7 @@ Index: git/posix/regex_internal.c
       {
         if (pstr->icase)
   	{
-@@ -841,7 +842,7 @@
+@@ -841,7 +842,7 @@ re_string_peek_byte_case (const re_strin
       return re_string_peek_byte (pstr, idx);
 
   #ifdef RE_ENABLE_I18N
@@ -5933,7 +5934,7 @@ Index: git/posix/regex_internal.c
         && ! re_string_is_single_byte_char (pstr, pstr->cur_idx + idx))
       return re_string_peek_byte (pstr, idx);
   #endif
-@@ -930,7 +931,7 @@
+@@ -930,7 +931,7 @@ re_string_context_at (const re_string_t
       return ((eflags & REG_NOTEOL) ? CONTEXT_ENDBUF
   	    : CONTEXT_NEWLINE | CONTEXT_ENDBUF);
   #ifdef RE_ENABLE_I18N
@@ -5942,7 +5943,7 @@ Index: git/posix/regex_internal.c
       {
         wint_t wc;
         int wc_idx = idx;
-@@ -1444,7 +1445,7 @@
+@@ -1444,7 +1445,7 @@ re_dfa_add_node (re_dfa_t *dfa, re_token
     dfa->nodes[dfa->nodes_len].constraint = 0;
   #ifdef RE_ENABLE_I18N
     dfa->nodes[dfa->nodes_len].accept_mb =
@@ -5953,8 +5954,8 @@ Index: git/posix/regex_internal.c
     re_node_set_init_empty (dfa->edests + dfa->nodes_len);
  Index: git/posix/regex_internal.h
  ===================================================================
---- git.orig/posix/regex_internal.h	2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regex_internal.h	2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regex_internal.h
++++ git/posix/regex_internal.h
  @@ -26,6 +26,10 @@
   #include <stdlib.h>
   #include <string.h>
@@ -5966,7 +5967,7 @@ Index: git/posix/regex_internal.h
   #if defined HAVE_LANGINFO_H || defined HAVE_LANGINFO_CODESET || defined _LIBC
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

meta/recipes-core/glibc/glibc_2.20.bb +3 -0
index 9dd5e67..f67fbfd 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#3 lore raw

Re: [PATCH 3/5] security_flags: disable pie support for libaio, blktrace and ltp

In reply to Saul Wold

Do we need this for Dizzy?

- armin

Quoted 37 lines · Saul Wold

libaio when built with pie and fpie does not link correctly with blktrace or ltp so we need to disable those flags until a better solution comes along.

---
  meta/conf/distro/include/security_flags.inc | 3 +++
  1 file changed, 3 insertions(+)
meta/conf/distro/include/security_flags.inc +3 -0
index 840f68a..d6f7e9c 100644
@@ -16,6 +16,7 @@ SECURITY_CFLAGS_pn-lttng-tools_arm = "${SECURITY_NO_PIE_CFLAGS}"
 
  SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-blktrace = "${SECURITY_NO_PIE_CFLAGS}"
  # Curl seems to check for FORTIFY_SOURCE in CFLAGS, but even assigned
  # to CPPFLAGS it gets picked into CFLAGS in bitbake.
  #TARGET_CPPFLAGS_pn-curl += "-D_FORTIFY_SOURCE=2"
@@ -43,6 +44,7 @@ SECURITY_CFLAGS_pn-gst-plugins-gl = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-gstreamer1.0-plugins-good = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-harfbuzz = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-kexec-tools = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libaio = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
@@ -51,6 +53,7 @@ SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libpcap = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libpcre = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libproxy = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-lttng-ust = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-mesa = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-mesa-gl = "${SECURITY_NO_PIE_CFLAGS}"
author
#4 lore raw

Re: [PATCH 3/5] security_flags: disable pie support for libaio, blktrace and ltp

Quoted 2 lines · On 01/14/2015 10:55 AM, akuster808 wrote:

Do we need this for Dizzy?

No this is not needed for dizzy, this is something that happened after I updated libaio, so it's just affects the new libaio with blktrace and ltp.

Sau!

Quoted 45 lines

- armin

Quoted 42 lines · Saul Wold

libaio when built with pie and fpie does not link correctly with blktrace or ltp
so we need to disable those flags until a better solution comes along.

---
  meta/conf/distro/include/security_flags.inc | 3 +++
  1 file changed, 3 insertions(+)
meta/conf/distro/include/security_flags.inc +0 -0
index 840f68a..d6f7e9c 100644
@@ -16,6 +16,7 @@ SECURITY_CFLAGS_pn-lttng-tools_arm =

"${SECURITY_NO_PIE_CFLAGS}"

  SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}"
meta/conf/distro/include/security_flags.inc +1 -0
+SECURITY_CFLAGS_pn-blktrace = "${SECURITY_NO_PIE_CFLAGS}"
  # Curl seems to check for FORTIFY_SOURCE in CFLAGS, but even assigned
  # to CPPFLAGS it gets picked into CFLAGS in bitbake.
  #TARGET_CPPFLAGS_pn-curl += "-D_FORTIFY_SOURCE=2"
@@ -43,6 +44,7 @@ SECURITY_CFLAGS_pn-gst-plugins-gl =

"${SECURITY_NO_PIE_CFLAGS}"
SECURITY_CFLAGS_pn-gstreamer1.0-plugins-good =
"${SECURITY_NO_PIE_CFLAGS}"
SECURITY_CFLAGS_pn-harfbuzz = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_CFLAGS_pn-kexec-tools = "${SECURITY_NO_PIE_CFLAGS}"

meta/conf/distro/include/security_flags.inc +2 -0
+SECURITY_CFLAGS_pn-libaio = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
@@ -51,6 +53,7 @@ SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libpcap = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libpcre = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-libproxy = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-lttng-ust = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-mesa = "${SECURITY_NO_PIE_CFLAGS}"
  SECURITY_CFLAGS_pn-mesa-gl = "${SECURITY_NO_PIE_CFLAGS}"
author
#9 lore raw

Re: [PATCH 5/5] glibc: Fix up minimal build with libc-libm

In reply to akuster808
Quoted 3 lines · On 01/14/2015 10:54 AM, akuster808 wrote:

is this needed for dizzy?

Yes, I think this would benefit dizzy, please back port it.

Sau!

Quoted 5,211 lines · Saul Wold
Quoted 5,209 lines

This addresses 2 issues discovered trying to build a minimal libc with libm option. By default nscd was always being built and without inet enabled there were missing symbols.

The patch got updated changing initgroups to become part of the INET group. Newer version of quilt added function information.

[YOCTO #7108]

---
  .../glibc/glibc/eglibc-use-option-groups.patch     | 1379
++++++++++----------
  meta/recipes-core/glibc/glibc_2.20.bb              |    3 +
  2 files changed, 693 insertions(+), 689 deletions(-)

diff --git a/meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch b/meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch index 7136253..7be9b06 100644

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +20 -21
@@ -4,8 +4,8 @@ Upstream-Status: Pending
 
  Index: git/argp/argp-fmtstream.c
  ===================================================================
---- git.orig/argp/argp-fmtstream.c    2014-08-29 20:00:42.976070587
-0700
-+++ git/argp/argp-fmtstream.c    2014-08-29 20:01:15.188070587 -0700
+--- git.orig/argp/argp-fmtstream.c
++++ git/argp/argp-fmtstream.c
  @@ -42,6 +42,7 @@
   #ifdef _LIBC
   # include <wchar.h>
@@ -14,7 +14,7 @@ Index: git/argp/argp-fmtstream.c
   # define __vsnprintf(s, l, f, a) _IO_vsnprintf (s, l, f, a)
   #endif
 
-@@ -100,7 +101,11 @@
+@@ -100,7 +101,11 @@ __argp_fmtstream_free (argp_fmtstream_t
     __argp_fmtstream_update (fs);
     if (fs->p > fs->buf)
       {
@@ -26,7 +26,7 @@ Index: git/argp/argp-fmtstream.c
       }
     free (fs->buf);
     free (fs);
-@@ -145,9 +150,17 @@
+@@ -145,9 +150,17 @@ __argp_fmtstream_update (argp_fmtstream_
             size_t i;
             for (i = 0; i < pad; i++)
           {
@@ -45,7 +45,7 @@ Index: git/argp/argp-fmtstream.c
               putc_unlocked (' ', fs->stream);
           }
           }
-@@ -308,9 +321,17 @@
+@@ -308,9 +321,17 @@ __argp_fmtstream_update (argp_fmtstream_
             *nl++ = ' ';
         else
           for (i = 0; i < fs->wmargin; ++i)
@@ -66,9 +66,9 @@ Index: git/argp/argp-fmtstream.c
         /* Copy the tail of the original buffer into the current buffer
  Index: git/argp/argp-help.c
  ===================================================================
---- git.orig/argp/argp-help.c    2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-help.c    2014-08-29 20:01:15.188070587 -0700
-@@ -51,6 +51,7 @@
+--- git.orig/argp/argp-help.c
++++ git/argp/argp-help.c
+@@ -51,6 +51,7 @@ char *alloca ();
   #ifdef _LIBC
   # include <../libio/libioP.h>
   # include <wchar.h>
@@ -76,7 +76,7 @@ Index: git/argp/argp-help.c
   #endif
 
   #ifndef _
-@@ -1702,7 +1703,7 @@
+@@ -1702,7 +1703,7 @@ char *__argp_basename (char *name)
   }
 
   char *
@@ -85,7 +85,7 @@ Index: git/argp/argp-help.c
   {
   # if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
     return program_invocation_short_name;
-@@ -1873,9 +1874,17 @@
+@@ -1873,9 +1874,17 @@ __argp_failure (const struct argp_state
   #endif
           }
 
@@ -106,8 +106,8 @@ Index: git/argp/argp-help.c
   #if _LIBC || (HAVE_FLOCKFILE && HAVE_FUNLOCKFILE)
  Index: git/argp/argp-namefrob.h
  ===================================================================
---- git.orig/argp/argp-namefrob.h    2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-namefrob.h    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/argp/argp-namefrob.h
++++ git/argp/argp-namefrob.h
  @@ -76,10 +76,12 @@
   #undef __argp_fmtstream_wmargin
   #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
@@ -123,8 +123,8 @@ Index: git/argp/argp-namefrob.h
   #undef __flockfile
  Index: git/argp/Makefile
  ===================================================================
---- git.orig/argp/Makefile    2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/Makefile    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/argp/Makefile
++++ git/argp/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Makefile for argp.
@@ -136,9 +136,9 @@ Index: git/argp/Makefile
   include ../Makeconfig
  Index: git/catgets/Makefile
  ===================================================================
---- git.orig/catgets/Makefile    2014-08-29 20:00:43.008070587 -0700
-+++ git/catgets/Makefile    2014-08-29 20:01:15.192070587 -0700
-@@ -22,20 +22,23 @@
+--- git.orig/catgets/Makefile
++++ git/catgets/Makefile
+@@ -22,20 +22,23 @@ subdir    := catgets
 
   include ../Makeconfig
 
@@ -171,8 +171,8 @@ Index: git/catgets/Makefile
   # To find xmalloc.c
  Index: git/crypt/crypt-entry.c
  ===================================================================
---- git.orig/crypt/crypt-entry.c    2014-08-29 20:00:43.028070587 -0700
-+++ git/crypt/crypt-entry.c    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/crypt/crypt-entry.c
++++ git/crypt/crypt-entry.c
  @@ -27,6 +27,7 @@
   #include <stdio.h>
   #endif
@@ -181,7 +181,7 @@ Index: git/crypt/crypt-entry.c
   #include <errno.h>
   #include <fips-private.h>
 
-@@ -76,9 +77,11 @@
+@@ -76,9 +77,11 @@ __crypt_r (key, salt, data)
        const char *salt;
        struct crypt_data * __restrict data;
   {
@@ -193,7 +193,7 @@ Index: git/crypt/crypt-entry.c
 
   #ifdef _LIBC
     /* Try to find out whether we have to use MD5 encryption

replacement. */
-@@ -105,6 +108,7 @@
+@@ -105,6 +108,7 @@ __crypt_r (key, salt, data)

                    sizeof (struct crypt_data));

#endif

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +15 -15
@@ -201,7 +201,7 @@ Index: git/crypt/crypt-entry.c
     /*
      * Hack DES tables according to salt
      */
-@@ -144,6 +148,10 @@
+@@ -144,6 +148,10 @@ __crypt_r (key, salt, data)
      */
     _ufc_output_conversion_r (res[0], res[1], salt, data);
     return data->crypt_3_buf;
@@ -212,7 +212,7 @@ Index: git/crypt/crypt-entry.c
   }
   weak_alias (__crypt_r, crypt_r)
 
-@@ -168,7 +176,12 @@
+@@ -168,7 +176,12 @@ crypt (key, salt)
       return __sha512_crypt (key, salt);
   #endif
 
@@ -227,8 +227,8 @@ Index: git/crypt/crypt-entry.c
 
  Index: git/crypt/Makefile
  ===================================================================
---- git.orig/crypt/Makefile    2014-08-29 20:00:43.024070587 -0700
-+++ git/crypt/Makefile    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/crypt/Makefile
++++ git/crypt/Makefile
  @@ -18,21 +18,25 @@
   #
   #    Sub-makefile for crypt() portion of the library.
@@ -261,7 +261,7 @@ Index: git/crypt/Makefile
   routines += $(libcrypt-routines)
   endif
 
-@@ -44,7 +48,7 @@
+@@ -44,7 +48,7 @@ LDLIBS-crypt.so = -lfreebl3
   else
   libcrypt-routines += md5 sha256 sha512
 
@@ -270,7 +270,7 @@ Index: git/crypt/Makefile
 
   # The test md5test-giant uses up to 400 MB of RSS and runs on a fast
   # machine over a minute.
-@@ -64,8 +68,10 @@
+@@ -64,8 +68,10 @@ $(objpfx)sha256test: $(patsubst %, $(obj
   $(objpfx)sha512test: $(patsubst %, $(objpfx)%.o,$(sha512-routines))
   endif
 
@@ -283,8 +283,8 @@ Index: git/crypt/Makefile
  +endif # eglibc: OPTION_EGLIBC_CRYPT
  Index: git/csu/Makefile
  ===================================================================
---- git.orig/csu/Makefile    2014-08-29 20:00:43.032070587 -0700
-+++ git/csu/Makefile    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/csu/Makefile
++++ git/csu/Makefile
  @@ -22,6 +22,8 @@
   # crtn.o, special "initializer" and "finalizer" files used in the link
   # to make the .init and .fini sections work right.
@@ -296,8 +296,8 @@ Index: git/csu/Makefile
   include ../Makeconfig
  Index: git/debug/Makefile
  ===================================================================
---- git.orig/debug/Makefile    2014-08-29 20:00:43.036070587 -0700
-+++ git/debug/Makefile    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/Makefile
++++ git/debug/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for debug portion of the library.
@@ -307,7 +307,7 @@ Index: git/debug/Makefile
   subdir    := debug
 
   include ../Makeconfig
-@@ -27,7 +29,7 @@
+@@ -27,7 +29,7 @@ headers    := execinfo.h
   # Note that ptsname_r_chk and getlogin_r are not here, but in
   # login/Makefile instead.  If that subdir is omitted from the
   # build, its _FORTIFY_SOURCE support will be too.
@@ -316,7 +316,7 @@ Index: git/debug/Makefile
           memcpy_chk memmove_chk mempcpy_chk memset_chk stpcpy_chk \
           strcat_chk strcpy_chk strncat_chk strncpy_chk stpncpy_chk \
           sprintf_chk vsprintf_chk snprintf_chk vsnprintf_chk \
-@@ -36,20 +38,27 @@
+@@ -36,20 +38,27 @@ routines  = backtrace backtracesyms back
           read_chk pread_chk pread64_chk recv_chk recvfrom_chk \
           readlink_chk readlinkat_chk getwd_chk getcwd_chk \
           realpath_chk fread_chk fread_u_chk \
@@ -352,7 +352,7 @@ Index: git/debug/Makefile
   static-only-routines := warning-nop stack_chk_fail_local
 
   CFLAGS-backtrace.c = -fno-omit-frame-pointer
-@@ -129,11 +138,15 @@
+@@ -129,11 +138,15 @@ LDFLAGS-tst-backtrace4 = -rdynamic
   LDFLAGS-tst-backtrace5 = -rdynamic
   LDFLAGS-tst-backtrace6 = -rdynamic
 
@@ -375,8 +375,8 @@ Index: git/debug/Makefile
   tests += $(tests-ifunc)
  Index: git/debug/segfault.c
  ===================================================================
---- git.orig/debug/segfault.c    2014-08-29 20:00:46.280070587 -0700
-+++ git/debug/segfault.c    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/segfault.c
++++ git/debug/segfault.c
  @@ -30,6 +30,7 @@
   #include <unistd.h>
   #include <_itoa.h>
@@ -385,7 +385,7 @@ Index: git/debug/segfault.c
 
   /* This file defines macros to access the content of the sigcontext

element
passed up by the signal handler. */
-@@ -91,6 +92,7 @@
+@@ -91,6 +92,7 @@ catch_segfault (int signal, SIGCONTEXT c

     REGISTER_DUMP;

#endif

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +6 -6
@@ -393,7 +393,7 @@ Index: git/debug/segfault.c
     WRITE_STRING ("\nBacktrace:\n");
 
     /* Get the backtrace.  */
-@@ -113,6 +115,7 @@
+@@ -113,6 +115,7 @@ catch_segfault (int signal, SIGCONTEXT c
 
     /* Now generate nicely formatted output.  */
     __backtrace_symbols_fd (arr + i, cnt - i, fd);
@@ -403,8 +403,8 @@ Index: git/debug/segfault.c
     /* Now the link map.  */
  Index: git/debug/tst-chk1.c
  ===================================================================
---- git.orig/debug/tst-chk1.c    2014-08-29 20:00:46.288070587 -0700
-+++ git/debug/tst-chk1.c    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/debug/tst-chk1.c
++++ git/debug/tst-chk1.c
  @@ -31,6 +31,7 @@
   #include <sys/select.h>
   #include <sys/socket.h>
@@ -413,7 +413,7 @@ Index: git/debug/tst-chk1.c
 
 
   #define obstack_chunk_alloc malloc
-@@ -307,6 +308,7 @@
+@@ -307,6 +308,7 @@ do_test (void)
     snprintf (buf + 8, l0 + 3, "%d", num2);
     CHK_FAIL_END
 
@@ -421,7 +421,7 @@ Index: git/debug/tst-chk1.c
     CHK_FAIL_START
     swprintf (wbuf + 8, 3, L"%d", num1);
     CHK_FAIL_END
-@@ -314,6 +316,7 @@
+@@ -314,6 +316,7 @@ do_test (void)
     CHK_FAIL_START
     swprintf (wbuf + 8, l0 + 3, L"%d", num1);
     CHK_FAIL_END
@@ -429,7 +429,7 @@ Index: git/debug/tst-chk1.c
   # endif
 
     memcpy (buf, str1 + 2, l0 + 9);
-@@ -381,6 +384,7 @@
+@@ -381,6 +384,7 @@ do_test (void)
     CHK_FAIL_END
   #endif
 
@@ -437,7 +437,7 @@ Index: git/debug/tst-chk1.c
 
     /* These ops can be done without runtime checking of object

size. */

     wmemcpy (wbuf, L"abcdefghij", 10);

-@@ -605,6 +609,7 @@
+@@ -605,6 +609,7 @@ do_test (void)
CHK_FAIL_END
#endif

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +7 -7
@@ -445,7 +445,7 @@ Index: git/debug/tst-chk1.c
 
     /* Now checks for %n protection.  */
 
-@@ -1192,6 +1197,7 @@
+@@ -1192,6 +1197,7 @@ do_test (void)
   # endif
   #endif
 
@@ -453,7 +453,7 @@ Index: git/debug/tst-chk1.c
     if (setlocale (LC_ALL, "de_DE.UTF-8") != NULL)
       {
         assert (MB_CUR_MAX <= 10);
-@@ -1348,6 +1354,7 @@
+@@ -1348,6 +1354,7 @@ do_test (void)
         puts ("cannot set locale");
         ret = 1;
       }
@@ -463,8 +463,8 @@ Index: git/debug/tst-chk1.c
     if (fd != -1)
  Index: git/dlfcn/Makefile
  ===================================================================
---- git.orig/dlfcn/Makefile    2014-08-29 20:00:46.312070587 -0700
-+++ git/dlfcn/Makefile    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/dlfcn/Makefile
++++ git/dlfcn/Makefile
  @@ -15,6 +15,8 @@
   # License along with the GNU C Library; if not, see
   # <http://www.gnu.org/licenses/>.
@@ -474,7 +474,7 @@ Index: git/dlfcn/Makefile
   subdir        := dlfcn
 
   include ../Makeconfig
-@@ -36,7 +38,9 @@
+@@ -36,7 +38,9 @@ endif
   ifeq (yes,$(build-shared))
   tests = glrefmain failtest tst-dladdr default errmsg1 tstcxaatexit \
       bug-dlopen1 bug-dlsym1 tst-dlinfo bug-atexit1 bug-atexit2 \
@@ -487,8 +487,8 @@ Index: git/dlfcn/Makefile
           defaultmod2 errmsg1mod modatexit modcxaatexit \
  Index: git/elf/dl-support.c
  ===================================================================
---- git.orig/elf/dl-support.c    2014-08-29 20:00:46.384070587 -0700
-+++ git/elf/dl-support.c    2014-08-29 20:01:15.192070587 -0700
+--- git.orig/elf/dl-support.c
++++ git/elf/dl-support.c
  @@ -19,6 +19,7 @@
   /* This file defines some things that for the dynamic linker are

defined in
rtld.c and dl-sysdep.c in ways appropriate to bootstrap dynamic
linking. */

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +12 -12
@@ -497,7 +497,7 @@ Index: git/elf/dl-support.c
   #include <errno.h>
   #include <libintl.h>
   #include <stdlib.h>
-@@ -42,7 +43,9 @@
+@@ -42,7 +43,9 @@ char **_dl_argv = &__progname;    /* This i
   const char *_dl_platform;
   size_t _dl_platformlen;
 
@@ -509,8 +509,8 @@ Index: git/elf/dl-support.c
   int _dl_dynamic_weak;
  Index: git/elf/rtld.c
  ===================================================================
---- git.orig/elf/rtld.c    2014-08-29 20:01:14.708070587 -0700
-+++ git/elf/rtld.c    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/elf/rtld.c
++++ git/elf/rtld.c
  @@ -16,6 +16,7 @@
      License along with the GNU C Library; if not, see
      <http://www.gnu.org/licenses/>.  */
@@ -519,7 +519,7 @@ Index: git/elf/rtld.c
   #include <errno.h>
   #include <dlfcn.h>
   #include <fcntl.h>
-@@ -2200,6 +2201,7 @@
+@@ -2200,6 +2201,7 @@ print_missing_version (int errcode __att
               objname, errstring);
   }
   
@@ -527,7 +527,7 @@ Index: git/elf/rtld.c
   /* Nonzero if any of the debugging options is enabled.  */
   static int any_debug attribute_relro;
 
-@@ -2309,6 +2311,7 @@
+@@ -2309,6 +2311,7 @@ a filename can be specified using the LD
         _exit (0);
       }
   }
@@ -535,7 +535,7 @@ Index: git/elf/rtld.c
   
   static void
   process_dl_audit (char *str)
-@@ -2376,12 +2379,14 @@
+@@ -2376,12 +2379,14 @@ process_envvars (enum mode *modep)
         break;
 
       case 5:
@@ -550,7 +550,7 @@ Index: git/elf/rtld.c
         if (memcmp (envline, "AUDIT", 5) == 0)
           process_dl_audit (&envline[6]);
         break;
-@@ -2490,7 +2495,9 @@
+@@ -2490,7 +2495,9 @@ process_envvars (enum mode *modep)
           {
             mode = trace;
             GLRO(dl_verbose) = 1;
@@ -560,7 +560,7 @@ Index: git/elf/rtld.c
             GLRO(dl_trace_prelink) = &envline[17];
           }
         break;
-@@ -2537,12 +2544,15 @@
+@@ -2537,12 +2544,15 @@ process_envvars (enum mode *modep)
         if (__access ("/etc/suid-debug", F_OK) != 0)
       {
         unsetenv ("MALLOC_CHECK_");
@@ -576,7 +576,7 @@ Index: git/elf/rtld.c
     /* If we have to run the dynamic linker in debugging mode and the
        LD_DEBUG_OUTPUT environment variable is given, we write the debug
        messages to this file.  */
-@@ -2567,6 +2577,7 @@
+@@ -2567,6 +2577,7 @@ process_envvars (enum mode *modep)
       /* We use standard output if opening the file failed.  */
       GLRO(dl_debug_fd) = STDOUT_FILENO;
       }
@@ -586,9 +586,9 @@ Index: git/elf/rtld.c
 
  Index: git/extra-lib.mk
  ===================================================================
---- git.orig/extra-lib.mk    2014-08-29 20:00:46.544070587 -0700
-+++ git/extra-lib.mk    2014-08-29 20:01:15.196070587 -0700
-@@ -25,7 +25,9 @@
+--- git.orig/extra-lib.mk
++++ git/extra-lib.mk
+@@ -25,7 +25,9 @@ install-lib := $(install-lib)
   extra-objs := $(extra-objs)
 
   # The modules that go in $(lib).
@@ -599,7 +599,7 @@ Index: git/extra-lib.mk
 
   # Add each flavor of library to the lists of things to build and

install.
install-lib += $(foreach
o,$(object-suffixes-$(lib)),$(lib:lib%=$(libtype$o))) -@@ -101,7 +103,7 @@
+@@ -101,7 +103,7 @@ endif
endif

# This will define `libof-ROUTINE := LIB' for each of the routines.

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +14 -14
@@ -610,8 +610,8 @@ Index: git/extra-lib.mk
   endif
  Index: git/grp/Makefile
  ===================================================================
---- git.orig/grp/Makefile    2014-08-29 20:00:46.556070587 -0700
-+++ git/grp/Makefile    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/grp/Makefile
++++ git/grp/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for grp portion of the library.
@@ -621,7 +621,7 @@ Index: git/grp/Makefile
   subdir    := grp
 
   include ../Makeconfig
-@@ -29,6 +31,9 @@
+@@ -29,6 +31,9 @@ routines := fgetgrent initgroups setgrou
           getgrent_r getgrgid_r getgrnam_r fgetgrent_r
 
   tests := testgrp
@@ -633,8 +633,8 @@ Index: git/grp/Makefile
   test-srcs :=  tst_fgetgrent
  Index: git/hesiod/Makefile
  ===================================================================
---- git.orig/hesiod/Makefile    2014-08-29 20:00:46.580070587 -0700
-+++ git/hesiod/Makefile    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/hesiod/Makefile
++++ git/hesiod/Makefile
  @@ -18,12 +18,14 @@
   #
   #    Sub-makefile for hesiod portion of the library.
@@ -654,8 +654,8 @@ Index: git/hesiod/Makefile
   vpath %.c nss_hesiod
  Index: git/iconv/gconv_db.c
  ===================================================================
---- git.orig/iconv/gconv_db.c    2014-08-29 20:00:46.604070587 -0700
-+++ git/iconv/gconv_db.c    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/gconv_db.c
++++ git/iconv/gconv_db.c
  @@ -25,6 +25,7 @@
   #include <sys/param.h>
   #include <bits/libc-lock.h>
@@ -664,7 +664,7 @@ Index: git/iconv/gconv_db.c
 
   #include <dlfcn.h>
   #include <gconv_int.h>
-@@ -828,9 +829,11 @@
+@@ -828,9 +829,11 @@ free_modules_db (struct gconv_module *no
   /* Free all resources if necessary.  */
   libc_freeres_fn (free_mem)
   {
@@ -678,8 +678,8 @@ Index: git/iconv/gconv_db.c
     extern void _nl_finddomain_subfreeres (void) attribute_hidden;
  Index: git/iconv/gconv_trans.c
  ===================================================================
---- git.orig/iconv/gconv_trans.c    2014-08-29 20:00:46.612070587 -0700
-+++ git/iconv/gconv_trans.c    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/gconv_trans.c
++++ git/iconv/gconv_trans.c
  @@ -23,6 +23,7 @@
   #include <stdint.h>
   #include <string.h>
@@ -688,7 +688,7 @@ Index: git/iconv/gconv_trans.c
 
   #include <bits/libc-lock.h>
   #include "gconv_int.h"
-@@ -59,6 +60,7 @@
+@@ -59,6 +60,7 @@ __gconv_transliterate (struct __gconv_st
       PTR_DEMANGLE (fct);
   #endif
 
@@ -696,7 +696,7 @@ Index: git/iconv/gconv_trans.c
     /* If there is no transliteration information in the locale don't do
        anything and return the error.  */
     size = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_TRANSLIT_TAB_SIZE);
-@@ -194,6 +196,7 @@
+@@ -194,6 +196,7 @@ __gconv_transliterate (struct __gconv_st
                sorted.  */
         break;
       }
@@ -706,8 +706,8 @@ Index: git/iconv/gconv_trans.c
     if (_NL_CURRENT_WORD (LC_CTYPE,
 _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN) != 0)
  Index: git/iconv/iconv_prog.c
  ===================================================================
---- git.orig/iconv/iconv_prog.c    2014-08-29 20:00:46.612070587 -0700
-+++ git/iconv/iconv_prog.c    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/iconv_prog.c
++++ git/iconv/iconv_prog.c
  @@ -35,6 +35,7 @@
   #ifdef _POSIX_MAPPED_FILES
   # include <sys/mman.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +8 -8
@@ -716,7 +716,7 @@ Index: git/iconv/iconv_prog.c
   #include <charmap.h>
   #include <gconv_int.h>
   #include "iconv_prog.h"
-@@ -221,10 +222,17 @@
+@@ -221,10 +222,17 @@ main (int argc, char *argv[])
             bool to_wrong =
           (iconv_open (to_code, "UTF-8") == (iconv_t) -1
            && errno == EINVAL);
@@ -736,8 +736,8 @@ Index: git/iconv/iconv_prog.c
           {
  Index: git/iconv/Makefile
  ===================================================================
---- git.orig/iconv/Makefile    2014-08-29 20:00:46.600070587 -0700
-+++ git/iconv/Makefile    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconv/Makefile
++++ git/iconv/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Makefile for iconv.
@@ -747,7 +747,7 @@ Index: git/iconv/Makefile
   subdir    := iconv
 
   include ../Makeconfig
-@@ -57,6 +59,9 @@
+@@ -57,6 +59,9 @@ CPPFLAGS-linereader = -DNOT_IN_libc
   CPPFLAGS-strtab = -DNOT_IN_libc
   CPPFLAGS-charmap = -DNOT_IN_libc
   CPPFLAGS-charmap-dir = -DNOT_IN_libc
@@ -759,8 +759,8 @@ Index: git/iconv/Makefile
   xtests-special += $(objpfx)test-iconvconfig.out
  Index: git/iconvdata/Makefile
  ===================================================================
---- git.orig/iconvdata/Makefile    2014-08-29 20:00:46.628070587 -0700
-+++ git/iconvdata/Makefile    2014-08-29 20:01:15.196070587 -0700
+--- git.orig/iconvdata/Makefile
++++ git/iconvdata/Makefile
  @@ -18,12 +18,15 @@
   #
   #    Makefile for iconv data and code.
@@ -778,7 +778,7 @@ Index: git/iconvdata/Makefile
          ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-10         \
          ISO8859-11 ISO8859-13 ISO8859-14 ISO8859-15 ISO8859-16     \
          T.61 ISO_6937 SJIS KOI-8 HP-ROMAN8 HP-ROMAN9 EBCDIC-AT-DE     \
-@@ -63,11 +66,13 @@
+@@ -63,11 +66,13 @@ modules    := ISO8859-1 ISO8859-2 ISO8859-3
          MAC-CENTRALEUROPE KOI8-RU ISO8859-9E                 \
          CP770 CP771 CP772 CP773 CP774
 
@@ -794,7 +794,7 @@ Index: git/iconvdata/Makefile
   ifeq ($(have-thread-library),yes)
   tests += bug-iconv3
   endif
-@@ -130,13 +135,13 @@
+@@ -130,13 +135,13 @@ ifeq (yes,$(build-shared))
   # Rule to generate the shared objects.
   charmaps = ../localedata/charmaps
   -include $(objpfx)iconv-rules
@@ -811,7 +811,7 @@ Index: git/iconvdata/Makefile
 
   # We can build the conversion tables for numerous charsets

automatically.

-@@ -204,7 +209,7 @@
+@@ -204,7 +209,7 @@ before-compile += $(addprefix $(objpfx),
ifndef avoid-generated
$(objpfx)iconv-rules: Makefile

       $(make-target-directory)
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -820,7 +820,7 @@ Index: git/iconvdata/Makefile
         echo 8bit $(gen-8bit-modules); \
         echo 8bit-gap $(gen-8bit-gap-modules); } | \
       LC_ALL=C \
-@@ -247,7 +252,7 @@
+@@ -247,7 +252,7 @@ $(addprefix $(inst_gconvdir)/, $(modules
       $(do-install-program)
   $(inst_gconvdir)/gconv-modules: gconv-modules $(+force)
       $(do-install)
@@ -829,7 +829,7 @@ Index: git/iconvdata/Makefile
   # Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is

necessary

   # if this libc has more gconv modules than the previously installed
one.
       if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \
-@@ -256,9 +261,9 @@
+@@ -256,9 +261,9 @@ ifeq (no,$(cross-compiling))
          $(common-objpfx)iconv/iconvconfig \
            $(addprefix --prefix=,$(install_root)); \
       fi
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -3
@@ -844,9 +844,9 @@ Index: git/iconvdata/Makefile
 
  Index: git/include/netdb.h
  ===================================================================
---- git.orig/include/netdb.h    2014-08-29 20:00:47.152070587 -0700
-+++ git/include/netdb.h    2014-08-29 20:01:15.196070587 -0700
-@@ -232,6 +232,10 @@
+--- git.orig/include/netdb.h
++++ git/include/netdb.h
+@@ -232,6 +232,10 @@ extern enum nss_status _nss_ ## service
                  (const char *name, int af, struct hostent
 *host,          \
               char *buffer, size_t buflen, int *errnop,          \
               int *h_errnop);                          \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +20 -20
@@ -859,8 +859,8 @@ Index: git/include/netdb.h
               size_t buflen, int *errnop, int *h_errnop);          \
  Index: git/inet/Makefile
  ===================================================================
---- git.orig/inet/Makefile    2014-08-29 20:00:47.176070587 -0700
-+++ git/inet/Makefile    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/inet/Makefile
++++ git/inet/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for inet portion of the library.
@@ -870,7 +870,7 @@ Index: git/inet/Makefile
   subdir    := inet
 
   include ../Makeconfig
-@@ -27,7 +29,8 @@
+@@ -27,7 +29,8 @@ headers    := netinet/ether.h netinet/in.h
          netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
          aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h
 
@@ -880,7 +880,7 @@ Index: git/inet/Makefile
           inet_lnaof inet_mkadr    \
           inet_netof inet_ntoa inet_net herrno herrno-loc \
           gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \
-@@ -41,18 +44,23 @@
+@@ -41,18 +44,23 @@ routines := htonl htons        \
           getrpcent_r getrpcbyname_r getrpcbynumber_r \
           ether_aton ether_aton_r ether_hton ether_line \
           ether_ntoa ether_ntoa_r ether_ntoh \
@@ -912,9 +912,9 @@ Index: git/inet/Makefile
 
  Index: git/intl/dcigettext.c
  ===================================================================
---- git.orig/intl/dcigettext.c    2014-08-29 20:00:47.224070587 -0700
-+++ git/intl/dcigettext.c    2014-08-29 20:01:15.200070587 -0700
-@@ -77,6 +77,10 @@
+--- git.orig/intl/dcigettext.c
++++ git/intl/dcigettext.c
+@@ -77,6 +77,10 @@ extern int errno;
   #endif
   #include "hash-string.h"
 
@@ -925,7 +925,7 @@ Index: git/intl/dcigettext.c
   /* Thread safetyness.  */
   #ifdef _LIBC
   # include <bits/libc-lock.h>
-@@ -449,9 +453,11 @@
+@@ -449,9 +453,11 @@ DCIGETTEXT (domainname, msgid1, msgid2,
   #endif
 
   #ifdef _LIBC
@@ -937,7 +937,7 @@ Index: git/intl/dcigettext.c
 
     __libc_rwlock_rdlock (_nl_state_lock);
 
-@@ -470,7 +476,11 @@
+@@ -470,7 +476,11 @@ DCIGETTEXT (domainname, msgid1, msgid2,
     search.category = category;
   # ifdef HAVE_PER_THREAD_LOCALE
   #  ifdef _LIBC
@@ -949,7 +949,7 @@ Index: git/intl/dcigettext.c
   #  endif
     search.localename = localename;
   # endif
-@@ -494,7 +504,9 @@
+@@ -494,7 +504,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
       retval = (char *) (*foundp)->translation;
 
   # ifdef _LIBC
@@ -959,7 +959,7 @@ Index: git/intl/dcigettext.c
   # endif
         __libc_rwlock_unlock (_nl_state_lock);
         return retval;
-@@ -611,7 +623,9 @@
+@@ -611,7 +623,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
       {
       no_translation:
         FREE_BLOCKS (block_list);
@@ -969,7 +969,7 @@ Index: git/intl/dcigettext.c
         __libc_rwlock_unlock (_nl_state_lock);
         __set_errno (saved_errno);
         return (plural == 0
-@@ -730,7 +744,9 @@
+@@ -730,7 +744,9 @@ DCIGETTEXT (domainname, msgid1, msgid2,
             if (plural)
           retval = plural_lookup (domain, n, retval, retlen);
 
@@ -979,7 +979,7 @@ Index: git/intl/dcigettext.c
             __libc_rwlock_unlock (_nl_state_lock);
             return retval;
           }
-@@ -1361,7 +1377,11 @@
+@@ -1361,7 +1377,11 @@ guess_category_value (category, category
        `LC_xxx', and `LANG'.  On some systems this can be done by the
        `setlocale' function itself.  */
   #ifdef _LIBC
@@ -993,8 +993,8 @@ Index: git/intl/dcigettext.c
   #endif
  Index: git/intl/Makefile
  ===================================================================
---- git.orig/intl/Makefile    2014-08-29 20:00:47.220070587 -0700
-+++ git/intl/Makefile    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/intl/Makefile
++++ git/intl/Makefile
  @@ -16,6 +16,7 @@
   # <http://www.gnu.org/licenses/>.
 
@@ -1003,7 +1003,7 @@ Index: git/intl/Makefile
 
   subdir = intl
 
-@@ -48,7 +49,7 @@
+@@ -48,7 +49,7 @@ endif
   $(objpfx)plural.o: plural.c
 
   ifeq ($(run-built-tests),yes)
@@ -1014,8 +1014,8 @@ Index: git/intl/Makefile
            $(objpfx)tst-gettext2.out $(objpfx)tst-codeset.out \
  Index: git/io/Makefile
  ===================================================================
---- git.orig/io/Makefile    2014-08-29 20:00:47.244070587 -0700
-+++ git/io/Makefile    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/io/Makefile
++++ git/io/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for I/O portion of the library.
@@ -1025,7 +1025,7 @@ Index: git/io/Makefile
   subdir    := io
 
   include ../Makeconfig
-@@ -36,7 +38,7 @@
+@@ -36,7 +38,7 @@ routines :=                                \
       fxstatat fxstatat64                        \
       statfs fstatfs statfs64 fstatfs64                \
       statvfs fstatvfs statvfs64 fstatvfs64                \
@@ -1034,7 +1034,7 @@ Index: git/io/Makefile
       mkdir mkdirat                            \
       open open_2 open64 open64_2 openat openat_2 openat64
 openat64_2    \
       read write lseek lseek64 access euidaccess faccessat        \
-@@ -49,11 +51,13 @@
+@@ -49,11 +51,13 @@ routines :=                                \
       ttyname ttyname_r isatty                    \
       link linkat symlink symlinkat readlink readlinkat        \
       unlink unlinkat rmdir                        \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +10 -10
@@ -1049,7 +1049,7 @@ Index: git/io/Makefile
 
   aux := have_o_cloexec
 
-@@ -64,18 +68,22 @@
+@@ -64,18 +68,22 @@ static-only-routines = stat fstat lstat
                  fstatat fstatat64 mknod mknodat
 
   others        := pwd
@@ -1077,8 +1077,8 @@ Index: git/io/Makefile
 
  Index: git/libidn/Makefile
  ===================================================================
---- git.orig/libidn/Makefile    2014-08-29 20:00:47.316070587 -0700
-+++ git/libidn/Makefile    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libidn/Makefile
++++ git/libidn/Makefile
  @@ -16,6 +16,7 @@
   # <http://www.gnu.org/licenses/>.
 
@@ -1087,7 +1087,7 @@ Index: git/libidn/Makefile
 
   subdir    := libidn
 
-@@ -23,8 +24,8 @@
+@@ -23,8 +24,8 @@ include ../Makeconfig
 
   routines = idn-stub
 
@@ -1100,8 +1100,8 @@ Index: git/libidn/Makefile
               iconvme
  Index: git/libidn/toutf8.c
  ===================================================================
---- git.orig/libidn/toutf8.c    2014-08-29 20:00:47.332070587 -0700
-+++ git/libidn/toutf8.c    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libidn/toutf8.c
++++ git/libidn/toutf8.c
  @@ -33,6 +33,11 @@
   /* Get strlen. */
   #include <string.h>
@@ -1129,8 +1129,8 @@ Index: git/libidn/toutf8.c
    * stringprep_locale_charset - return charset used in current locale
  Index: git/libio/fileops.c
  ===================================================================
---- git.orig/libio/fileops.c    2014-08-29 20:00:47.352070587 -0700
-+++ git/libio/fileops.c    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/fileops.c
++++ git/libio/fileops.c
  @@ -38,6 +38,7 @@
   #include <string.h>
   #include <errno.h>
@@ -1139,7 +1139,7 @@ Index: git/libio/fileops.c
   #include <stdlib.h>
   #if _LIBC
   # include "../wcsmbs/wcsmbsload.h"
-@@ -174,7 +175,7 @@
+@@ -174,7 +175,7 @@ _IO_new_file_close_it (fp)
 
     /* Free buffer. */
   #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
@@ -1148,7 +1148,7 @@ Index: git/libio/fileops.c
       {
         if (_IO_have_wbackup (fp))
       _IO_free_wbackup_area (fp);
-@@ -359,6 +360,7 @@
+@@ -359,6 +360,7 @@ _IO_new_file_fopen (fp, filename, mode,
         cs = strstr (last_recognized + 1, ",ccs=");
         if (cs != NULL)
       {
@@ -1156,7 +1156,7 @@ Index: git/libio/fileops.c
         /* Yep.  Load the appropriate conversions and set the

orientation
to wide. */
struct gconv_fcts fcts;
-@@ -423,6 +425,12 @@
+@@ -423,6 +425,12 @@ _IO_new_file_fopen (fp, filename, mode,

         /* Set the mode now.  */
         result->_mode = 1;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +19 -19
@@ -1171,8 +1171,8 @@ Index: git/libio/fileops.c
 
  Index: git/libio/__fpurge.c
  ===================================================================
---- git.orig/libio/__fpurge.c    2014-08-29 20:00:47.336070587 -0700
-+++ git/libio/__fpurge.c    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/__fpurge.c
++++ git/libio/__fpurge.c
  @@ -21,7 +21,7 @@
   void
   __fpurge (FILE *fp)
@@ -1184,8 +1184,8 @@ Index: git/libio/__fpurge.c
         if (_IO_in_backup (fp))
  Index: git/libio/iofwide.c
  ===================================================================
---- git.orig/libio/iofwide.c    2014-08-29 20:00:47.360070587 -0700
-+++ git/libio/iofwide.c    2014-08-29 20:01:15.200070587 -0700
+--- git.orig/libio/iofwide.c
++++ git/libio/iofwide.c
  @@ -26,6 +26,7 @@
 
   #include <libioP.h>
@@ -1203,7 +1203,7 @@ Index: git/libio/iofwide.c
   /* Prototypes of libio's codecvt functions.  */
   static enum __codecvt_result do_out (struct _IO_codecvt *codecvt,
                        __mbstate_t *statep,
-@@ -513,3 +516,26 @@
+@@ -513,3 +516,26 @@ do_max_length (struct _IO_codecvt *codec
     return MB_CUR_MAX;
   #endif
   }
@@ -1232,9 +1232,9 @@ Index: git/libio/iofwide.c
  +#endif
  Index: git/libio/ioseekoff.c
  ===================================================================
---- git.orig/libio/ioseekoff.c    2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/ioseekoff.c    2014-08-29 20:01:15.200070587 -0700
-@@ -60,7 +60,7 @@
+--- git.orig/libio/ioseekoff.c
++++ git/libio/ioseekoff.c
+@@ -60,7 +60,7 @@ _IO_seekoff_unlocked (fp, offset, dir, m
         else
           abort ();
       }
@@ -1245,9 +1245,9 @@ Index: git/libio/ioseekoff.c
       _IO_free_wbackup_area (fp);
  Index: git/libio/ioseekpos.c
  ===================================================================
---- git.orig/libio/ioseekpos.c    2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/ioseekpos.c    2014-08-29 20:01:15.200070587 -0700
-@@ -35,7 +35,7 @@
+--- git.orig/libio/ioseekpos.c
++++ git/libio/ioseekpos.c
+@@ -35,7 +35,7 @@ _IO_seekpos_unlocked (fp, pos, mode)
     /* If we have a backup buffer, get rid of it, since the __seekoff
        callback may not know to do the right thing about it.
        This may be over-kill, but it'll do for now. TODO */
@@ -1258,8 +1258,8 @@ Index: git/libio/ioseekpos.c
       _IO_free_backup_area (fp);
  Index: git/libio/iosetbuffer.c
  ===================================================================
---- git.orig/libio/iosetbuffer.c    2014-08-29 20:00:47.364070587 -0700
-+++ git/libio/iosetbuffer.c    2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/iosetbuffer.c
++++ git/libio/iosetbuffer.c
  @@ -24,6 +24,8 @@
      This exception applies to code released by its copyright holders
      in files containing the exception.  */
@@ -1269,7 +1269,7 @@ Index: git/libio/iosetbuffer.c
   #include "libioP.h"
 
   void
-@@ -38,9 +40,11 @@
+@@ -38,9 +40,11 @@ _IO_setbuffer (fp, buf, size)
     if (!buf)
       size = 0;
     (void) _IO_SETBUF (fp, buf, size);
@@ -1283,8 +1283,8 @@ Index: git/libio/iosetbuffer.c
   libc_hidden_def (_IO_setbuffer)
  Index: git/libio/libioP.h
  ===================================================================
---- git.orig/libio/libioP.h    2014-08-29 20:00:47.372070587 -0700
-+++ git/libio/libioP.h    2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/libioP.h
++++ git/libio/libioP.h
  @@ -42,6 +42,10 @@
   /*# include <comthread.h>*/
   #endif
@@ -1296,7 +1296,7 @@ Index: git/libio/libioP.h
   #include <math_ldbl_opt.h>
 
   #include "iolibio.h"
-@@ -508,8 +512,20 @@
+@@ -508,8 +512,20 @@ extern void _IO_old_init (_IO_FILE *fp,
 
 
   #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
@@ -1320,8 +1320,8 @@ Index: git/libio/libioP.h
      : _IO_wdo_write(_f,
 (_f)->_wide_data->_IO_write_base,              \
  Index: git/libio/Makefile
  ===================================================================
---- git.orig/libio/Makefile    2014-08-29 20:00:47.332070587 -0700
-+++ git/libio/Makefile    2014-08-29 20:01:15.204070587 -0700
+--- git.orig/libio/Makefile
++++ git/libio/Makefile
  @@ -18,6 +18,8 @@
   #

# Specific makefile for libio.

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -1331,7 +1331,7 @@ Index: git/libio/Makefile
   subdir    := libio
 
   include ../Makeconfig
-@@ -27,16 +29,13 @@
+@@ -27,16 +29,13 @@ headers    := stdio.h libio.h _G_config.h b
 
   routines    :=                                  \
       filedoalloc iofclose iofdopen iofflush iofgetpos iofgets

iofopen \

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -1351,7 +1351,7 @@ Index: git/libio/Makefile
                                             \
       clearerr feof ferror fileno fputc freopen fseek getc
 getchar          \
       memstream pclose putc putchar rewind setbuf setlinebuf
 vasprintf      \
-@@ -47,25 +46,48 @@
+@@ -47,25 +46,48 @@ routines    :=                                  \
       __fpurge __fpending __fsetlocking                      \
                                             \
       libc_fatal fmemopen
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +14 -14
@@ -1416,7 +1416,7 @@ Index: git/libio/Makefile
   endif
   test-srcs = test-freopen
 
-@@ -164,13 +186,17 @@
+@@ -164,13 +186,17 @@ shared-only-routines = oldiofopen oldiof
                  oldiofsetpos64
 
   ifeq ($(run-built-tests),yes)
@@ -1436,8 +1436,8 @@ Index: git/libio/Makefile
 
  Index: git/libio/wdummyfileops.c
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/libio/wdummyfileops.c    2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/libio/wdummyfileops.c
  @@ -0,0 +1,161 @@
  +/* Copyright (C) 2007 Free Software Foundation, Inc.
  +   This file is part of the GNU C Library.
@@ -1602,8 +1602,8 @@ Index: git/libio/wdummyfileops.c
  +strong_alias (_IO_wfile_jumps_disabled, _IO_wfile_jumps_maybe_mmap)
  Index: git/locale/catnames.c
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/locale/catnames.c    2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/locale/catnames.c
  @@ -0,0 +1,48 @@
  +/* Copyright (C) 2006  Free Software Foundation, Inc.
  +   This file is part of the GNU C Library.
@@ -1655,8 +1655,8 @@ Index: git/locale/catnames.c
  +  };
  Index: git/locale/C-ctype.c
  ===================================================================
---- git.orig/locale/C-ctype.c    2014-08-29 20:00:47.396070587 -0700
-+++ git/locale/C-ctype.c    2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/C-ctype.c
++++ git/locale/C-ctype.c
  @@ -19,8 +19,11 @@
   #include "localeinfo.h"
   #include <endian.h>
@@ -1669,7 +1669,7 @@ Index: git/locale/C-ctype.c
 
   /* This table's entries are taken from POSIX.2 Table 2-6
      ``LC_CTYPE Category Definition in the POSIX Locale''.
-@@ -647,6 +650,7 @@
+@@ -647,6 +650,7 @@ const struct __locale_data _nl_C_LC_CTYP
       { .word = L'7' },
       { .word = L'8' },
       { .word = L'9' },
@@ -1677,7 +1677,7 @@ Index: git/locale/C-ctype.c
       /* _NL_CTYPE_TRANSLIT_TAB_SIZE */
       { .word = NTRANSLIT },
       /* _NL_CTYPE_TRANSLIT_FROM_IDX */
-@@ -657,6 +661,22 @@
+@@ -657,6 +661,22 @@ const struct __locale_data _nl_C_LC_CTYP
       { .wstr = translit_to_idx },
       /* _NL_CTYPE_TRANSLIT_TO_TBL */
       { .wstr = (uint32_t *) translit_to_tbl },
@@ -1702,8 +1702,8 @@ Index: git/locale/C-ctype.c
       /* _NL_CTYPE_TRANSLIT_DEFAULT_MISSING */
  Index: git/locale/dummy-setlocale.c
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/locale/dummy-setlocale.c    2014-08-29 20:01:15.204070587 -0700
+--- /dev/null
++++ git/locale/dummy-setlocale.c
  @@ -0,0 +1,33 @@
  +/* Copyright (C) 2006  Free Software Foundation, Inc.
  +   This file is part of the GNU C Library.
@@ -1740,9 +1740,9 @@ Index: git/locale/dummy-setlocale.c
  +libc_hidden_def (setlocale)
  Index: git/locale/localeinfo.h
  ===================================================================
---- git.orig/locale/localeinfo.h    2014-08-29 20:00:47.404070587 -0700
-+++ git/locale/localeinfo.h    2014-08-29 20:01:15.204070587 -0700
-@@ -224,7 +224,7 @@
+--- git.orig/locale/localeinfo.h
++++ git/locale/localeinfo.h
+@@ -224,7 +224,7 @@ __libc_tsd_define (extern, __locale_t, L
      unused.  We can manage this playing some tricks with weak

references.
But with thread-local locale settings, it becomes quite ungainly
unless
we can use __thread variables. So only in that case do we
attempt this. */

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -4
@@ -1753,8 +1753,8 @@ Index: git/locale/localeinfo.h
   #endif
  Index: git/locale/Makefile
  ===================================================================
---- git.orig/locale/Makefile    2014-08-29 20:00:47.400070587 -0700
-+++ git/locale/Makefile    2014-08-29 20:01:15.204070587 -0700
+--- git.orig/locale/Makefile
++++ git/locale/Makefile
  @@ -18,27 +18,43 @@
   #
   #    Makefile for locales.
@@ -1810,7 +1810,7 @@ Index: git/locale/Makefile
 
   libBrokenLocale-routines = broken_cur_max
 
-@@ -94,6 +110,9 @@
+@@ -94,6 +110,9 @@ CPPFLAGS-locale-programs = -DLOCALE_PATH
   CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
   CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
   CFLAGS-charmap-dir.c = -Wno-write-strings
@@ -1822,8 +1822,8 @@ Index: git/locale/Makefile
   cpp-srcs-left := $(addsuffix .c,$(localedef-modules)
 $(localedef-aux) \
  Index: git/locale/programs/charmap-dir.c
  ===================================================================
---- git.orig/locale/programs/charmap-dir.c    2014-08-29

20:00:47.408070587 -0700
-+++ git/locale/programs/charmap-dir.c 2014-08-29
20:01:15.204070587 -0700
+--- git.orig/locale/programs/charmap-dir.c
++++ git/locale/programs/charmap-dir.c
@@ -19,7 +19,9 @@

   #include <error.h>
   #include <fcntl.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2
@@ -1834,7 +1834,7 @@ Index: git/locale/programs/charmap-dir.c
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
-@@ -156,6 +158,7 @@
+@@ -156,6 +158,7 @@ charmap_closedir (CHARMAP_DIR *cdir)
     return closedir (dir);
   }
 
@@ -1842,7 +1842,7 @@ Index: git/locale/programs/charmap-dir.c
   /* Creates a subprocess decompressing the given pathname, and returns
      a stream reading its output (the decompressed data).  */
   static
-@@ -204,6 +207,7 @@
+@@ -204,6 +207,7 @@ fopen_uncompressed (const char *pathname
       }
     return NULL;
   }
@@ -1850,7 +1850,7 @@ Index: git/locale/programs/charmap-dir.c
 
   /* Opens a charmap for reading, given its name (not an alias

name). */
FILE *
-@@ -226,6 +230,7 @@
+@@ -226,6 +230,7 @@ charmap_open (const char *directory, con

     if (stream != NULL)
       return stream;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -3
@@ -1858,7 +1858,7 @@ Index: git/locale/programs/charmap-dir.c
     memcpy (p, ".gz", 4);
     stream = fopen_uncompressed (pathname, "gzip");
     if (stream != NULL)
-@@ -235,6 +240,7 @@
+@@ -235,6 +240,7 @@ charmap_open (const char *directory, con
     stream = fopen_uncompressed (pathname, "bzip2");
     if (stream != NULL)
       return stream;
@@ -1866,7 +1866,7 @@ Index: git/locale/programs/charmap-dir.c
 
     return NULL;
   }
-@@ -263,8 +269,8 @@
+@@ -263,8 +269,8 @@ charmap_aliases (const char *directory,
         char *alias = NULL;
         char junk[BUFSIZ];
 
@@ -1879,9 +1879,9 @@ Index: git/locale/programs/charmap-dir.c
                                           (naliases + 2) * sizeof
 (char *));
  Index: git/locale/programs/ld-collate.c
  ===================================================================
---- git.orig/locale/programs/ld-collate.c    2014-08-29

20:00:47.408070587 -0700
-+++ git/locale/programs/ld-collate.c 2014-08-29 20:01:15.208070587
-0700
-@@ -350,7 +350,7 @@
+--- git.orig/locale/programs/ld-collate.c
++++ git/locale/programs/ld-collate.c
+@@ -350,7 +350,7 @@ new_element (struct locale_collate_t *co

       }
     if (wcs != NULL)
       {
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -4
@@ -1890,7 +1890,7 @@ Index: git/locale/programs/ld-collate.c
         uint32_t zero = 0;
         /* Handle <U0000> as a single character.  */
         if (nwcs == 0)
-@@ -1776,8 +1776,7 @@
+@@ -1776,8 +1776,7 @@ symbol `%s' has the same encoding as"),
 
             if ((*eptr)->nwcs == runp->nwcs)
           {
@@ -1900,7 +1900,7 @@ Index: git/locale/programs/ld-collate.c
 
             if (c == 0)
               {
-@@ -2010,9 +2009,9 @@
+@@ -2010,9 +2009,9 @@ add_to_tablewc (uint32_t ch, struct elem
            one consecutive entry.  */
         if (runp->wcnext != NULL
             && runp->nwcs == runp->wcnext->nwcs
@@ -1913,7 +1913,7 @@ Index: git/locale/programs/ld-collate.c
             && (runp->wcs[runp->nwcs - 1]
             == runp->wcnext->wcs[runp->nwcs - 1] + 1))
           {
-@@ -2036,9 +2035,9 @@
+@@ -2036,9 +2035,9 @@ add_to_tablewc (uint32_t ch, struct elem
           runp = runp->wcnext;
             while (runp->wcnext != NULL
                && runp->nwcs == runp->wcnext->nwcs
@@ -1928,9 +1928,9 @@ Index: git/locale/programs/ld-collate.c
 
  Index: git/locale/programs/ld-ctype.c
  ===================================================================
---- git.orig/locale/programs/ld-ctype.c    2014-08-29

20:00:47.408070587 -0700
-+++ git/locale/programs/ld-ctype.c 2014-08-29 20:01:15.208070587
-0700
-@@ -957,7 +957,7 @@
+--- git.orig/locale/programs/ld-ctype.c
++++ git/locale/programs/ld-ctype.c
+@@ -957,7 +957,7 @@ ctype_output (struct localedef_t *locale

     allocate_arrays (ctype, charmap, ctype->repertoire);

     default_missing_len = (ctype->default_missing
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +5 -6
@@ -1939,7 +1939,7 @@ Index: git/locale/programs/ld-ctype.c
                : 0);
 
     init_locale_data (&file, nelems);
-@@ -1968,7 +1968,7 @@
+@@ -1968,7 +1968,7 @@ read_translit_entry (struct linereader *
           ignore = 1;
         else
           /* This value is usable.  */
@@ -1948,7 +1948,7 @@ Index: git/locale/programs/ld-ctype.c
 
         first = 0;
       }
-@@ -2516,8 +2516,8 @@
+@@ -2516,8 +2516,8 @@ with character code range values one mus
           }
 
       handle_tok_digit:
@@ -1959,7 +1959,7 @@ Index: git/locale/programs/ld-ctype.c
         handle_digits = 1;
         goto read_charclass;
 
-@@ -4001,8 +4001,7 @@
+@@ -4001,8 +4001,7 @@ allocate_arrays (struct locale_ctype_t *
 
         while (idx < number)
           {
@@ -1969,7 +1969,7 @@ Index: git/locale/programs/ld-ctype.c
             if (res == 0)
           {
             replace = 1;
-@@ -4039,11 +4038,11 @@
+@@ -4039,11 +4038,11 @@ allocate_arrays (struct locale_ctype_t *
         for (cnt = 0; cnt < number; ++cnt)
       {
         struct translit_to_t *srunp;
@@ -1983,7 +1983,7 @@ Index: git/locale/programs/ld-ctype.c
             srunp = srunp->next;
           }
         /* Plus one for the extra NUL character marking the end of
-@@ -4067,18 +4066,18 @@
+@@ -4067,18 +4066,18 @@ allocate_arrays (struct locale_ctype_t *
         ctype->translit_from_idx[cnt] = from_len;
         ctype->translit_to_idx[cnt] = to_len;
 
@@ -2010,8 +2010,8 @@ Index: git/locale/programs/ld-ctype.c
           }
  Index: git/locale/programs/ld-messages.c
  ===================================================================
---- git.orig/locale/programs/ld-messages.c    2014-08-29

20:00:47.412070587 -0700
-+++ git/locale/programs/ld-messages.c 2014-08-29
20:01:15.208070587 -0700
+--- git.orig/locale/programs/ld-messages.c
++++ git/locale/programs/ld-messages.c
@@ -25,6 +25,7 @@

   #include <string.h>
   #include <stdint.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +4 -5
@@ -2020,7 +2020,7 @@ Index: git/locale/programs/ld-messages.c
 
   #include <assert.h>
 
-@@ -124,6 +125,7 @@
+@@ -124,6 +125,7 @@ No definition for %s category found"), "
       }
     else
       {
@@ -2028,7 +2028,7 @@ Index: git/locale/programs/ld-messages.c
         int result;
         regex_t re;
 
-@@ -140,6 +142,7 @@
+@@ -140,6 +142,7 @@ No definition for %s category found"), "
       }
         else if (result != 0)
       regfree (&re);
@@ -2036,7 +2036,7 @@ Index: git/locale/programs/ld-messages.c
       }
 
     if (messages->noexpr == NULL)
-@@ -158,6 +161,7 @@
+@@ -158,6 +161,7 @@ No definition for %s category found"), "
       }
     else
       {
@@ -2044,7 +2044,7 @@ Index: git/locale/programs/ld-messages.c
         int result;
         regex_t re;
 
-@@ -174,6 +178,7 @@
+@@ -174,6 +178,7 @@ No definition for %s category found"), "
       }
         else if (result != 0)
       regfree (&re);
@@ -2054,9 +2054,9 @@ Index: git/locale/programs/ld-messages.c
 
  Index: git/locale/programs/ld-time.c
  ===================================================================
---- git.orig/locale/programs/ld-time.c    2014-08-29

20:00:47.412070587 -0700
-+++ git/locale/programs/ld-time.c 2014-08-29 20:01:15.208070587 -0700
-@@ -215,8 +215,10 @@
+--- git.orig/locale/programs/ld-time.c
++++ git/locale/programs/ld-time.c
+@@ -215,8 +215,10 @@ No definition for %s category found"), "

       }
         else
       {
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -4
@@ -2068,7 +2068,7 @@ Index: git/locale/programs/ld-time.c
       }
       }
 
-@@ -226,7 +228,7 @@
+@@ -226,7 +228,7 @@ No definition for %s category found"), "
         const int days_per_month[12] = { 31, 29, 31, 30, 31, 30,
                          31, 31, 30, 31 ,30, 31 };
         size_t idx;
@@ -2077,7 +2077,7 @@ Index: git/locale/programs/ld-time.c
 
         time->era_entries =
       (struct era_data *) xmalloc (time->num_era
-@@ -464,18 +466,18 @@
+@@ -464,18 +466,18 @@ No definition for %s category found"), "
           }
 
         /* Now generate the wide character name and format.  */
@@ -2103,7 +2103,7 @@ Index: git/locale/programs/ld-time.c
           }
             else
           time->era_entries[idx].wname =
-@@ -530,7 +532,16 @@
+@@ -530,7 +532,16 @@ No definition for %s category found"), "
     if (time->date_fmt == NULL)
       time->date_fmt = "%a %b %e %H:%M:%S %Z %Y";
     if (time->wdate_fmt == NULL)
@@ -2123,9 +2123,9 @@ Index: git/locale/programs/ld-time.c
 
  Index: git/locale/programs/linereader.c
  ===================================================================
---- git.orig/locale/programs/linereader.c    2014-08-29

20:00:47.412070587 -0700
-+++ git/locale/programs/linereader.c 2014-08-29 20:01:15.208070587
-0700
-@@ -595,7 +595,7 @@
+--- git.orig/locale/programs/linereader.c
++++ git/locale/programs/linereader.c
+@@ -595,7 +595,7 @@ get_string (struct linereader *lr, const

   {
     int return_widestr = lr->return_widestr;
     char *buf;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -1
@@ -2136,9 +2136,9 @@ Index: git/locale/programs/linereader.c
 
  Index: git/locale/programs/localedef.c
  ===================================================================
---- git.orig/locale/programs/localedef.c    2014-08-29

20:00:47.416070587 -0700
-+++ git/locale/programs/localedef.c 2014-08-29 20:01:15.208070587
-0700
-@@ -114,6 +114,7 @@
+--- git.orig/locale/programs/localedef.c
++++ git/locale/programs/localedef.c
+@@ -114,6 +114,7 @@ void (*argp_program_version_hook) (FILE

   #define OPT_LIST_ARCHIVE 309
   #define OPT_LITTLE_ENDIAN 400
   #define OPT_BIG_ENDIAN 401
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -4
@@ -2146,7 +2146,7 @@ Index: git/locale/programs/localedef.c
 
   /* Definitions of arguments for argp functions.  */
   static const struct argp_option options[] =
-@@ -150,6 +151,8 @@
+@@ -150,6 +151,8 @@ static const struct argp_option options[
       N_("Generate little-endian output") },
     { "big-endian", OPT_BIG_ENDIAN, NULL, 0,
       N_("Generate big-endian output") },
@@ -2155,7 +2155,7 @@ Index: git/locale/programs/localedef.c
     { NULL, 0, NULL, 0, NULL }
   };
 
-@@ -239,12 +242,14 @@
+@@ -239,12 +242,14 @@ main (int argc, char *argv[])
        ctype locale.  (P1003.2 4.35.5.2)  */
     setlocale (LC_CTYPE, "POSIX");
 
@@ -2170,7 +2170,7 @@ Index: git/locale/programs/localedef.c
 
     /* Process charmap file.  */
     charmap = charmap_read (charmap_file, verbose, 1, be_quiet, 1);
-@@ -338,6 +343,9 @@
+@@ -338,6 +343,9 @@ parse_opt (int key, char *arg, struct ar
       case OPT_BIG_ENDIAN:
         set_big_endian (true);
         break;
@@ -2182,9 +2182,9 @@ Index: git/locale/programs/localedef.c
         break;
  Index: git/locale/programs/locfile.c
  ===================================================================
---- git.orig/locale/programs/locfile.c    2014-08-29

20:00:47.432070587 -0700
-+++ git/locale/programs/locfile.c 2014-08-29 20:01:15.208070587 -0700
-@@ -544,6 +544,9 @@
+--- git.orig/locale/programs/locfile.c
++++ git/locale/programs/locfile.c
+@@ -544,6 +544,9 @@ compare_files (const char *filename1, co
machine running localedef. */
bool swap_endianness_p;

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -2194,7 +2194,7 @@ Index: git/locale/programs/locfile.c
   /* When called outside a start_locale_structure/end_locale_structure
      or start_locale_prelude/end_locale_prelude block, record that the
      next byte in FILE's obstack will be the first byte of a new

element.
-@@ -621,7 +624,7 @@
+@@ -621,7 +624,7 @@ add_locale_string (struct locale_file *f
void
add_locale_wstring (struct locale_file *file, const uint32_t *string) {

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -1
@@ -2205,9 +2205,9 @@ Index: git/locale/programs/locfile.c
   /* Record that FILE's next element is the 32-bit integer VALUE.  */
  Index: git/locale/programs/locfile.h
  ===================================================================
---- git.orig/locale/programs/locfile.h    2014-08-29

20:00:47.432070587 -0700
-+++ git/locale/programs/locfile.h 2014-08-29 20:01:15.208070587 -0700
-@@ -71,6 +71,8 @@
+--- git.orig/locale/programs/locfile.h
++++ git/locale/programs/locfile.h
+@@ -71,6 +71,8 @@ extern void write_all_categories (struct

   extern bool swap_endianness_p;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +14 -14
@@ -2216,7 +2216,7 @@ Index: git/locale/programs/locfile.h
   /* Change the output to be big-endian if BIG_ENDIAN is true and
      little-endian otherwise.  */
   static inline void
-@@ -275,4 +277,49 @@
+@@ -275,4 +277,49 @@ extern void identification_output (struc
                      const struct charmap_t *charmap,
                      const char *output_path);
 
@@ -2268,9 +2268,9 @@ Index: git/locale/programs/locfile.h
   #endif /* locfile.h */
  Index: git/locale/setlocale.c
  ===================================================================
---- git.orig/locale/setlocale.c    2014-08-29 20:00:47.432070587 -0700
-+++ git/locale/setlocale.c    2014-08-29 20:01:15.208070587 -0700
-@@ -64,36 +64,6 @@
+--- git.orig/locale/setlocale.c
++++ git/locale/setlocale.c
+@@ -64,36 +64,6 @@ static char *const _nl_current_used[] =
   #endif
 
 
@@ -2309,8 +2309,8 @@ Index: git/locale/setlocale.c
   #else
  Index: git/locale/xlocale.c
  ===================================================================
---- git.orig/locale/xlocale.c    2014-08-29 20:00:47.436070587 -0700
-+++ git/locale/xlocale.c    2014-08-29 20:01:15.208070587 -0700
+--- git.orig/locale/xlocale.c
++++ git/locale/xlocale.c
  @@ -18,6 +18,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -2319,7 +2319,7 @@ Index: git/locale/xlocale.c
   #include "localeinfo.h"
 
   #define DEFINE_CATEGORY(category, category_name, items, a) \
-@@ -25,6 +26,19 @@
+@@ -25,6 +26,19 @@ extern struct __locale_data _nl_C_##cate
   #include "categories.def"
   #undef    DEFINE_CATEGORY
 
@@ -2339,7 +2339,7 @@ Index: git/locale/xlocale.c
   /* Defined in locale/C-ctype.c.  */
   extern const char _nl_C_LC_CTYPE_class[] attribute_hidden;
   extern const char _nl_C_LC_CTYPE_toupper[] attribute_hidden;
-@@ -52,3 +66,26 @@
+@@ -52,3 +66,26 @@ const struct __locale_struct _nl_C_locob
       .__ctype_tolower = (const int *) _nl_C_LC_CTYPE_tolower + 128,
       .__ctype_toupper = (const int *) _nl_C_LC_CTYPE_toupper + 128
     };
@@ -2368,9 +2368,9 @@ Index: git/locale/xlocale.c
  +#endif /* __OPTION_EGLIBC_LOCALE_CODE */
  Index: git/localedata/Makefile
  ===================================================================
---- git.orig/localedata/Makefile    2014-08-29 20:00:47.444070587 -0700
-+++ git/localedata/Makefile    2014-08-29 20:01:15.212070587 -0700
-@@ -21,12 +21,22 @@
+--- git.orig/localedata/Makefile
++++ git/localedata/Makefile
+@@ -21,12 +21,22 @@ subdir := localedata
 
   include ../Makeconfig
 
@@ -2396,7 +2396,7 @@ Index: git/localedata/Makefile
 
   subdir-dirs = tests-mbwc
   vpath %.c tests-mbwc
-@@ -71,14 +81,20 @@
+@@ -71,14 +81,20 @@ locale_test_suite := tst_iswalnum tst_is
                tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans      \
                tst_wctype tst_wcwidth
 
@@ -2419,7 +2419,7 @@ Index: git/localedata/Makefile
   ifneq (no,$(PERL))
   tests-special += $(objpfx)mtrace-tst-leaks.out
   endif
-@@ -92,12 +108,14 @@
+@@ -92,12 +108,14 @@ install-others := $(addprefix $(inst_i18
 
   tests: $(objdir)/iconvdata/gconv-modules
 
@@ -2434,7 +2434,7 @@ Index: git/localedata/Makefile
 
   ifeq ($(run-built-tests),yes)
   # We have to generate locales
-@@ -143,9 +161,13 @@
+@@ -143,9 +161,13 @@ generated-dirs += $(LOCALES)
   $(addprefix $(objpfx),$(CTYPE_FILES)): %: \
     gen-locale.sh $(common-objpfx)locale/localedef Makefile \
     $(addprefix charmaps/,$(CHARMAPS)) $(addprefix

locales/,$(LOCALE_SRCS))

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +50 -50
@@ -2451,7 +2451,7 @@ Index: git/localedata/Makefile
       $(evaluate-test)
 
   $(addsuffix .out,$(addprefix $(objpfx),$(tests))): %: \
-@@ -213,6 +235,11 @@
+@@ -213,6 +235,11 @@ endif
 
   include SUPPORTED
 
@@ -2465,8 +2465,8 @@ Index: git/localedata/Makefile
   # Sometimes the whole collection of locale files should be installed.
  Index: git/login/Makefile
  ===================================================================
---- git.orig/login/Makefile    2014-08-29 20:00:47.736070587 -0700
-+++ git/login/Makefile    2014-08-29 20:01:15.212070587 -0700
+--- git.orig/login/Makefile
++++ git/login/Makefile
  @@ -18,6 +18,7 @@
   #
   #    Sub-makefile for login portion of the library.
@@ -2475,7 +2475,7 @@ Index: git/login/Makefile
 
   subdir    := login
 
-@@ -25,14 +26,16 @@
+@@ -25,14 +26,16 @@ include ../Makeconfig
 
   headers    := utmp.h bits/utmp.h lastlog.h pty.h
 
@@ -2497,7 +2497,7 @@ Index: git/login/Makefile
 
   ifeq (yes,$(build-pt-chown))
   others += pt_chown
-@@ -46,8 +49,8 @@
+@@ -46,8 +49,8 @@ vpath %.c programs
   tests := tst-utmp tst-utmpx tst-grantpt tst-ptsname
 
   # Build the -lutil library with these extra functions.
@@ -2510,9 +2510,9 @@ Index: git/login/Makefile
 
  Index: git/Makeconfig
  ===================================================================
---- git.orig/Makeconfig    2014-08-29 20:00:42.956070587 -0700
-+++ git/Makeconfig    2014-08-29 20:01:15.212070587 -0700
-@@ -582,7 +582,7 @@
+--- git.orig/Makeconfig
++++ git/Makeconfig
+@@ -582,7 +582,7 @@ elf-objpfx = $(common-objpfx)elf/
   # and run on the build system, causes that program with those
   # arguments to be run on the host for which the library is built.
   ifndef test-wrapper
@@ -2521,7 +2521,7 @@ Index: git/Makeconfig
   endif
   # Likewise, but the name of the program is preceded by
   # <variable>=<value> assignments for environment variables.
-@@ -1057,6 +1057,24 @@
+@@ -1057,6 +1057,24 @@ else
   libm = $(common-objpfx)math/libm.a
   endif
 
@@ -2548,9 +2548,9 @@ Index: git/Makeconfig
   # dependencies.
  Index: git/Makerules
  ===================================================================
---- git.orig/Makerules    2014-08-29 20:00:42.960070587 -0700
-+++ git/Makerules    2014-08-29 20:01:15.212070587 -0700
-@@ -379,6 +379,25 @@
+--- git.orig/Makerules
++++ git/Makerules
+@@ -379,6 +379,25 @@ define sed-remove-objpfx
   endef
   endif
   
@@ -2578,8 +2578,8 @@ Index: git/Makerules
   ifeq (yes,$(build-shared))
  Index: git/malloc/Makefile
  ===================================================================
---- git.orig/malloc/Makefile    2014-08-29 20:00:47.760070587 -0700
-+++ git/malloc/Makefile    2014-08-29 20:01:15.212070587 -0700
+--- git.orig/malloc/Makefile
++++ git/malloc/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Makefile for malloc routines
@@ -2589,7 +2589,7 @@ Index: git/malloc/Makefile
   subdir    := malloc
 
   include ../Makeconfig
-@@ -36,9 +38,15 @@
+@@ -36,9 +38,15 @@ install-lib := libmcheck.a
   non-lib.a := libmcheck.a
 
   # Additional library.
@@ -2605,7 +2605,7 @@ Index: git/malloc/Makefile
   libmemusage-routines = memusage
   libmemusage-inhibit-o = $(filter-out .os,$(object-suffixes))
 
-@@ -67,7 +75,7 @@
+@@ -67,7 +75,7 @@ endif
   # Unless we get a test for the availability of libgd which also works
   # for cross-compiling we disable the memusagestat generation in this
   # situation.
@@ -2616,8 +2616,8 @@ Index: git/malloc/Makefile
   others: $(objpfx)memusage
  Index: git/malloc/memusage.c
  ===================================================================
---- git.orig/malloc/memusage.c    2014-08-29 20:00:47.768070587 -0700
-+++ git/malloc/memusage.c    2014-08-29 20:01:15.212070587 -0700
+--- git.orig/malloc/memusage.c
++++ git/malloc/memusage.c
  @@ -33,6 +33,7 @@
   #include <stdint.h>
   #include <sys/mman.h>
@@ -2626,7 +2626,7 @@ Index: git/malloc/memusage.c
 
   #include <memusage.h>
 
-@@ -93,7 +94,11 @@
+@@ -93,7 +94,11 @@ static __thread uintptr_t start_sp;
   #define peak_stack      peak_use[1]
   #define peak_total      peak_use[2]
 
@@ -2641,9 +2641,9 @@ Index: git/malloc/memusage.c
   static int fd = -1;
  Index: git/malloc/memusage.sh
  ===================================================================
---- git.orig/malloc/memusage.sh    2014-08-29 20:00:47.768070587 -0700
-+++ git/malloc/memusage.sh    2014-08-29 20:01:15.212070587 -0700
-@@ -35,7 +35,7 @@
+--- git.orig/malloc/memusage.sh
++++ git/malloc/memusage.sh
+@@ -35,7 +35,7 @@ do_missing_arg() {
 
   # Print help message
   do_help() {
@@ -2654,9 +2654,9 @@ Index: git/malloc/memusage.sh
      -n,--progname=NAME     Name of the program file to profile
  Index: git/math/Makefile
  ===================================================================
---- git.orig/math/Makefile    2014-08-29 20:00:47.836070587 -0700
-+++ git/math/Makefile    2014-08-29 20:01:15.212070587 -0700
-@@ -21,6 +21,8 @@
+--- git.orig/math/Makefile
++++ git/math/Makefile
+@@ -21,6 +21,8 @@ subdir        := math
 
   include ../Makeconfig
 
@@ -2665,7 +2665,7 @@ Index: git/math/Makefile
   # Installed header files.
   headers        := math.h bits/mathcalls.h bits/mathinline.h
 bits/huge_val.h \
              bits/huge_valf.h bits/huge_vall.h bits/inf.h bits/nan.h \
-@@ -33,8 +35,8 @@
+@@ -33,8 +35,8 @@ aux        := setfpucw fpu_control
 
   # Build the -lm library.
@@ -2678,8 +2678,8 @@ Index: git/math/Makefile
              fclrexcpt fgetexcptflg fraiseexcpt fsetexcptflg        \
  Index: git/misc/err.c
  ===================================================================
---- git.orig/misc/err.c    2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/err.c    2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/err.c
++++ git/misc/err.c
  @@ -22,6 +22,7 @@
   #include <errno.h>
   #include <string.h>
@@ -2688,7 +2688,7 @@ Index: git/misc/err.c
 
   #include <wchar.h>
   #define flockfile(s) _IO_flockfile (s)
-@@ -37,6 +38,7 @@
+@@ -37,6 +38,7 @@ extern char *__progname;
     va_end (ap);                                      \
   }
 
@@ -2696,7 +2696,7 @@ Index: git/misc/err.c
   static void
   convert_and_print (const char *format, __gnuc_va_list ap)
   {
-@@ -81,6 +83,7 @@
+@@ -81,6 +83,7 @@ convert_and_print (const char *format, _
 
     __vfwprintf (stderr, wformat, ap);
   }
@@ -2704,7 +2704,7 @@ Index: git/misc/err.c
 
   void
   vwarnx (const char *format, __gnuc_va_list ap)
-@@ -88,9 +91,13 @@
+@@ -88,9 +91,13 @@ vwarnx (const char *format, __gnuc_va_li
     flockfile (stderr);
     if (_IO_fwide (stderr, 0) > 0)
       {
@@ -2718,7 +2718,7 @@ Index: git/misc/err.c
       }
     else
       {
-@@ -111,6 +118,7 @@
+@@ -111,6 +118,7 @@ vwarn (const char *format, __gnuc_va_lis
     flockfile (stderr);
     if (_IO_fwide (stderr, 0) > 0)
       {
@@ -2726,7 +2726,7 @@ Index: git/misc/err.c
         __fwprintf (stderr, L"%s: ", __progname);
         if (format)
       {
-@@ -119,6 +127,9 @@
+@@ -119,6 +127,9 @@ vwarn (const char *format, __gnuc_va_lis
       }
         __set_errno (error);
         __fwprintf (stderr, L"%m\n");
@@ -2738,8 +2738,8 @@ Index: git/misc/err.c
       {
  Index: git/misc/error.c
  ===================================================================
---- git.orig/misc/error.c    2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/error.c    2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/error.c
++++ git/misc/error.c
  @@ -35,6 +35,7 @@
   #endif
 
@@ -2748,7 +2748,7 @@ Index: git/misc/error.c
   # include <libintl.h>
   # include <stdbool.h>
   # include <stdint.h>
-@@ -205,6 +206,7 @@
+@@ -205,6 +206,7 @@ error_tail (int status, int errnum, cons
   #if _LIBC
     if (_IO_fwide (stderr, 0) > 0)
       {
@@ -2756,7 +2756,7 @@ Index: git/misc/error.c
         size_t len = strlen (message) + 1;
         wchar_t *wmessage = NULL;
         mbstate_t st;
-@@ -265,6 +267,9 @@
+@@ -265,6 +267,9 @@ error_tail (int status, int errnum, cons
 
         if (use_malloc)
       free (wmessage);
@@ -2768,8 +2768,8 @@ Index: git/misc/error.c
   #endif
  Index: git/misc/Makefile
  ===================================================================
---- git.orig/misc/Makefile    2014-08-29 20:00:48.232070587 -0700
-+++ git/misc/Makefile    2014-08-29 20:01:15.212070587 -0700
+--- git.orig/misc/Makefile
++++ git/misc/Makefile
  @@ -19,6 +19,10 @@
   #    Sub-makefile for misc portion of the library.
   #
@@ -2781,7 +2781,7 @@ Index: git/misc/Makefile
   subdir    := misc
 
   include ../Makeconfig
-@@ -46,40 +50,47 @@
+@@ -46,40 +50,47 @@ routines := brk sbrk sstk ioctl \
           select pselect \
           acct chroot fsync sync fdatasync syncfs reboot \
           gethostid sethostid \
@@ -2838,9 +2838,9 @@ Index: git/misc/Makefile
   CFLAGS-tsearch.c = $(uses-callbacks)
  Index: git/misc/sys/xattr.h
  ===================================================================
---- git.orig/misc/sys/xattr.h    2014-08-29 20:00:52.644070587 -0700
-+++ git/misc/sys/xattr.h    2014-08-29 20:01:15.216070587 -0700
-@@ -26,7 +26,6 @@
+--- git.orig/misc/sys/xattr.h
++++ git/misc/sys/xattr.h
+@@ -26,7 +26,6 @@ __BEGIN_DECLS
 
   /* The following constants should be used for the fifth parameter of
      `*setxattr'.  */
@@ -2848,7 +2848,7 @@ Index: git/misc/sys/xattr.h
   enum
   {
     XATTR_CREATE = 1,    /* set value, fail if attr already exists.  */
-@@ -34,7 +33,6 @@
+@@ -34,7 +33,6 @@ enum
     XATTR_REPLACE = 2    /* set value, fail if attr does not exist.  */
   #define XATTR_REPLACE    XATTR_REPLACE
   };
@@ -2858,9 +2858,9 @@ Index: git/misc/sys/xattr.h
      is SIZE bytes long).  Return 0 on success, -1 for errors.  */
  Index: git/misc/tst-efgcvt.c
  ===================================================================
---- git.orig/misc/tst-efgcvt.c    2014-08-29 20:00:52.652070587 -0700
-+++ git/misc/tst-efgcvt.c    2014-08-29 20:01:15.216070587 -0700
-@@ -59,7 +59,7 @@
+--- git.orig/misc/tst-efgcvt.c
++++ git/misc/tst-efgcvt.c
+@@ -59,7 +59,7 @@ static testcase ecvt_tests[] =
     { 123.01, -4, 3, "" },
     { 126.71, -4, 3, "" },
     { 0.0, 4, 1, "0000" },
@@ -2871,8 +2871,8 @@ Index: git/misc/tst-efgcvt.c
   #endif
  Index: git/nis/Makefile
  ===================================================================
---- git.orig/nis/Makefile    2014-08-29 20:00:52.660070587 -0700
-+++ git/nis/Makefile    2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nis/Makefile
++++ git/nis/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Makefile for NIS/NIS+ part.
@@ -2882,7 +2882,7 @@ Index: git/nis/Makefile
   subdir    := nis
 
   include ../Makeconfig
-@@ -30,19 +32,26 @@
+@@ -30,19 +32,26 @@ endif
 
   # These are the databases available for the nis (and perhaps later
 nisplus)
   # service.  This must be a superset of the services in nss.
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +6 -6
@@ -2915,7 +2915,7 @@ Index: git/nis/Makefile
   vpath %.c $(subdir-dirs)
 
   libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
-@@ -60,11 +69,11 @@
+@@ -60,11 +69,11 @@ libnsl-routines = yp_xdr ypclnt ypupdate
   libnss_compat-routines    := $(addprefix compat-,grp pwd spwd
 initgroups)
   libnss_compat-inhibit-o    = $(filter-out .os,$(object-suffixes))
@@ -2929,7 +2929,7 @@ Index: git/nis/Makefile
                  nss-nisplus nisplus-initgroups
   libnss_nisplus-inhibit-o = $(filter-out .os,$(object-suffixes))
 
-@@ -80,12 +89,12 @@
+@@ -80,12 +89,12 @@ libnsl-libc = $(common-objpfx)linkobj/li
   # Target-specific variable setting to link objects using deprecated
   # RPC interfaces with the version of libc.so that makes them available
   # for new links:
@@ -2947,8 +2947,8 @@ Index: git/nis/Makefile
   endif
  Index: git/nptl/Makefile
  ===================================================================
---- git.orig/nptl/Makefile    2014-08-29 20:00:52.704070587 -0700
-+++ git/nptl/Makefile    2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nptl/Makefile
++++ git/nptl/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for NPTL portion of the library.
@@ -2958,7 +2958,7 @@ Index: git/nptl/Makefile
   subdir    := nptl
 
   include ../Makeconfig
-@@ -116,7 +118,7 @@
+@@ -116,7 +118,7 @@ libpthread-routines = nptl-init vars eve
                 pt-raise pt-system \
                 flockfile ftrylockfile funlockfile \
                 sigaction \
@@ -2967,7 +2967,7 @@ Index: git/nptl/Makefile
                 pthread_kill_other_threads \
                 pthread_getaffinity pthread_setaffinity \
                 pthread_attr_getaffinity pthread_attr_setaffinity \
-@@ -136,6 +138,8 @@
+@@ -136,6 +138,8 @@ libpthread-routines = nptl-init vars eve
   #              pthread_setgid pthread_setegid pthread_setregid \
   #              pthread_setresgid
 
@@ -2976,7 +2976,7 @@ Index: git/nptl/Makefile
   libpthread-shared-only-routines = version pt-allocrtsig

unwind-forcedunwind
libpthread-static-only-routines = pthread_atfork

-@@ -210,7 +214,7 @@
+@@ -210,7 +214,7 @@ tests = tst-typesizes \
tst-mutexpi1 tst-mutexpi2 tst-mutexpi3 tst-mutexpi4 tst-mutexpi5 \
tst-mutexpi5a tst-mutexpi6 tst-mutexpi7 tst-mutexpi7a

tst-mutexpi8 \
       tst-mutexpi9 \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -2985,7 +2985,7 @@ Index: git/nptl/Makefile
       tst-cond1 tst-cond2 tst-cond3 tst-cond4 tst-cond5 tst-cond6
 tst-cond7 \
       tst-cond8 tst-cond9 tst-cond10 tst-cond11 tst-cond12 tst-cond13 \
       tst-cond14 tst-cond15 tst-cond16 tst-cond17 tst-cond18
 tst-cond19 \
-@@ -244,14 +248,14 @@
+@@ -244,14 +248,14 @@ tests = tst-typesizes \
       tst-cancel6 tst-cancel7 tst-cancel8 tst-cancel9 tst-cancel10 \
       tst-cancel11 tst-cancel12 tst-cancel13 tst-cancel14 tst-cancel15 \
       tst-cancel16 tst-cancel17 tst-cancel18 tst-cancel19 tst-cancel20 \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +14 -15
@@ -3002,7 +3002,7 @@ Index: git/nptl/Makefile
       tst-exit1 tst-exit2 tst-exit3 \
       tst-stdio1 tst-stdio2 \
       tst-stack1 tst-stack2 tst-stack3 tst-pthread-getattr \
-@@ -259,13 +263,12 @@
+@@ -259,13 +263,12 @@ tests = tst-typesizes \
       tst-unload \
       tst-dlsym1 \
       tst-sysconf \
@@ -3017,7 +3017,7 @@ Index: git/nptl/Makefile
       tst-abstime \
       tst-vfork1 tst-vfork2 tst-vfork1x tst-vfork2x \
       tst-getpid1 tst-getpid2 tst-getpid3 \
-@@ -275,6 +278,17 @@
+@@ -275,6 +278,17 @@ xtests = tst-setuid1 tst-setuid1-static
       tst-mutexpp1 tst-mutexpp6 tst-mutexpp10
   test-srcs = tst-oddstacklimit
 
@@ -3037,8 +3037,8 @@ Index: git/nptl/Makefile
 
  Index: git/nptl/pthread_create.c
  ===================================================================
---- git.orig/nptl/pthread_create.c    2014-08-29 20:00:52.764070587
-0700
-+++ git/nptl/pthread_create.c    2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nptl/pthread_create.c
++++ git/nptl/pthread_create.c
  @@ -31,6 +31,7 @@
   #include <kernel-features.h>
   #include <exit-thread.h>
@@ -3047,7 +3047,7 @@ Index: git/nptl/pthread_create.c
   #include <shlib-compat.h>
 
   #include <stap-probe.h>
-@@ -240,8 +241,10 @@
+@@ -240,8 +241,10 @@ start_thread (void *arg)
     THREAD_SETMEM (pd, cpuclock_offset, now);
   #endif
 
@@ -3058,7 +3058,7 @@ Index: git/nptl/pthread_create.c
 
     /* Initialize pointers to locale data.  */
     __ctype_init ();
-@@ -322,8 +325,10 @@
+@@ -322,8 +325,10 @@ start_thread (void *arg)
     /* Run the destructor for the thread-local data.  */
     __nptl_deallocate_tsd ();
 
@@ -3071,8 +3071,8 @@ Index: git/nptl/pthread_create.c
        do not notify the debugger, it might just irritate it if there
  Index: git/nscd/Makefile
  ===================================================================
---- git.orig/nscd/Makefile    2014-08-29 20:00:52.948070587 -0700
-+++ git/nscd/Makefile    2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nscd/Makefile
++++ git/nscd/Makefile
  @@ -18,14 +18,17 @@
   #
   #    Sub-makefile for nscd portion of the library.
@@ -3093,7 +3093,7 @@ Index: git/nscd/Makefile
   endif
 
   # To find xmalloc.c
-@@ -37,14 +40,18 @@
+@@ -37,14 +40,18 @@ nscd-modules := nscd connections pwdcach
           dbg_log nscd_conf nscd_stat cache mem nscd_setup_thread \
           xmalloc xstrdup aicache initgrcache gai res_hconf \
           netgroupcache
@@ -3117,7 +3117,7 @@ Index: git/nscd/Makefile
 
   endif
 
-@@ -101,7 +108,15 @@
+@@ -101,7 +108,15 @@ include $(patsubst %,$(..)cppflags-itera
   $(objpfx)nscd: $(nscd-modules:%=$(objpfx)%.o)
 
   ifeq ($(build-shared),yes)
@@ -3137,16 +3137,16 @@ Index: git/nscd/Makefile
   endif
  Index: git/nscd/nis_hash.c
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/nscd/nis_hash.c    2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nscd/nis_hash.c
  @@ -0,0 +1,3 @@
  +/* If OPTION_EGLIBC_NIS is disabled, nscd can't get this from
 libnsl.so;
  +   we need our own copy.  */
  +#include "../nis/nis_hash.c"
  Index: git/nss/fixed-nsswitch.conf
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/fixed-nsswitch.conf    2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/fixed-nsswitch.conf
  @@ -0,0 +1,22 @@
  +# /etc/nsswitch.conf

+#

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +4 -5
@@ -3172,8 +3172,8 @@ Index: git/nss/fixed-nsswitch.conf
  +netgroup:       files
  Index: git/nss/fixed-nsswitch.functions
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/fixed-nsswitch.functions    2014-08-29 20:01:15.216070587
-0700
+--- /dev/null
++++ git/nss/fixed-nsswitch.functions
  @@ -0,0 +1,121 @@
  +/* List of functions defined for fixed NSS in GNU C Library.
  +   Copyright (C) 1996, 1997, 1998, 2005 Free Software Foundation, Inc.
@@ -3298,8 +3298,8 @@ Index: git/nss/fixed-nsswitch.functions
  +DEFINE_GET (shadow, files, spnam)
  Index: git/nss/gen-fixed-nsswitch.c
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/nss/gen-fixed-nsswitch.c    2014-08-29 20:01:15.216070587 -0700
+--- /dev/null
++++ git/nss/gen-fixed-nsswitch.c
  @@ -0,0 +1,803 @@
  +/* gen-fixed-nsswitch.c --- generate fixed name service data

structures
+ Copyright (C) 1996-1999, 2001-2006, 2007 Free Software
Foundation, Inc.

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +16 -15
@@ -4106,8 +4106,8 @@ Index: git/nss/gen-fixed-nsswitch.c
  +}
  Index: git/nss/getent.c
  ===================================================================
---- git.orig/nss/getent.c    2014-08-29 20:00:52.976070587 -0700
-+++ git/nss/getent.c    2014-08-29 20:01:15.216070587 -0700
+--- git.orig/nss/getent.c
++++ git/nss/getent.c
  @@ -39,6 +39,7 @@
   #include <netinet/ether.h>
   #include <netinet/in.h>
@@ -4116,7 +4116,7 @@ Index: git/nss/getent.c
 
   /* Get libc version number.  */
   #include <version.h>
-@@ -91,6 +92,7 @@
+@@ -91,6 +92,7 @@ warranty; not even for MERCHANTABILITY o
     fprintf (stream, gettext ("Written by %s.\n"), "Thorsten Kukuk");
   }
 
@@ -4124,7 +4124,7 @@ Index: git/nss/getent.c
   /* This is for aliases */
   static void
   print_aliases (struct aliasent *alias)
-@@ -135,7 +137,9 @@
+@@ -135,7 +137,9 @@ aliases_keys (int number, char *key[])
 
     return result;
   }
@@ -4134,7 +4134,7 @@ Index: git/nss/getent.c
   /* This is for ethers */
   static int
   ethers_keys (int number, char *key[])
-@@ -179,6 +183,7 @@
+@@ -179,6 +183,7 @@ ethers_keys (int number, char *key[])
 
     return result;
   }
@@ -4142,7 +4142,7 @@ Index: git/nss/getent.c
 
   /* This is for group */
   static void
-@@ -301,6 +306,7 @@
+@@ -301,6 +306,7 @@ gshadow_keys (int number, char *key[])
     return result;
   }
 
@@ -4150,7 +4150,7 @@ Index: git/nss/getent.c
   /* This is for hosts */
   static void
   print_hosts (struct hostent *host)
-@@ -598,6 +604,7 @@
+@@ -598,6 +604,7 @@ networks_keys (int number, char *key[])
 
     return result;
   }
@@ -4158,7 +4158,7 @@ Index: git/nss/getent.c
 
   /* Now is all for passwd */
   static void
-@@ -650,6 +657,7 @@
+@@ -650,6 +657,7 @@ passwd_keys (int number, char *key[])
     return result;
   }
 
@@ -4166,7 +4166,7 @@ Index: git/nss/getent.c
   /* This is for protocols */
   static void
   print_protocols (struct protoent *proto)
-@@ -805,6 +813,7 @@
+@@ -805,6 +813,7 @@ services_keys (int number, char *key[])
 
     return result;
   }
@@ -4174,7 +4174,7 @@ Index: git/nss/getent.c
 
   /* This is for shadow */
   static void
-@@ -871,21 +880,34 @@
+@@ -871,21 +880,34 @@ struct
     } databases[] =
     {
   #define D(name) { #name, name ## _keys },
@@ -4204,10 +4204,11 @@ Index: git/nss/getent.c
   D(group)
   D(gshadow)
  -D(hosts)
-+DN(hosts)
- D(initgroups)
+-D(initgroups)
  -D(netgroup)
  -D(networks)
++DN(hosts)
++DN(initgroups)
  +DN(netgroup)
  +DN(networks)
   D(passwd)
@@ -4222,8 +4223,8 @@ Index: git/nss/getent.c
       { NULL, NULL }
  Index: git/nss/getnssent_r.c
  ===================================================================
---- git.orig/nss/getnssent_r.c    2014-08-29 20:00:52.976070587 -0700
-+++ git/nss/getnssent_r.c    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/getnssent_r.c
++++ git/nss/getnssent_r.c
  @@ -16,6 +16,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -4232,7 +4233,7 @@ Index: git/nss/getnssent_r.c
   #include <netdb.h>
   #include "nsswitch.h"
 
-@@ -59,11 +60,13 @@
+@@ -59,11 +60,13 @@ __nss_setent (const char *func_name, db_
     } fct;
     int no_more;
 
@@ -4246,7 +4247,7 @@ Index: git/nss/getnssent_r.c
 
     /* Cycle through the services and run their `setXXent' functions

until
we find an available service. */
-@@ -101,11 +104,13 @@
+@@ -101,11 +104,13 @@ __nss_endent (const char *func_name, db_

     } fct;
     int no_more;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -4260,7 +4261,7 @@ Index: git/nss/getnssent_r.c
 
     /* Cycle through all the services and run their endXXent

functions. */

     no_more = setup (func_name, lookup_fct, &fct.ptr, nip, startp, 1);
-@@ -141,12 +146,14 @@
+@@ -141,12 +146,14 @@ __nss_getent_r (const char *getent_func_
     int no_more;
     enum nss_status status;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +8 -8
@@ -4275,7 +4276,7 @@ Index: git/nss/getnssent_r.c
 
     /* Initialize status to return if no more functions are found.  */
     status = NSS_STATUS_NOTFOUND;
-@@ -161,7 +168,7 @@
+@@ -161,7 +168,7 @@ __nss_getent_r (const char *getent_func_
         int is_last_nip = *nip == *last_nip;
 
         status = DL_CALL_FCT (fct.f,
@@ -4286,8 +4287,8 @@ Index: git/nss/getnssent_r.c
        provided buffer is too small.  In this case we should give
  Index: git/nss/Makefile
  ===================================================================
---- git.orig/nss/Makefile    2014-08-29 20:00:52.972070587 -0700
-+++ git/nss/Makefile    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/Makefile
++++ git/nss/Makefile
  @@ -18,29 +18,36 @@
   #
   #    Makefile for name service switch.
@@ -4333,7 +4334,7 @@ Index: git/nss/Makefile
 
   # Specify rules for the nss_* modules.  We have some services.
   services        := files db
-@@ -55,7 +62,7 @@
+@@ -55,7 +62,7 @@ subdir-dirs = $(services:%=nss_%)
   vpath %.c $(subdir-dirs) ../locale/programs ../intl
 
 
@@ -4342,7 +4343,7 @@ Index: git/nss/Makefile
                  files-initgroups files-have_o_cloexec files-init
 
   libnss_db-dbs        := $(addprefix db-,\
-@@ -78,6 +85,45 @@
+@@ -78,6 +85,45 @@ tests-static        = tst-nss-static
   tests            += $(tests-static)
   endif
 
@@ -4390,8 +4391,8 @@ Index: git/nss/Makefile
   ifeq (yes,$(have-selinux))
  Index: git/nss/nsswitch.c
  ===================================================================
---- git.orig/nss/nsswitch.c    2014-08-29 20:00:53.004070587 -0700
-+++ git/nss/nsswitch.c    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/nss/nsswitch.c
++++ git/nss/nsswitch.c
  @@ -26,6 +26,7 @@
   #include <stdio_ext.h>
   #include <stdlib.h>
@@ -4416,7 +4417,7 @@ Index: git/nss/nsswitch.c
   /* Prototypes for the local functions.  */
   static name_database *nss_parse_file (const char *fname)
 internal_function;
   static name_database_entry *nss_getline (char *line)
 internal_function;
-@@ -79,6 +89,9 @@
+@@ -79,6 +89,9 @@ bool __nss_database_custom[NSS_DBSIDX_ma
 

__libc_lock_define_initialized (static, lock)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -3
@@ -4426,7 +4427,7 @@ Index: git/nss/nsswitch.c
   #if !defined DO_STATIC_NSS || defined SHARED
   /* String with revision number of the shared object files.  */
   static const char *const __nss_shlib_revision = LIBNSS_FILES_SO + 15;
-@@ -93,6 +106,20 @@
+@@ -93,6 +106,20 @@ static name_database *service_table;
      __libc_freeres.  */
   static name_database_entry *defconfig_entries;
 
@@ -4447,7 +4448,7 @@ Index: git/nss/nsswitch.c
 
   #ifdef USE_NSCD
   /* Nonzero if this is the nscd process.  */
-@@ -109,20 +136,22 @@
+@@ -109,20 +136,22 @@ __nss_database_lookup (const char *datab
                  const char *defconfig, service_user **ni)
   {
     /* Prevent multiple threads to change the service table.  */
@@ -4472,7 +4473,7 @@ Index: git/nss/nsswitch.c
 
     /* Test whether configuration data is available.  */
     if (service_table != NULL)
-@@ -144,6 +173,7 @@
+@@ -144,6 +173,7 @@ __nss_database_lookup (const char *datab
           *ni = entry->service;
       }
 
@@ -4480,7 +4481,7 @@ Index: git/nss/nsswitch.c
     /* No configuration data is available, either because nsswitch.conf
        doesn't exist or because it doesn't have a line for this

database.

-@@ -166,13 +196,23 @@
+@@ -166,13 +196,23 @@ __nss_database_lookup (const char *datab

           {
             entry->next = defconfig_entries;
             entry->service = *ni;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2
@@ -4506,7 +4507,7 @@ Index: git/nss/nsswitch.c
 
     return *ni != NULL ? 0 : -1;
   }
-@@ -252,6 +292,7 @@
+@@ -252,6 +292,7 @@ __nss_next2 (service_user **ni, const ch
   libc_hidden_def (__nss_next2)
 
 
@@ -4514,7 +4515,7 @@ Index: git/nss/nsswitch.c
   int
   attribute_compat_text_section
   __nss_next (service_user **ni, const char *fct_name, void **fctp,
 int status,
-@@ -300,13 +341,13 @@
+@@ -300,13 +341,13 @@ __nss_configure_lookup (const char *dbna
       }
 
     /* Prevent multiple threads to change the service table.  */
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +6 -6
@@ -4530,7 +4531,7 @@ Index: git/nss/nsswitch.c
 
     return 0;
   }
-@@ -402,7 +443,7 @@
+@@ -402,7 +443,7 @@ __nss_lookup_function (service_user *ni,
     void **found, *result;
 
     /* We now modify global data.  Protect it.  */
@@ -4539,7 +4540,7 @@ Index: git/nss/nsswitch.c
 
     /* Search the tree of functions previously requested.  Data in the
        tree are `known_function' structures, whose first member is a
-@@ -413,7 +454,7 @@
+@@ -413,7 +454,7 @@ __nss_lookup_function (service_user *ni,
        enough to a pointer to our structure to use as a lookup key that
        will be passed to `known_compare' (above).  */
 
@@ -4548,7 +4549,7 @@ Index: git/nss/nsswitch.c
     if (found == NULL)
       /* This means out-of-memory.  */
       result = NULL;
-@@ -440,7 +481,7 @@
+@@ -440,7 +481,7 @@ __nss_lookup_function (service_user *ni,
   #endif
         /* Oops.  We can't instantiate this node properly.
            Remove it from the tree.  */
@@ -4557,7 +4558,7 @@ Index: git/nss/nsswitch.c
         free (known);
         result = NULL;
       }
-@@ -520,13 +561,43 @@
+@@ -520,13 +561,43 @@ __nss_lookup_function (service_user *ni,
       }
 
     /* Remove the lock.  */
@@ -4602,7 +4603,7 @@ Index: git/nss/nsswitch.c
   static name_database *
   internal_function
   nss_parse_file (const char *fname)
-@@ -632,8 +703,10 @@
+@@ -632,8 +703,10 @@ nss_parse_service_list (const char *line
                            + (line - name + 1));
         if (new_service == NULL)
       return result;
@@ -4614,7 +4615,7 @@ Index: git/nss/nsswitch.c
 
         /* Set default actions.  */
         new_service->actions[2 + NSS_STATUS_TRYAGAIN] =
 NSS_ACTION_CONTINUE;
-@@ -642,7 +715,7 @@
+@@ -642,7 +715,7 @@ nss_parse_service_list (const char *line
         new_service->actions[2 + NSS_STATUS_SUCCESS] =
 NSS_ACTION_RETURN;
         new_service->actions[2 + NSS_STATUS_RETURN] = NSS_ACTION_RETURN;
         new_service->library = NULL;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -4623,7 +4624,7 @@ Index: git/nss/nsswitch.c
         new_service->next = NULL;
 
         while (isspace (line[0]))
-@@ -778,9 +851,10 @@
+@@ -778,9 +851,10 @@ nss_getline (char *line)
     result = (name_database_entry *) malloc (sizeof
 (name_database_entry) + len);
     if (result == NULL)
       return NULL;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +34 -34
@@ -4635,7 +4636,7 @@ Index: git/nss/nsswitch.c
 
     /* Parse the list of services.  */
     result->service = nss_parse_service_list (line);
-@@ -816,6 +890,7 @@
+@@ -816,6 +890,7 @@ nss_new_service (name_database *database
     return *currentp;
   }
   #endif
@@ -4643,7 +4644,7 @@ Index: git/nss/nsswitch.c
 
 
   #if defined SHARED && defined USE_NSCD
-@@ -834,6 +909,7 @@
+@@ -834,6 +909,7 @@ nss_load_all_libraries (const char *serv
   }
 
 
@@ -4651,7 +4652,7 @@ Index: git/nss/nsswitch.c
   /* Called by nscd and nscd alone.  */
   void
   __nss_disable_nscd (void (*cb) (size_t, struct traced_file *))
-@@ -857,8 +933,10 @@
+@@ -857,8 +933,10 @@ __nss_disable_nscd (void (*cb) (size_t,
     __nss_not_use_nscd_services = -1;
     __nss_not_use_nscd_netgroup = -1;
   }
@@ -4662,7 +4663,7 @@ Index: git/nss/nsswitch.c
   static void
   free_database_entries (name_database_entry *entry)
   {
-@@ -871,8 +949,8 @@
+@@ -871,8 +949,8 @@ free_database_entries (name_database_ent
       {
         service_user *olds = service;
 
@@ -4673,16 +4674,16 @@ Index: git/nss/nsswitch.c
 
         service = service->next;
         free (olds);
-@@ -926,3 +1004,4 @@
+@@ -926,3 +1004,4 @@ libc_freeres_fn (free_mem)
 
     free (top);
   }
  +#endif /* __OPTION_EGLIBC_NSSWITCH */
  Index: git/nss/nsswitch.h
  ===================================================================
---- git.orig/nss/nsswitch.h    2014-08-29 20:00:53.012070587 -0700
-+++ git/nss/nsswitch.h    2014-08-29 20:01:15.220070587 -0700
-@@ -65,10 +65,20 @@
+--- git.orig/nss/nsswitch.h
++++ git/nss/nsswitch.h
+@@ -65,10 +65,20 @@ typedef struct service_user
     lookup_actions actions[5];
     /* Link to the underlying library object.  */
     service_library *library;
@@ -4706,7 +4707,7 @@ Index: git/nss/nsswitch.h
   } service_user;
 
   /* To access the action based on the status value use this macro.  */
-@@ -82,7 +92,7 @@
+@@ -82,7 +92,7 @@ typedef struct name_database_entry
     /* List of service to be used.  */
     service_user *service;
     /* Name of the database.  */
@@ -4717,8 +4718,8 @@ Index: git/nss/nsswitch.h
 
  Index: git/posix/bug-regex1.c
  ===================================================================
---- git.orig/posix/bug-regex1.c    2014-08-29 20:00:53.184070587 -0700
-+++ git/posix/bug-regex1.c    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/bug-regex1.c
++++ git/posix/bug-regex1.c
  @@ -4,6 +4,7 @@
   #include <string.h>
   #include <regex.h>
@@ -4727,7 +4728,7 @@ Index: git/posix/bug-regex1.c
 
   int
   main (void)
-@@ -17,7 +18,9 @@
+@@ -17,7 +18,9 @@ main (void)
     memset (&regex, '\0', sizeof (regex));
 
     setlocale (LC_ALL, "de_DE.ISO-8859-1");
@@ -4739,8 +4740,8 @@ Index: git/posix/bug-regex1.c
 
  Index: git/posix/bug-regex6.c
  ===================================================================
---- git.orig/posix/bug-regex6.c    2014-08-29 20:00:53.204070587 -0700
-+++ git/posix/bug-regex6.c    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/bug-regex6.c
++++ git/posix/bug-regex6.c
  @@ -22,6 +22,7 @@
   #include <string.h>
   #include <sys/types.h>
@@ -4749,7 +4750,7 @@ Index: git/posix/bug-regex6.c
 
 
   int
-@@ -30,7 +31,12 @@
+@@ -30,7 +31,12 @@ main (int argc, char *argv[])
     regex_t re;
     regmatch_t mat[10];
     int i, j, ret = 0;
@@ -4765,8 +4766,8 @@ Index: git/posix/bug-regex6.c
       { 0, 48 }, { 0, 5 }, { 0, 4 }, { 5, 20 }, { 7, 20 }, { 20, 42 },
  Index: git/posix/fnmatch.c
  ===================================================================
---- git.orig/posix/fnmatch.c    2014-08-29 20:00:53.208070587 -0700
-+++ git/posix/fnmatch.c    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/fnmatch.c
++++ git/posix/fnmatch.c
  @@ -30,6 +30,10 @@
   #include <ctype.h>
   #include <string.h>
@@ -4778,7 +4779,7 @@ Index: git/posix/fnmatch.c
   #if defined STDC_HEADERS || defined _LIBC
   # include <stdlib.h>
   #endif
-@@ -131,7 +135,7 @@
+@@ -131,7 +135,7 @@ extern int fnmatch (const char *pattern,
   #   define ISWCTYPE(WC, WT)    iswctype (WC, WT)
   #  endif
 
@@ -4789,8 +4790,8 @@ Index: git/posix/fnmatch.c
   #  endif
  Index: git/posix/fnmatch_loop.c
  ===================================================================
---- git.orig/posix/fnmatch_loop.c    2014-08-29 20:00:53.220070587 -0700
-+++ git/posix/fnmatch_loop.c    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/fnmatch_loop.c
++++ git/posix/fnmatch_loop.c
  @@ -15,6 +15,8 @@
      License along with the GNU C Library; if not, see
      <http://www.gnu.org/licenses/>.  */
@@ -4800,7 +4801,7 @@ Index: git/posix/fnmatch_loop.c
   #include <stdint.h>
 
   struct STRUCT
-@@ -54,10 +56,15 @@
+@@ -54,10 +56,15 @@ FCT (pattern, string, string_end, no_lea
     const char *collseq = (const char *)
       _NL_CURRENT(LC_COLLATE, _NL_COLLATE_COLLSEQWC);
   # else
@@ -4818,7 +4819,7 @@ Index: git/posix/fnmatch_loop.c
 
     while ((c = *p++) != L('\0'))
       {
-@@ -277,7 +284,7 @@
+@@ -277,7 +284,7 @@ FCT (pattern, string, string_end, no_lea
               /* Leave room for the null.  */
               CHAR str[CHAR_CLASS_MAX_LENGTH + 1];
               size_t c1 = 0;
@@ -4827,7 +4828,7 @@ Index: git/posix/fnmatch_loop.c
               wctype_t wt;
   #endif
               const CHAR *startp = p;
-@@ -307,7 +314,7 @@
+@@ -307,7 +314,7 @@ FCT (pattern, string, string_end, no_lea
                 }
               str[c1] = L('\0');
 
@@ -4836,7 +4837,7 @@ Index: git/posix/fnmatch_loop.c
               wt = IS_CHAR_CLASS (str);
               if (wt == 0)
                 /* Invalid character class name.  */
-@@ -681,8 +688,10 @@
+@@ -681,8 +688,10 @@ FCT (pattern, string, string_end, no_lea
               else
                 lcollseq = __collseq_table_lookup (collseq, cold);
   # else
@@ -4849,7 +4850,7 @@ Index: git/posix/fnmatch_loop.c
   # endif
 
               is_seqval = 0;
-@@ -858,7 +867,7 @@
+@@ -858,7 +867,7 @@ FCT (pattern, string, string_end, no_lea
                       goto matched;
                     }
   # else
@@ -4860,8 +4861,8 @@ Index: git/posix/fnmatch_loop.c
 
  Index: git/posix/glob.c
  ===================================================================
---- git.orig/posix/glob.c    2014-08-29 20:00:53.232070587 -0700
-+++ git/posix/glob.c    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/glob.c
++++ git/posix/glob.c
  @@ -25,6 +25,9 @@
   #include <sys/types.h>
   #include <sys/stat.h>
@@ -4872,7 +4873,7 @@ Index: git/posix/glob.c
 
   /* Outcomment the following line for production quality code.  */
   /* #define NDEBUG 1 */
-@@ -607,6 +610,7 @@
+@@ -607,6 +610,7 @@ glob (pattern, flags, errfunc, pglob)
         if (home_dir == NULL || home_dir[0] == '\0')
           home_dir = "c:/users/default"; /* poor default */
   #  else
@@ -4880,7 +4881,7 @@ Index: git/posix/glob.c
         if (home_dir == NULL || home_dir[0] == '\0')
           {
             int success;
-@@ -623,19 +627,19 @@
+@@ -623,19 +627,19 @@ glob (pattern, flags, errfunc, pglob)
             if (success)
           {
             struct passwd *p;
@@ -4903,7 +4904,7 @@ Index: git/posix/glob.c
             if (__libc_use_alloca (alloca_used + pwbuflen))
               pwtmpbuf = alloca_account (pwbuflen, alloca_used);
             else
-@@ -682,9 +686,9 @@
+@@ -682,9 +686,9 @@ glob (pattern, flags, errfunc, pglob)
               }
                 __set_errno (save);
               }
@@ -4915,7 +4916,7 @@ Index: git/posix/glob.c
             if (p != NULL)
               {
                 if (!malloc_pwtmpbuf)
-@@ -713,6 +717,7 @@
+@@ -713,6 +717,7 @@ glob (pattern, flags, errfunc, pglob)
               }
           }
           }
@@ -4925,8 +4926,8 @@ Index: git/posix/glob.c
             if (flags & GLOB_TILDE_CHECK)
  Index: git/posix/Makefile
  ===================================================================
---- git.orig/posix/Makefile    2014-08-29 20:00:53.160070587 -0700
-+++ git/posix/Makefile    2014-08-29 20:01:15.220070587 -0700
+--- git.orig/posix/Makefile
++++ git/posix/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for POSIX portion of the library.
@@ -4936,7 +4937,7 @@ Index: git/posix/Makefile
   subdir    := posix
 
   include ../Makeconfig
-@@ -43,13 +45,24 @@
+@@ -43,13 +45,24 @@ routines :=                                      \
       getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid
 setsid          \
       getresuid getresgid setresuid setresgid                      \
       pathconf sysconf fpathconf                          \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -4963,7 +4964,7 @@ Index: git/posix/Makefile
       spawn_faction_init spawn_faction_destroy
 spawn_faction_addclose          \
       spawn_faction_addopen spawn_faction_adddup2                  \
       spawnattr_init spawnattr_destroy                      \
-@@ -57,41 +70,53 @@
+@@ -57,41 +70,53 @@ routines :=                                      \
       spawnattr_getflags spawnattr_setflags                      \
       spawnattr_getpgroup spawnattr_setpgroup spawn spawnp

spawni \
spawnattr_getsigmask spawnattr_getschedpolicy
spawnattr_getschedparam \

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +7 -7
@@ -5040,7 +5041,7 @@ Index: git/posix/Makefile
   endif
   tests-static    = tst-exec-static tst-spawn-static
   tests        += $(tests-static)
-@@ -117,7 +142,10 @@
+@@ -117,7 +142,10 @@ generated += $(addprefix wordexp-test-re
 
   ifeq ($(run-built-tests),yes)
   ifeq (yes,$(build-shared))
@@ -5052,7 +5053,7 @@ Index: git/posix/Makefile
   endif
   endif
 
-@@ -125,12 +153,16 @@
+@@ -125,12 +153,16 @@ endif
   # XXX Please note that for now we ignore the result of this test.
   tests-special += $(objpfx)annexc.out
   ifeq ($(run-built-tests),yes)
@@ -5072,7 +5073,7 @@ Index: git/posix/Makefile
   xtests-special += $(objpfx)bug-ga2-mem.out
   endif
 
-@@ -143,6 +175,8 @@
+@@ -143,6 +175,8 @@ $(objpfx)globtest.out: globtest.sh $(obj
       $(SHELL) $< $(common-objpfx) '$(test-via-rtld-prefix)' \
           '$(test-program-prefix)' '$(test-wrapper-env)'; \
       $(evaluate-test)
@@ -5081,7 +5082,7 @@ Index: git/posix/Makefile
   $(objpfx)wordexp-tst.out: wordexp-tst.sh $(objpfx)wordexp-test
       $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
            '$(run-program-env)' '$(test-program-prefix-after-env)'; \
-@@ -205,7 +239,10 @@
+@@ -205,7 +239,10 @@ tst-dir-ARGS = `pwd` `cd $(common-objdir
   tst-chmod-ARGS = $(objdir)
   tst-vfork3-ARGS = --test-dir=$(objpfx)
 
@@ -5095,8 +5096,8 @@ Index: git/posix/Makefile
   tst-boost-ARGS = BOOST.tests
  Index: git/posix/regcomp.c
  ===================================================================
---- git.orig/posix/regcomp.c    2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regcomp.c    2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regcomp.c
++++ git/posix/regcomp.c
  @@ -18,6 +18,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -5105,7 +5106,7 @@ Index: git/posix/regcomp.c
 
   static reg_errcode_t re_compile_internal (regex_t *preg, const char
 * pattern,
                         size_t length, reg_syntax_t syntax);
-@@ -305,7 +306,7 @@
+@@ -305,7 +306,7 @@ re_compile_fastmap_iter (regex_t *bufp,
   {
     re_dfa_t *dfa = (re_dfa_t *) bufp->buffer;
     int node_cnt;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -3
@@ -5114,7 +5115,7 @@ Index: git/posix/regcomp.c
     for (node_cnt = 0; node_cnt < init_state->nodes.nelem; ++node_cnt)
       {
         int node = init_state->nodes.elems[node_cnt];
-@@ -315,9 +316,9 @@
+@@ -315,9 +316,9 @@ re_compile_fastmap_iter (regex_t *bufp,
       {
         re_set_fastmap (fastmap, icase, dfa->nodes[node].opr.c);
   #ifdef RE_ENABLE_I18N
@@ -5126,7 +5127,7 @@ Index: git/posix/regcomp.c
             wchar_t wc;
             mbstate_t state;
 
-@@ -348,7 +349,11 @@
+@@ -348,7 +349,11 @@ re_compile_fastmap_iter (regex_t *bufp,
             re_set_fastmap (fastmap, icase, ch);
           }
       }
@@ -5139,7 +5140,7 @@ Index: git/posix/regcomp.c
         else if (type == COMPLEX_BRACKET)
       {
         re_charset_t *cset = dfa->nodes[node].opr.mbcset;
-@@ -376,7 +381,7 @@
+@@ -376,7 +381,7 @@ re_compile_fastmap_iter (regex_t *bufp,
            i.e. where we would not find an invalid sequence.  This only
            applies to multibyte character sets; for single byte

character
sets, the SIMPLE_BRACKET again suffices. */

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +8 -9
@@ -5148,7 +5149,7 @@ Index: git/posix/regcomp.c
             && (cset->nchar_classes || cset->non_match || cset->nranges
   # ifdef _LIBC
             || cset->nequiv_classes
-@@ -404,7 +409,7 @@
+@@ -404,7 +409,7 @@ re_compile_fastmap_iter (regex_t *bufp,
             memset (&state, '\0', sizeof (state));
             if (__wcrtomb (buf, cset->mbchars[i], &state) != (size_t)
-1)
               re_set_fastmap (fastmap, icase, *(unsigned char *) buf);
@@ -5157,7 +5158,7 @@ Index: git/posix/regcomp.c
               {
                 if (__wcrtomb (buf, towlower (cset->mbchars[i]), &state)
                 != (size_t) -1)
-@@ -413,7 +418,7 @@
+@@ -413,7 +418,7 @@ re_compile_fastmap_iter (regex_t *bufp,
           }
           }
       }
@@ -5166,7 +5167,7 @@ Index: git/posix/regcomp.c
         else if (type == OP_PERIOD
   #ifdef RE_ENABLE_I18N
              || type == OP_UTF8_PERIOD
-@@ -856,11 +861,15 @@
+@@ -856,11 +861,15 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
 
     dfa->mb_cur_max = MB_CUR_MAX;
   #ifdef _LIBC
@@ -5183,7 +5184,7 @@ Index: git/posix/regcomp.c
   #else
   # ifdef HAVE_LANGINFO_CODESET
     codeset_name = nl_langinfo (CODESET);
-@@ -886,7 +895,7 @@
+@@ -886,7 +895,7 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
   #endif
 
   #ifdef RE_ENABLE_I18N
@@ -5192,7 +5193,7 @@ Index: git/posix/regcomp.c
       {
         if (dfa->is_utf8)
       dfa->sb_char = (re_bitset_ptr_t) utf8_sb_map;
-@@ -1784,7 +1793,7 @@
+@@ -1784,7 +1793,7 @@ peek_token (re_token_t *token, re_string
     token->word_char = 0;
   #ifdef RE_ENABLE_I18N
     token->mb_partial = 0;
@@ -5201,7 +5202,7 @@ Index: git/posix/regcomp.c
         !re_string_first_byte (input, re_string_cur_idx (input)))
       {
         token->type = CHARACTER;
-@@ -1805,7 +1814,7 @@
+@@ -1805,7 +1814,7 @@ peek_token (re_token_t *token, re_string
         token->opr.c = c2;
         token->type = CHARACTER;
   #ifdef RE_ENABLE_I18N
@@ -5210,7 +5211,7 @@ Index: git/posix/regcomp.c
       {
         wint_t wc = re_string_wchar_at (input,
                         re_string_cur_idx (input) + 1);
-@@ -1919,7 +1928,7 @@
+@@ -1919,7 +1928,7 @@ peek_token (re_token_t *token, re_string
 
     token->type = CHARACTER;
   #ifdef RE_ENABLE_I18N
@@ -5219,7 +5220,7 @@ Index: git/posix/regcomp.c
       {
         wint_t wc = re_string_wchar_at (input, re_string_cur_idx
 (input));
         token->word_char = IS_WIDE_WORD_CHAR (wc) != 0;
-@@ -2019,7 +2028,7 @@
+@@ -2019,7 +2028,7 @@ peek_token_bracket (re_token_t *token, r
     token->opr.c = c;
 
   #ifdef RE_ENABLE_I18N
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2
@@ -5228,7 +5229,7 @@ Index: git/posix/regcomp.c
         !re_string_first_byte (input, re_string_cur_idx (input)))
       {
         token->type = CHARACTER;
-@@ -2242,7 +2251,7 @@
+@@ -2242,7 +2251,7 @@ parse_expression (re_string_t *regexp, r
         return NULL;
       }
   #ifdef RE_ENABLE_I18N
@@ -5237,7 +5238,7 @@ Index: git/posix/regcomp.c
       {
         while (!re_string_eoi (regexp)
            && !re_string_first_byte (regexp, re_string_cur_idx
 (regexp)))
-@@ -2380,7 +2389,7 @@
+@@ -2380,7 +2389,7 @@ parse_expression (re_string_t *regexp, r
         *err = REG_ESPACE;
         return NULL;
       }
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +14 -14
@@ -5246,7 +5247,7 @@ Index: git/posix/regcomp.c
       dfa->has_mb_node = 1;
         break;
       case OP_WORD:
-@@ -2686,7 +2695,7 @@
+@@ -2686,7 +2695,7 @@ build_range_exp (bitset_t sbcset, bracke
          However, for !_LIBC we have no collation elements: if the
          character set is single byte, the single byte character set
          that we build below suffices.  parse_bracket_exp passes
@@ -5255,7 +5256,7 @@ Index: git/posix/regcomp.c
       if (mbcset)
         {
       /* Check the space of the arrays.  */
-@@ -2782,7 +2791,13 @@
+@@ -2782,7 +2791,13 @@ parse_bracket_exp (re_string_t *regexp,
              reg_syntax_t syntax, reg_errcode_t *err)
   {
   #ifdef _LIBC
@@ -5269,7 +5270,7 @@ Index: git/posix/regcomp.c
     const char *collseqwc;
     uint32_t nrules;
     int32_t table_size;
-@@ -2830,18 +2845,20 @@
+@@ -2830,18 +2845,20 @@ parse_bracket_exp (re_string_t *regexp,
         if (MB_CUR_MAX == 1)
         */
         if (nrules == 0)
@@ -5291,7 +5292,7 @@ Index: git/posix/regcomp.c
         else if (br_elem->type == COLL_SYM)
       {
         size_t sym_name_len = strlen ((char *) br_elem->opr.name);
-@@ -2872,11 +2889,11 @@
+@@ -2872,11 +2889,11 @@ parse_bracket_exp (re_string_t *regexp,
           {
             /* No valid character.  Match it as a single byte
                character.  */
@@ -5305,7 +5306,7 @@ Index: git/posix/regcomp.c
       }
         return UINT_MAX;
       }
-@@ -2916,7 +2933,7 @@
+@@ -2916,7 +2933,7 @@ parse_bracket_exp (re_string_t *regexp,
        However, if we have no collation elements, and the character set
        is single byte, the single byte character set that we
        build below suffices. */
@@ -5314,7 +5315,7 @@ Index: git/posix/regcomp.c
       {
         /* Check the space of the arrays.  */
         if (BE (*range_alloc == mbcset->nranges, 0))
-@@ -2953,7 +2970,7 @@
+@@ -2953,7 +2970,7 @@ parse_bracket_exp (re_string_t *regexp,
         if (MB_CUR_MAX == 1)
         */
         if (nrules == 0)
@@ -5323,7 +5324,7 @@ Index: git/posix/regcomp.c
         else
           ch_collseq = __collseq_table_lookup (collseqwc, __btowc (ch));
         if (start_collseq <= ch_collseq && ch_collseq <= end_collseq)
-@@ -3031,7 +3048,10 @@
+@@ -3031,7 +3048,10 @@ parse_bracket_exp (re_string_t *regexp,
     re_bitset_ptr_t sbcset;
   #ifdef RE_ENABLE_I18N
     re_charset_t *mbcset;
@@ -5335,7 +5336,7 @@ Index: git/posix/regcomp.c
     int equiv_class_alloc = 0, char_class_alloc = 0;
   #endif /* not RE_ENABLE_I18N */
     int non_match = 0;
-@@ -3039,9 +3059,15 @@
+@@ -3039,9 +3059,15 @@ parse_bracket_exp (re_string_t *regexp,
     int token_len;
     int first_round = 1;
   #ifdef _LIBC
@@ -5351,7 +5352,7 @@ Index: git/posix/regcomp.c
     if (nrules)
       {
         /*
-@@ -3169,7 +3195,7 @@
+@@ -3169,7 +3195,7 @@ parse_bracket_exp (re_string_t *regexp,
   #else
   # ifdef RE_ENABLE_I18N
         *err = build_range_exp (sbcset,
@@ -5360,7 +5361,7 @@ Index: git/posix/regcomp.c
                     &range_alloc, &start_elem, &end_elem);
   # else
         *err = build_range_exp (sbcset, &start_elem, &end_elem);
-@@ -3185,7 +3211,7 @@
+@@ -3185,7 +3211,7 @@ parse_bracket_exp (re_string_t *regexp,
           case SB_CHAR:
             bitset_set (sbcset, start_elem.opr.ch);
             break;
@@ -5369,7 +5370,7 @@ Index: git/posix/regcomp.c
           case MB_CHAR:
             /* Check whether the array has enough space.  */
             if (BE (mbchar_alloc == mbcset->nmbchars, 0))
-@@ -3203,7 +3229,7 @@
+@@ -3203,7 +3229,7 @@ parse_bracket_exp (re_string_t *regexp,
           }
             mbcset->mbchars[mbcset->nmbchars++] = start_elem.opr.wch;
             break;
@@ -5378,7 +5379,7 @@ Index: git/posix/regcomp.c
           case EQUIV_CLASS:
             *err = build_equiv_class (sbcset,
   #ifdef RE_ENABLE_I18N
-@@ -3253,11 +3279,11 @@
+@@ -3253,11 +3279,11 @@ parse_bracket_exp (re_string_t *regexp,
 
   #ifdef RE_ENABLE_I18N
     /* Ensure only single byte characters are set.  */
@@ -5392,7 +5393,7 @@ Index: git/posix/regcomp.c
                                || mbcset->non_match)))
       {
         bin_tree_t *mbc_tree;
-@@ -3326,7 +3352,7 @@
+@@ -3326,7 +3352,7 @@ parse_bracket_element (bracket_elem_t *e
                  re_token_t *token, int token_len, re_dfa_t *dfa,
                  reg_syntax_t syntax, int accept_hyphen)
   {
@@ -5401,7 +5402,7 @@ Index: git/posix/regcomp.c
     int cur_char_size;
     cur_char_size = re_string_char_size_at (regexp, re_string_cur_idx
 (regexp));
     if (cur_char_size > 1)
-@@ -3336,7 +3362,7 @@
+@@ -3336,7 +3362,7 @@ parse_bracket_element (bracket_elem_t *e
         re_string_skip_bytes (regexp, cur_char_size);
         return REG_NOERROR;
       }
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -5410,7 +5411,7 @@ Index: git/posix/regcomp.c
     re_string_skip_bytes (regexp, token_len); /* Skip a token.  */
     if (token->type == OP_OPEN_COLL_ELEM || token->type ==

OP_OPEN_CHAR_CLASS

         || token->type == OP_OPEN_EQUIV_CLASS)
-@@ -3416,7 +3442,9 @@
+@@ -3416,7 +3442,9 @@ build_equiv_class (bitset_t sbcset, re_c
   build_equiv_class (bitset_t sbcset, const unsigned char *name)
   #endif /* not RE_ENABLE_I18N */
   {
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +8 -8
@@ -5421,7 +5422,7 @@ Index: git/posix/regcomp.c
     uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
     if (nrules != 0)
       {
-@@ -3488,7 +3516,7 @@
+@@ -3488,7 +3516,7 @@ build_equiv_class (bitset_t sbcset, cons
         mbcset->equiv_classes[mbcset->nequiv_classes++] = idx1;
       }
     else
@@ -5430,7 +5431,7 @@ Index: git/posix/regcomp.c
       {
         if (BE (strlen ((const char *) name) != 1, 0))
       return REG_ECOLLATE;
-@@ -3522,7 +3550,7 @@
+@@ -3522,7 +3550,7 @@ build_charclass (RE_TRANSLATE_TYPE trans
         && (strcmp (name, "upper") == 0 || strcmp (name, "lower") == 0))
       name = "alpha";
 
@@ -5439,7 +5440,7 @@ Index: git/posix/regcomp.c
     /* Check the space of the arrays.  */
     if (BE (*char_class_alloc == mbcset->nchar_classes, 0))
       {
-@@ -3538,7 +3566,7 @@
+@@ -3538,7 +3566,7 @@ build_charclass (RE_TRANSLATE_TYPE trans
         *char_class_alloc = new_char_class_alloc;
       }
     mbcset->char_classes[mbcset->nchar_classes++] = __wctype (name);
@@ -5448,7 +5449,7 @@ Index: git/posix/regcomp.c
 
   #define BUILD_CHARCLASS_LOOP(ctype_func)    \
     do {                        \
-@@ -3649,7 +3677,7 @@
+@@ -3649,7 +3677,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TR
 
   #ifdef RE_ENABLE_I18N
     /* Ensure only single byte characters are set.  */
@@ -5457,7 +5458,7 @@ Index: git/posix/regcomp.c
       bitset_mask (sbcset, dfa->sb_char);
   #endif
 
-@@ -3661,7 +3689,7 @@
+@@ -3661,7 +3689,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TR
       goto build_word_op_espace;
 
   #ifdef RE_ENABLE_I18N
@@ -5468,8 +5469,8 @@ Index: git/posix/regcomp.c
         /* Build a tree for complex bracket.  */
  Index: git/posix/regexec.c
  ===================================================================
---- git.orig/posix/regexec.c    2014-08-29 20:00:53.268070587 -0700
-+++ git/posix/regexec.c    2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regexec.c
++++ git/posix/regexec.c
  @@ -18,6 +18,7 @@
      <http://www.gnu.org/licenses/>.  */
 
@@ -5478,7 +5479,7 @@ Index: git/posix/regexec.c
 
   static reg_errcode_t match_ctx_init (re_match_context_t *cache, int
 eflags,
                        int n) internal_function;
-@@ -186,11 +187,11 @@
+@@ -186,11 +187,11 @@ static int build_trtable (const re_dfa_t
   static int check_node_accept_bytes (const re_dfa_t *dfa, int node_idx,
                       const re_string_t *input, int idx)
        internal_function;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +4 -4
@@ -5492,7 +5493,7 @@ Index: git/posix/regexec.c
   #endif /* RE_ENABLE_I18N */
   static int group_nodes_into_DFAstates (const re_dfa_t *dfa,
                          const re_dfastate_t *state,
-@@ -255,25 +256,9 @@
+@@ -255,25 +256,9 @@ regexec (preg, string, nmatch, pmatch, e
     return err != REG_NOERROR;
   }
 
@@ -5521,7 +5522,7 @@ Index: git/posix/regexec.c
 
   /* Entry points for GNU code.  */
 
-@@ -728,7 +713,7 @@
+@@ -728,7 +713,7 @@ re_search_internal (preg, string, length
     incr = (range < 0) ? -1 : 1;
     left_lim = (range < 0) ? start + range : start;
     right_lim = (range < 0) ? start : start + range;
@@ -5530,7 +5531,7 @@ Index: git/posix/regexec.c
     match_kind =
       (fastmap
        ? ((sb || !(preg->syntax & RE_ICASE || t) ? 4 : 0)
-@@ -3448,7 +3433,7 @@
+@@ -3448,7 +3433,7 @@ out_free:
         if (BE (dest_states_word[i] == NULL && err != REG_NOERROR, 0))
           goto out_free;
 
@@ -5539,7 +5540,7 @@ Index: git/posix/regexec.c
           need_word_trtable = 1;
 
         dest_states_nl[i] = re_acquire_state_context (&err, dfa,
 &follows,
-@@ -3590,7 +3575,7 @@
+@@ -3590,7 +3575,7 @@ group_nodes_into_DFAstates (const re_dfa
         else if (type == OP_PERIOD)
       {
   #ifdef RE_ENABLE_I18N
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2
@@ -5548,7 +5549,7 @@ Index: git/posix/regexec.c
           bitset_merge (accepts, dfa->sb_char);
         else
   #endif
-@@ -3641,7 +3626,7 @@
+@@ -3641,7 +3626,7 @@ group_nodes_into_DFAstates (const re_dfa
             continue;
           }
   #ifdef RE_ENABLE_I18N
@@ -5557,7 +5558,7 @@ Index: git/posix/regexec.c
           for (j = 0; j < BITSET_WORDS; ++j)
             any_set |= (accepts[j] &= (dfa->word_char[j] |
 ~dfa->sb_char[j]));
             else
-@@ -3660,7 +3645,7 @@
+@@ -3660,7 +3645,7 @@ group_nodes_into_DFAstates (const re_dfa
             continue;
           }
   #ifdef RE_ENABLE_I18N
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -5566,7 +5567,7 @@ Index: git/posix/regexec.c
           for (j = 0; j < BITSET_WORDS; ++j)
             any_set |= (accepts[j] &= ~(dfa->word_char[j] &
 dfa->sb_char[j]));
             else
-@@ -3832,12 +3817,6 @@
+@@ -3832,12 +3817,6 @@ check_node_accept_bytes (const re_dfa_t
     if (node->type == COMPLEX_BRACKET)
       {
         const re_charset_t *cset = node->opr.mbcset;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -5579,7 +5580,7 @@ Index: git/posix/regexec.c
         int match_len = 0;
         wchar_t wc = ((cset->nranges || cset->nchar_classes ||
 cset->nmbchars)
               ? re_string_wchar_at (input, str_idx) : 0);
-@@ -3849,6 +3828,7 @@
+@@ -3849,6 +3828,7 @@ check_node_accept_bytes (const re_dfa_t
           match_len = char_len;
           goto check_node_accept_bytes_match;
         }
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +5 -5
@@ -5587,7 +5588,7 @@ Index: git/posix/regexec.c
         /* match with character_class?  */
         for (i = 0; i < cset->nchar_classes; ++i)
       {
-@@ -3859,8 +3839,16 @@
+@@ -3859,8 +3839,16 @@ check_node_accept_bytes (const re_dfa_t
             goto check_node_accept_bytes_match;
           }
       }
@@ -5605,7 +5606,7 @@ Index: git/posix/regexec.c
         nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
         if (nrules != 0)
       {
-@@ -3953,8 +3941,12 @@
+@@ -3953,8 +3941,12 @@ check_node_accept_bytes (const re_dfa_t
           }
       }
         else
@@ -5619,7 +5620,7 @@ Index: git/posix/regexec.c
         /* match with range expression?  */
   #if __GNUC__ >= 2
         wchar_t cmp_buf[] = {L'\0', L'\0', wc, L'\0', L'\0', L'\0'};
-@@ -3973,6 +3965,7 @@
+@@ -3973,6 +3965,7 @@ check_node_accept_bytes (const re_dfa_t
             goto check_node_accept_bytes_match;
           }
           }
@@ -5627,7 +5628,7 @@ Index: git/posix/regexec.c
       }
       check_node_accept_bytes_match:
         if (!cset->non_match)
-@@ -3988,7 +3981,7 @@
+@@ -3988,7 +3981,7 @@ check_node_accept_bytes (const re_dfa_t
     return 0;
   }
 
@@ -5636,7 +5637,7 @@ Index: git/posix/regexec.c
   static unsigned int
   internal_function
   find_collation_sequence_value (const unsigned char *mbs, size_t
 mbs_len)
-@@ -4046,7 +4039,7 @@
+@@ -4046,7 +4039,7 @@ find_collation_sequence_value (const uns
         return UINT_MAX;
       }
   }
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +8 -8
@@ -5645,7 +5646,7 @@ Index: git/posix/regexec.c
   #endif /* RE_ENABLE_I18N */
 
   /* Check whether the node accepts the byte which is IDX-th
-@@ -4137,7 +4130,7 @@
+@@ -4137,7 +4130,7 @@ extend_buffers (re_match_context_t *mctx
     if (pstr->icase)
       {
   #ifdef RE_ENABLE_I18N
@@ -5654,7 +5655,7 @@ Index: git/posix/regexec.c
       {
         ret = build_wcs_upper_buffer (pstr);
         if (BE (ret != REG_NOERROR, 0))
-@@ -4150,7 +4143,7 @@
+@@ -4150,7 +4143,7 @@ extend_buffers (re_match_context_t *mctx
     else
       {
   #ifdef RE_ENABLE_I18N
@@ -5665,8 +5666,8 @@ Index: git/posix/regexec.c
   #endif /* RE_ENABLE_I18N  */
  Index: git/posix/regexec-compat.c
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/posix/regexec-compat.c    2014-08-29 20:01:15.224070587 -0700
+--- /dev/null
++++ git/posix/regexec-compat.c
  @@ -0,0 +1,39 @@
  +/* Extended regular expression matching and search library.
  +   Copyright (C) 2008 Free Software Foundation, Inc.
@@ -5709,8 +5710,8 @@ Index: git/posix/regexec-compat.c
  +#endif
  Index: git/posix/regex.h
  ===================================================================
---- git.orig/posix/regex.h    2014-08-29 20:00:53.264070587 -0700
-+++ git/posix/regex.h    2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regex.h
++++ git/posix/regex.h
  @@ -21,6 +21,7 @@
   #define _REGEX_H 1
 
@@ -5719,7 +5720,7 @@ Index: git/posix/regex.h
 
   /* Allow the use in C++ code.  */
   #ifdef __cplusplus
-@@ -156,6 +157,8 @@
+@@ -156,6 +157,8 @@ typedef unsigned long int reg_syntax_t;
      treated as 'a\{1'.  */
   # define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1)
 
@@ -5728,7 +5729,7 @@ Index: git/posix/regex.h
   /* If this bit is set, then ignore case when matching.
      If not set, then case is significant.  */
   # define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1)
-@@ -172,6 +175,7 @@
+@@ -172,6 +175,7 @@ typedef unsigned long int reg_syntax_t;
   /* If this bit is set, then no_sub will be set to 1 during
      re_compile_pattern.  */
   # define RE_NO_SUB (RE_CONTEXT_INVALID_DUP << 1)
@@ -5736,7 +5737,7 @@ Index: git/posix/regex.h
   #endif
 
   /* This global variable defines the particular regexp syntax to use

(for
-@@ -231,8 +235,13 @@
+@@ -231,8 +235,13 @@ extern reg_syntax_t re_syntax_options;
(RE_CHAR_CLASSES | RE_DOT_NEWLINE | RE_DOT_NOT_NULL \
| RE_INTERVALS | RE_NO_EMPTY_RANGES)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +25 -27
@@ -5750,7 +5751,7 @@ Index: git/posix/regex.h
 
   /* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes
      RE_LIMITED_OPS, i.e., \? \+ \| are not recognized.  Actually, this
-@@ -298,9 +307,11 @@
+@@ -298,9 +307,11 @@ extern reg_syntax_t re_syntax_options;
   /* Like REG_NOTBOL, except for the end-of-line.  */
   #define REG_NOTEOL (1 << 1)
 
@@ -5764,9 +5765,9 @@ Index: git/posix/regex.h
   /* If any error codes are removed, changed, or added, update the
  Index: git/posix/regex_internal.c
  ===================================================================
---- git.orig/posix/regex_internal.c    2014-08-29 20:00:53.264070587
-0700
-+++ git/posix/regex_internal.c    2014-08-29 20:01:15.224070587 -0700
-@@ -43,8 +43,8 @@
+--- git.orig/posix/regex_internal.c
++++ git/posix/regex_internal.c
+@@ -43,8 +43,8 @@ re_string_allocate (re_string_t *pstr, c
     int init_buf_len;
 
     /* Ensure at least one character fits into the buffers.  */
@@ -5777,7 +5778,7 @@ Index: git/posix/regex_internal.c
     init_buf_len = (len + 1 < init_len) ? len + 1: init_len;
     re_string_construct_common (str, len, pstr, trans, icase, dfa);
 
-@@ -55,7 +55,7 @@
+@@ -55,7 +55,7 @@ re_string_allocate (re_string_t *pstr, c
     pstr->word_char = dfa->word_char;
     pstr->word_ops_used = dfa->word_ops_used;
     pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str;
@@ -5786,7 +5787,7 @@ Index: git/posix/regex_internal.c
     pstr->valid_raw_len = pstr->valid_len;
     return REG_NOERROR;
   }
-@@ -82,7 +82,7 @@
+@@ -82,7 +82,7 @@ re_string_construct (re_string_t *pstr,
     if (icase)
       {
   #ifdef RE_ENABLE_I18N
@@ -5795,7 +5796,7 @@ Index: git/posix/regex_internal.c
       {
         while (1)
           {
-@@ -91,7 +91,7 @@
+@@ -91,7 +91,7 @@ re_string_construct (re_string_t *pstr,
           return ret;
             if (pstr->valid_raw_len >= len)
           break;
@@ -5804,7 +5805,7 @@ Index: git/posix/regex_internal.c
           break;
             ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2);
             if (BE (ret != REG_NOERROR, 0))
-@@ -105,7 +105,7 @@
+@@ -105,7 +105,7 @@ re_string_construct (re_string_t *pstr,
     else
       {
   #ifdef RE_ENABLE_I18N
@@ -5813,7 +5814,7 @@ Index: git/posix/regex_internal.c
       build_wcs_buffer (pstr);
         else
   #endif /* RE_ENABLE_I18N  */
-@@ -130,7 +130,7 @@
+@@ -130,7 +130,7 @@ internal_function __attribute_warn_unuse
   re_string_realloc_buffers (re_string_t *pstr, int new_buf_len)
   {
   #ifdef RE_ENABLE_I18N
@@ -5822,7 +5823,7 @@ Index: git/posix/regex_internal.c
       {
         wint_t *new_wcs;
 
-@@ -177,7 +177,7 @@
+@@ -177,7 +177,7 @@ re_string_construct_common (const char *
     pstr->trans = trans;
     pstr->icase = icase ? 1 : 0;
     pstr->mbs_allocated = (trans != NULL || icase);
@@ -5831,7 +5832,7 @@ Index: git/posix/regex_internal.c
     pstr->is_utf8 = dfa->is_utf8;
     pstr->map_notascii = dfa->map_notascii;
     pstr->stop = pstr->len;
-@@ -203,7 +203,7 @@
+@@ -203,7 +203,7 @@ build_wcs_buffer (re_string_t *pstr)
   {
   #ifdef _LIBC
     unsigned char buf[MB_LEN_MAX];
@@ -5840,7 +5841,7 @@ Index: git/posix/regex_internal.c
   #else
     unsigned char buf[64];
   #endif
-@@ -226,7 +226,7 @@
+@@ -226,7 +226,7 @@ build_wcs_buffer (re_string_t *pstr)
       {
         int i, ch;
 
@@ -5849,7 +5850,7 @@ Index: git/posix/regex_internal.c
           {
             ch = pstr->raw_mbs [pstr->raw_mbs_idx + byte_idx + i];
             buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch];
-@@ -275,7 +275,7 @@
+@@ -275,7 +275,7 @@ build_wcs_upper_buffer (re_string_t *pst
     size_t mbclen;
   #ifdef _LIBC
     char buf[MB_LEN_MAX];
@@ -5858,7 +5859,7 @@ Index: git/posix/regex_internal.c
   #else
     char buf[64];
   #endif
-@@ -369,7 +369,7 @@
+@@ -369,7 +369,7 @@ build_wcs_upper_buffer (re_string_t *pst
         {
           int i, ch;
 
@@ -5867,7 +5868,7 @@ Index: git/posix/regex_internal.c
             {
           ch = pstr->raw_mbs [pstr->raw_mbs_idx + src_idx + i];
           buf[i] = pstr->trans[ch];
-@@ -567,8 +567,9 @@
+@@ -567,8 +567,9 @@ re_string_translate_buffer (re_string_t
   }
 
   /* This function re-construct the buffers.
@@ -5879,7 +5880,7 @@ Index: git/posix/regex_internal.c
 
   static reg_errcode_t
   internal_function __attribute_warn_unused_result__
-@@ -579,7 +580,7 @@
+@@ -579,7 +580,7 @@ re_string_reconstruct (re_string_t *pstr
       {
         /* Reset buffer.  */
   #ifdef RE_ENABLE_I18N
@@ -5888,7 +5889,7 @@ Index: git/posix/regex_internal.c
       memset (&pstr->cur_state, '\0', sizeof (mbstate_t));
   #endif /* RE_ENABLE_I18N */
         pstr->len = pstr->raw_len;
-@@ -670,7 +671,7 @@
+@@ -670,7 +671,7 @@ re_string_reconstruct (re_string_t *pstr
             pstr->tip_context = re_string_context_at (pstr, offset - 1,
                               eflags);
   #ifdef RE_ENABLE_I18N
@@ -5897,7 +5898,7 @@ Index: git/posix/regex_internal.c
           memmove (pstr->wcs, pstr->wcs + offset,
                (pstr->valid_len - offset) * sizeof (wint_t));
   #endif /* RE_ENABLE_I18N */
-@@ -699,7 +700,7 @@
+@@ -699,7 +700,7 @@ re_string_reconstruct (re_string_t *pstr
   #endif
         pstr->valid_len = 0;
   #ifdef RE_ENABLE_I18N
@@ -5906,7 +5907,7 @@ Index: git/posix/regex_internal.c
           {
             int wcs_idx;
             wint_t wc = WEOF;
-@@ -711,7 +712,7 @@
+@@ -711,7 +712,7 @@ re_string_reconstruct (re_string_t *pstr
             /* Special case UTF-8.  Multi-byte chars start with any
                byte other than 0x80 - 0xbf.  */
             raw = pstr->raw_mbs + pstr->raw_mbs_idx;
@@ -5915,7 +5916,7 @@ Index: git/posix/regex_internal.c
             if (end < pstr->raw_mbs)
               end = pstr->raw_mbs;
             p = raw + offset - 1;
-@@ -803,7 +804,7 @@
+@@ -803,7 +804,7 @@ re_string_reconstruct (re_string_t *pstr
 
     /* Then build the buffers.  */
   #ifdef RE_ENABLE_I18N
@@ -5924,7 +5925,7 @@ Index: git/posix/regex_internal.c
       {
         if (pstr->icase)
       {
-@@ -841,7 +842,7 @@
+@@ -841,7 +842,7 @@ re_string_peek_byte_case (const re_strin
       return re_string_peek_byte (pstr, idx);
 
   #ifdef RE_ENABLE_I18N
@@ -5933,7 +5934,7 @@ Index: git/posix/regex_internal.c
         && ! re_string_is_single_byte_char (pstr, pstr->cur_idx + idx))
       return re_string_peek_byte (pstr, idx);
   #endif
-@@ -930,7 +931,7 @@
+@@ -930,7 +931,7 @@ re_string_context_at (const re_string_t
       return ((eflags & REG_NOTEOL) ? CONTEXT_ENDBUF
           : CONTEXT_NEWLINE | CONTEXT_ENDBUF);
   #ifdef RE_ENABLE_I18N
@@ -5942,7 +5943,7 @@ Index: git/posix/regex_internal.c
       {
         wint_t wc;
         int wc_idx = idx;
-@@ -1444,7 +1445,7 @@
+@@ -1444,7 +1445,7 @@ re_dfa_add_node (re_dfa_t *dfa, re_token
     dfa->nodes[dfa->nodes_len].constraint = 0;
   #ifdef RE_ENABLE_I18N
     dfa->nodes[dfa->nodes_len].accept_mb =
@@ -5953,8 +5954,8 @@ Index: git/posix/regex_internal.c
     re_node_set_init_empty (dfa->edests + dfa->nodes_len);
  Index: git/posix/regex_internal.h
  ===================================================================
---- git.orig/posix/regex_internal.h    2014-08-29 20:00:53.264070587
-0700
-+++ git/posix/regex_internal.h    2014-08-29 20:01:15.224070587 -0700
+--- git.orig/posix/regex_internal.h
++++ git/posix/regex_internal.h
  @@ -26,6 +26,10 @@
   #include <stdlib.h>
   #include <string.h>
@@ -5966,7 +5967,7 @@ Index: git/posix/regex_internal.h
   #if defined HAVE_LANGINFO_H || defined HAVE_LANGINFO_CODESET ||

defined _LIBC

   # include <langinfo.h>
   #endif
-@@ -370,6 +374,13 @@
+@@ -370,6 +374,13 @@ struct re_string_t
   };
   typedef struct re_string_t re_string_t;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2
@@ -5980,7 +5981,7 @@ Index: git/posix/regex_internal.h
 
   struct re_dfa_t;
   typedef struct re_dfa_t re_dfa_t;
-@@ -655,6 +666,14 @@
+@@ -655,6 +666,14 @@ struct re_dfa_t
     __libc_lock_define (, lock)
   };
 
@@ -5995,7 +5996,7 @@ Index: git/posix/regex_internal.h
   #define re_node_set_init_empty(set) memset (set, '\0', sizeof
 (re_node_set))
   #define re_node_set_remove(set,id) \
     (re_node_set_remove_at (set, re_node_set_contains (set, id) - 1))
-@@ -715,7 +734,7 @@
+@@ -715,7 +734,7 @@ internal_function __attribute__ ((pure,
   re_string_char_size_at (const re_string_t *pstr, int idx)
   {
     int byte_idx;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +13 -15
@@ -6004,7 +6005,7 @@ Index: git/posix/regex_internal.h
       return 1;
     for (byte_idx = 1; idx + byte_idx < pstr->valid_len; ++byte_idx)
       if (pstr->wcs[idx + byte_idx] != WEOF)
-@@ -727,7 +746,7 @@
+@@ -727,7 +746,7 @@ static wint_t
   internal_function __attribute__ ((pure, unused))
   re_string_wchar_at (const re_string_t *pstr, int idx)
   {
@@ -6015,8 +6016,8 @@ Index: git/posix/regex_internal.h
   }
  Index: git/posix/xregex.c
  ===================================================================
---- /dev/null    1970-01-01 00:00:00.000000000 +0000
-+++ git/posix/xregex.c    2014-08-29 20:01:15.228070587 -0700
+--- /dev/null
++++ git/posix/xregex.c
  @@ -0,0 +1,8212 @@
  +/* Extended regular expression matching and search library,
  +   version 0.12.
@@ -14232,8 +14233,8 @@ Index: git/posix/xregex.c
  +# define DEFINED_ONCE
  Index: git/pwd/Makefile
  ===================================================================
---- git.orig/pwd/Makefile    2014-08-29 20:00:53.316070587 -0700
-+++ git/pwd/Makefile    2014-08-29 20:01:15.232070587 -0700
+--- git.orig/pwd/Makefile
++++ git/pwd/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for pwd portion of the library.
@@ -14245,8 +14246,8 @@ Index: git/pwd/Makefile
   include ../Makeconfig
  Index: git/resolv/Makefile
  ===================================================================
---- git.orig/resolv/Makefile    2014-08-29 20:00:53.320070587 -0700
-+++ git/resolv/Makefile    2014-08-29 20:01:15.232070587 -0700
+--- git.orig/resolv/Makefile
++++ git/resolv/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Sub-makefile for resolv portion of the library.
@@ -14256,7 +14257,7 @@ Index: git/resolv/Makefile
   subdir    := resolv
 
   include ../Makeconfig
-@@ -27,20 +29,21 @@
+@@ -27,20 +29,21 @@ headers    := resolv.h \
          arpa/nameser.h arpa/nameser_compat.h \
          sys/bitypes.h
 
@@ -14286,7 +14287,7 @@ Index: git/resolv/Makefile
   libresolv-routines := gethnamaddr res_comp res_debug    \
                 res_data res_mkquery res_query res_send        \
                 inet_net_ntop inet_net_pton inet_neta base64    \
-@@ -60,7 +63,7 @@
+@@ -60,7 +63,7 @@ routines                += $(libnss_dns-
   static-only-routines    += $(libnss_dns-routines)
 $(libresolv-routines)
   endif
@@ -14297,8 +14298,8 @@ Index: git/resolv/Makefile
 
  Index: git/stdio-common/fxprintf.c
  ===================================================================
---- git.orig/stdio-common/fxprintf.c    2014-08-29 20:00:53.544070587
-0700
-+++ git/stdio-common/fxprintf.c    2014-08-29 20:01:15.232070587 -0700
+--- git.orig/stdio-common/fxprintf.c
++++ git/stdio-common/fxprintf.c
  @@ -23,6 +23,7 @@
   #include <wchar.h>
   #include <string.h>
@@ -14307,7 +14308,7 @@ Index: git/stdio-common/fxprintf.c
 
 
   int
-@@ -37,6 +38,7 @@
+@@ -37,6 +38,7 @@ __fxprintf (FILE *fp, const char *fmt, .
     int res;
     if (_IO_fwide (fp, 0) > 0)
       {
@@ -14315,7 +14316,7 @@ Index: git/stdio-common/fxprintf.c
         size_t len = strlen (fmt) + 1;
         wchar_t wfmt[len];
         for (size_t i = 0; i < len; ++i)
-@@ -45,6 +47,9 @@
+@@ -45,6 +47,9 @@ __fxprintf (FILE *fp, const char *fmt, .
         wfmt[i] = fmt[i];
       }
         res = __vfwprintf (fp, wfmt, ap);
@@ -14327,8 +14328,8 @@ Index: git/stdio-common/fxprintf.c
       res = _IO_vfprintf (fp, fmt, ap);
  Index: git/stdio-common/_i18n_number.h
  ===================================================================
---- git.orig/stdio-common/_i18n_number.h    2014-08-29

20:00:53.500070587 -0700
-+++ git/stdio-common/_i18n_number.h 2014-08-29 20:01:15.232070587
-0700
+--- git.orig/stdio-common/_i18n_number.h
++++ git/stdio-common/_i18n_number.h
@@ -19,10 +19,13 @@

   #include <stdbool.h>
   #include <wchar.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +4 -5
@@ -14343,7 +14344,7 @@ Index: git/stdio-common/_i18n_number.h
   static CHAR_T *
   _i18n_number_rewrite (CHAR_T *w, CHAR_T *rear_ptr, CHAR_T *end)
   {
-@@ -115,3 +118,13 @@
+@@ -115,3 +118,13 @@ _i18n_number_rewrite (CHAR_T *w, CHAR_T
 
     return w;
   }
@@ -14359,8 +14360,8 @@ Index: git/stdio-common/_i18n_number.h
  +#endif
  Index: git/stdio-common/Makefile
  ===================================================================
---- git.orig/stdio-common/Makefile    2014-08-29 20:00:53.500070587
-0700
-+++ git/stdio-common/Makefile    2014-08-29 20:01:15.232070587 -0700
+--- git.orig/stdio-common/Makefile
++++ git/stdio-common/Makefile
  @@ -18,6 +18,8 @@
   #
   #    Specific makefile for stdio-common.
@@ -14370,7 +14371,7 @@ Index: git/stdio-common/Makefile
   subdir    := stdio-common
 
   include ../Makeconfig
-@@ -30,7 +32,7 @@
+@@ -30,7 +32,7 @@ routines    :=                                  \
       vfprintf vprintf printf_fp reg-printf printf-prs
 printf_fphex          \
       reg-modifier reg-type                              \

printf_size fprintf printf snprintf sprintf asprintf
dprintf \

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -2
@@ -14379,7 +14380,7 @@ Index: git/stdio-common/Makefile
       fscanf scanf sscanf                              \
       perror psignal                                  \
       tmpfile tmpfile64 tmpnam tmpnam_r tempnam tempname              \
-@@ -41,23 +43,37 @@
+@@ -41,23 +43,37 @@ routines    :=                                  \
       isoc99_vsscanf                                  \
       psiginfo
 
@@ -14429,8 +14430,8 @@ Index: git/stdio-common/Makefile
 
  Index: git/stdio-common/printf_fp.c
  ===================================================================
---- git.orig/stdio-common/printf_fp.c    2014-08-29

20:00:53.548070587 -0700
-+++ git/stdio-common/printf_fp.c 2014-08-29 20:01:15.232070587 -0700
+--- git.orig/stdio-common/printf_fp.c
++++ git/stdio-common/printf_fp.c
@@ -39,6 +39,7 @@

   #include <unistd.h>
   #include <stdlib.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +5 -6
@@ -14439,7 +14440,7 @@ Index: git/stdio-common/printf_fp.c
   #include <stdbool.h>
   #include <rounding-mode.h>
 
-@@ -148,6 +149,10 @@
+@@ -148,6 +149,10 @@ static wchar_t *group_number (wchar_t *b
                     wchar_t thousands_sep, int ngroups)
        internal_function;
 
@@ -14450,7 +14451,7 @@ Index: git/stdio-common/printf_fp.c
 
   int
   ___printf_fp (FILE *fp,
-@@ -206,7 +211,14 @@
+@@ -206,7 +211,14 @@ ___printf_fp (FILE *fp,
     mp_limb_t cy;
 
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:53.548070587 -0700
-+++ git/stdio-common/printf_fphex.c 2014-08-29 20:01:15.232070587
-0700
+--- git.orig/stdio-common/printf_fphex.c
++++ git/stdio-common/printf_fphex.c
@@ -28,6 +28,7 @@

   #include <_itoa.h>
   #include <_itowa.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -3

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:53.548070587 -0700
-+++ git/stdio-common/printf_size.c 2014-08-29 20:01:15.232070587
-0700
+--- git.orig/stdio-common/printf_size.c
++++ git/stdio-common/printf_size.c
@@ -23,6 +23,7 @@

   #include <math.h>
   #include <printf.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

library and
-@@ -116,7 +117,14 @@
+@@ -116,7 +117,14 @@ __printf_size (FILE *fp, const struct pr

     struct printf_info fp_info;
     int done = 0;
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +4 -6

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:53.584070587 -0700
-+++ git/stdio-common/tstdiomisc.c 2014-08-29 20:01:15.232070587 -0700
+--- git.orig/stdio-common/tstdiomisc.c
++++ git/stdio-common/tstdiomisc.c
@@ -3,6 +3,7 @@

   #include <stdio.h>
   #include <string.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -3

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

got L\"%S\"\n",

         wbuf);
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -3

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

got L\"%S\"\n",

         wbuf);
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -1

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:53.576070587 -0700
-+++ git/stdio-common/tst-popen.c 2014-08-29 20:01:15.232070587 -0700
+--- git.orig/stdio-common/tst-popen.c
++++ git/stdio-common/tst-popen.c
@@ -19,6 +19,7 @@

   #include <stdio.h>
   #include <string.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:53.580070587 -0700
-+++ git/stdio-common/tst-sprintf.c 2014-08-29 20:01:15.236070587
-0700
+--- git.orig/stdio-common/tst-sprintf.c
++++ git/stdio-common/tst-sprintf.c
@@ -2,6 +2,7 @@

   #include <stdlib.h>
   #include <locale.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +5 -6

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

       LABEL (form_wcharacter):                              \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +18 -19

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

       div ldiv lldiv                                  \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +18 -18

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

              bug-strncat1 bug-strspn1 bug-strpbrk1 tst-bswap    \
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +9 -9

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

     struct __locale_data *current = l->__locales[LC_COLLATE];
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +14 -15

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

   ifeq ($(build-shared),yes)
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:53.904070587 -0700
-+++ git/sysdeps/generic/ldsodefs.h 2014-08-29 20:01:15.240070587
-0700
-@@ -425,6 +425,12 @@
+--- git.orig/sysdeps/generic/ldsodefs.h
++++ git/sysdeps/generic/ldsodefs.h
+@@ -425,6 +425,12 @@ extern struct rtld_global _rtld_global _

   # undef __rtld_global_attribute__
   #endif
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +4 -5

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:54.452070587 -0700
-+++ git/sysdeps/ieee754/ldbl-opt/Makefile 2014-08-29
20:01:15.244070587 -0700
-@@ -11,19 +11,18 @@
+--- git.orig/sysdeps/ieee754/ldbl-opt/Makefile ++++ git/sysdeps/ieee754/ldbl-opt/Makefile +@@ -11,19 +11,18 @@ libm-routines += s_nexttowardfd
routines += math_ldbl_opt nldbl-compat

   extra-libs += libnldbl
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:54.468070587 -0700
-+++ git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c 2014-08-29
20:01:15.244070587 -0700
+--- git.orig/sysdeps/ieee754/ldbl-opt/nldbl-compat.c ++++ git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
@@ -26,6 +26,7 @@

   #include <locale/localeinfo.h>
   #include <sys/syslog.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15516,7 +15517,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

   #include "nldbl-compat.h"

-@@ -33,20 +34,14 @@
+@@ -33,20 +34,14 @@ libc_hidden_proto (__nldbl_vfprintf)
libc_hidden_proto (__nldbl_vsscanf) libc_hidden_proto (__nldbl_vsprintf) libc_hidden_proto (__nldbl_vfscanf)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15537,7 +15538,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
libc_hidden_proto (__nldbl___vasprintf_chk) libc_hidden_proto (__nldbl___vdprintf_chk) libc_hidden_proto (__nldbl___obstack_vprintf_chk)
-@@ -54,8 +49,17 @@
+@@ -54,8 +49,17 @@ libc_hidden_proto (__nldbl___vstrfmon)
libc_hidden_proto (__nldbl___vstrfmon_l) libc_hidden_proto (__nldbl___isoc99_vsscanf) libc_hidden_proto (__nldbl___isoc99_vfscanf)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15555,7 +15556,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

static void
__nldbl_cleanup (void *arg)
-@@ -117,6 +121,7 @@
+@@ -117,6 +121,7 @@ __nldbl_fprintf (FILE *stream, const cha
}
weak_alias (__nldbl_fprintf, __nldbl__IO_fprintf)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15563,7 +15564,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section weak_function __nldbl_fwprintf (FILE *stream, const wchar_t *fmt, ...)
-@@ -130,6 +135,7 @@
+@@ -130,6 +135,7 @@ __nldbl_fwprintf (FILE *stream, const wc

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15571,7 +15572,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -226,6 +232,7 @@
+@@ -226,6 +232,7 @@ __nldbl_snprintf (char *s, size_t maxlen

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15579,7 +15580,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section
__nldbl_swprintf (wchar_t *s, size_t n, const wchar_t *fmt, ...)
-@@ -239,6 +246,7 @@
+@@ -239,6 +246,7 @@ __nldbl_swprintf (wchar_t *s, size_t n,

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15587,7 +15588,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section weak_function
-@@ -264,6 +272,7 @@
+@@ -264,6 +272,7 @@ __nldbl_vdprintf (int d, const char *fmt
}
libc_hidden_def (__nldbl_vdprintf)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15595,7 +15596,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section weak_function __nldbl_vfwprintf (FILE *s, const wchar_t *fmt, va_list ap)
-@@ -275,6 +284,7 @@
+@@ -275,6 +284,7 @@ __nldbl_vfwprintf (FILE *s, const wchar_

     return res;

}
libc_hidden_def (__nldbl_vfwprintf)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15603,7 +15604,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -297,6 +307,7 @@
+@@ -297,6 +307,7 @@ __nldbl_vsnprintf (char *string, size_t
libc_hidden_def (__nldbl_vsnprintf)
weak_alias (__nldbl_vsnprintf, __nldbl___vsnprintf)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15611,7 +15612,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section weak_function __nldbl_vswprintf (wchar_t *string, size_t maxlen, const wchar_t *fmt,
-@@ -330,6 +341,7 @@
+@@ -330,6 +341,7 @@ __nldbl_wprintf (const wchar_t *fmt, ...

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15619,7 +15620,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -419,6 +431,7 @@
+@@ -419,6 +431,7 @@ __nldbl_scanf (const char *fmt, ...)

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15627,7 +15628,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section
__nldbl_vfwscanf (FILE *s, const wchar_t *fmt, va_list ap)
-@@ -491,6 +504,7 @@
+@@ -491,6 +504,7 @@ __nldbl_wscanf (const wchar_t *fmt, ...)

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15635,7 +15636,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -506,6 +520,7 @@
+@@ -506,6 +520,7 @@ __nldbl___fprintf_chk (FILE *stream, int

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15643,7 +15644,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section
__nldbl___fwprintf_chk (FILE *stream, int flag, const wchar_t *fmt,
...)
-@@ -519,6 +534,7 @@
+@@ -519,6 +534,7 @@ __nldbl___fwprintf_chk (FILE *stream, in

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15651,7 +15652,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -563,6 +579,7 @@
+@@ -563,6 +579,7 @@ __nldbl___sprintf_chk (char *s, int flag

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15659,7 +15660,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section
__nldbl___swprintf_chk (wchar_t *s, size_t n, int flag, size_t slen,
-@@ -577,6 +594,7 @@
+@@ -577,6 +594,7 @@ __nldbl___swprintf_chk (wchar_t *s, size

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15667,7 +15668,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -590,6 +608,7 @@
+@@ -590,6 +608,7 @@ __nldbl___vfprintf_chk (FILE *s, int fla
}
libc_hidden_def (__nldbl___vfprintf_chk)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15675,7 +15676,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section __nldbl___vfwprintf_chk (FILE *s, int flag, const wchar_t *fmt,
va_list ap)
-@@ -601,6 +620,7 @@
+@@ -601,6 +620,7 @@ __nldbl___vfwprintf_chk (FILE *s, int fl

     return res;

}
libc_hidden_def (__nldbl___vfwprintf_chk)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15683,7 +15684,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -635,6 +655,7 @@
+@@ -635,6 +655,7 @@ __nldbl___vsprintf_chk (char *string, in
}
libc_hidden_def (__nldbl___vsprintf_chk)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15691,7 +15692,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section
__nldbl___vswprintf_chk (wchar_t *string, size_t maxlen, int flag,
size_t slen,
-@@ -668,6 +689,7 @@
+@@ -668,6 +689,7 @@ __nldbl___wprintf_chk (int flag, const w

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15699,7 +15700,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

int
attribute_compat_text_section
-@@ -775,6 +797,7 @@
+@@ -775,6 +797,7 @@ __nldbl___printf_fp (FILE *fp, const str

     return ___printf_fp (fp, &info_no_ldbl, args);

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15707,7 +15708,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
ssize_t
attribute_compat_text_section
__nldbl_strfmon (char *s, size_t maxsize, const char *format, ...)
-@@ -829,6 +852,7 @@
+@@ -829,6 +852,7 @@ __nldbl___vstrfmon_l (char *s, size_t ma

     return res;

}
libc_hidden_def (__nldbl___vstrfmon_l)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15715,7 +15716,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

void
attribute_compat_text_section
-@@ -941,6 +965,7 @@
+@@ -941,6 +965,7 @@ __nldbl___isoc99_scanf (const char *fmt,

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15723,7 +15724,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
int
attribute_compat_text_section
__nldbl___isoc99_vfwscanf (FILE *s, const wchar_t *fmt, va_list ap)
-@@ -1014,6 +1039,7 @@
+@@ -1014,6 +1039,7 @@ __nldbl___isoc99_wscanf (const wchar_t *

     return done;

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15731,7 +15732,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

   #if LONG_DOUBLE_COMPAT(libc, GLIBC_2_0)
   compat_symbol (libc, __nldbl__IO_printf, _IO_printf, GLIBC_2_0);
-@@ -1057,6 +1083,7 @@
+@@ -1057,6 +1083,7 @@ compat_symbol (libc, __nldbl_printf_size
   compat_symbol (libc, __nldbl___strfmon_l, __strfmon_l, GLIBC_2_1);
   #endif
   #if LONG_DOUBLE_COMPAT(libc, GLIBC_2_2)
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15739,7 +15740,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c

   compat_symbol (libc, __nldbl_swprintf, swprintf, GLIBC_2_2);
   compat_symbol (libc, __nldbl_vwprintf, vwprintf, GLIBC_2_2);
   compat_symbol (libc, __nldbl_wprintf, wprintf, GLIBC_2_2);
-@@ -1069,6 +1096,7 @@
+@@ -1069,6 +1096,7 @@ compat_symbol (libc, __nldbl_vfwscanf, v
   compat_symbol (libc, __nldbl_vswscanf, vswscanf, GLIBC_2_2);
   compat_symbol (libc, __nldbl_vwscanf, vwscanf, GLIBC_2_2);
   compat_symbol (libc, __nldbl_wscanf, wscanf, GLIBC_2_2);
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15749,8 +15750,8 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.c
compat_symbol (libc, __nldbl_strfmon_l, strfmon_l, GLIBC_2_3);
Index: git/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
===================================================================
---- git.orig/sysdeps/ieee754/ldbl-opt/nldbl-compat.h 2014-08-29
20:00:54.468070587 -0700
-+++ git/sysdeps/ieee754/ldbl-opt/nldbl-compat.h 2014-08-29
20:01:15.244070587 -0700
+--- git.orig/sysdeps/ieee754/ldbl-opt/nldbl-compat.h ++++ git/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
@@ -30,6 +30,7 @@

   #include <math.h>
   #include <monetary.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15779,7 +15780,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.h

   NLDBL_DECL (__asprintf);
   NLDBL_DECL (asprintf);
   NLDBL_DECL (__printf_fp);
-@@ -66,12 +63,18 @@
+@@ -66,12 +63,18 @@ NLDBL_DECL (__isoc99_sscanf);
   NLDBL_DECL (__isoc99_vscanf);
   NLDBL_DECL (__isoc99_vfscanf);
   NLDBL_DECL (__isoc99_vsscanf);
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15798,7 +15799,7 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.h

/* This one does not exist in the normal interface, only
__nldbl___vstrfmon really exists. */
-@@ -82,22 +85,23 @@
+@@ -82,22 +85,23 @@ extern ssize_t __nldbl___vstrfmon (char
since we don't compile with _FORTIFY_SOURCE. */
extern int __nldbl___vfprintf_chk (FILE *__restrict, int,

                      const char *__restrict, _G_va_list);
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0
@@ -15830,8 +15831,8 @@ Index:

git/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
#endif /* __NLDBL_COMPAT_H */
Index: git/sysdeps/unix/sysv/linux/gethostid.c
===================================================================
---- git.orig/sysdeps/unix/sysv/linux/gethostid.c 2014-08-29
20:00:58.840070587 -0700
-+++ git/sysdeps/unix/sysv/linux/gethostid.c 2014-08-29
20:01:15.244070587 -0700
+--- git.orig/sysdeps/unix/sysv/linux/gethostid.c
++++ git/sysdeps/unix/sysv/linux/gethostid.c
@@ -21,6 +21,7 @@

   #include <unistd.h>
   #include <netdb.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

guess for
a unique number of a host is its IP address. Return this. */
if (__gethostname (hostname, MAXHOSTNAMELEN) < 0 || hostname[0]
== '\0')
-@@ -115,5 +117,9 @@
+@@ -115,5 +117,9 @@ gethostid (void)

     /* For the return value to be not exactly the IP address we do some
        bit fiddling.  */
     return (int32_t) (in.s_addr << 16 | in.s_addr >> 16);
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -1

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:58.980070587 -0700
-+++ git/sysdeps/unix/sysv/linux/libc_fatal.c 2014-08-29
20:01:15.244070587 -0700
+--- git.orig/sysdeps/unix/sysv/linux/libc_fatal.c ++++ git/sysdeps/unix/sysv/linux/libc_fatal.c
@@ -23,6 +23,7 @@

   #include <string.h>
   #include <sys/mman.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

   {
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +8 -8

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

           {
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

           {
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +18 -18

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

called. */
__libc_rwlock_define (extern, __libc_setlocale_lock attribute_hidden)

-@@ -211,6 +213,17 @@
+@@ -211,6 +213,17 @@ __wcsmbs_load_conv (struct __locale_data

     __libc_rwlock_unlock (__libc_setlocale_lock);

}

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +4 -6

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:58.036070587 -0700
-+++ git/sysdeps/nptl/bits/libc-lock.h 2014-08-29
20:01:15.248070587 -0700
+--- git.orig/sysdeps/nptl/bits/libc-lock.h
++++ git/sysdeps/nptl/bits/libc-lock.h
@@ -24,6 +24,14 @@
#include <stddef.h>

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

_LIBC
-@@ -87,6 +95,14 @@
+@@ -87,6 +95,14 @@ typedef struct __libc_lock_recursive_opa

   /* Lock the recursive named lock variable.  */
   #if defined _LIBC && (!defined NOT_IN_libc || defined

IS_IN_libpthread)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

IS_IN_libpthread)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

IS_IN_libpthread)

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:00:58.044070587 -0700
-+++ git/sysdeps/nptl/bits/libc-lockP.h 2014-08-29
20:01:15.248070587 -0700
+--- git.orig/sysdeps/nptl/bits/libc-lockP.h
++++ git/sysdeps/nptl/bits/libc-lockP.h
@@ -33,6 +33,8 @@

   #include <lowlevellock.h>
   #include <tls.h>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +3 -5

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

20:01:15.248070587 -0700
+--- /dev/null
++++ git/sysdeps/nptl/small-macros-fns.c
@@ -0,0 +1,72 @@
+/* EGLIBC: function wrappers for big macros.
+ Copyright (C) 2009 Free Software Foundation, Inc.

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +0 -0

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

IS_IN_libpthread)*/
Index: git/include/libc-symbols.h
===================================================================
---- git.orig/include/libc-symbols.h 2014-08-29 20:00:47.144070587
-0700
-+++ git/include/libc-symbols.h 2014-08-29 20:01:15.248070587 -0700
+--- git.orig/include/libc-symbols.h
++++ git/include/libc-symbols.h
@@ -60,8 +60,11 @@
/* Define these macros for the benefit of portable GNU code that
wants to check
them. Of course, STDC_HEADERS is never false when building
libc! */

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +9 -9

Lines of this file are not shown. View the raw message.

meta/recipes-core/glibc/glibc_2.20.bb +2 -0
index 9dd5e67..f67fbfd 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

'libc-inet-anl', '--enable-nscd', '--disable-nscd', d)}" +

  do_patch_append() {
      bb.build.exec_func('do_fix_readlib_c', d)

Part of the diff is not shown here. View the raw message.

#10 lore raw

Re: [PATCH 5/5] glibc: Fix up minimal build with libc-libm

In reply to Saul Wold
Quoted 31 lines · Saul Wold

This addresses 2 issues discovered trying to build a minimal libc with libm option. By default nscd was always being built and without inet enabled there were missing symbols.

The patch got updated changing initgroups to become part of the INET group. Newer version of quilt added function information.

[YOCTO #7108]

---
 .../glibc/glibc/eglibc-use-option-groups.patch     | 1379 ++++++++++----------
 meta/recipes-core/glibc/glibc_2.20.bb              |    3 +
 2 files changed, 693 insertions(+), 689 deletions(-)
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +2 -2
index 7136253..7be9b06 100644
@@ -4,8 +4,8 @@ Upstream-Status: Pending
 
 Index: git/argp/argp-fmtstream.c
 ===================================================================
---- git.orig/argp/argp-fmtstream.c	2014-08-29 20:00:42.976070587 -0700
-+++ git/argp/argp-fmtstream.c	2014-08-29 20:01:15.188070587 -0700
+--- git.orig/argp/argp-fmtstream.c
++++ git/argp/argp-fmtstream.c
 @@ -42,6 +42,7 @@
  #ifdef _LIBC
  # include <wchar.h>

meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch Index: git/argp/argp-fmtstream.c · line 19

Quoted 7 lines
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +1 -1
@@ -14,7 +14,7 @@ Index: git/argp/argp-fmtstream.c
  # define __vsnprintf(s, l, f, a) _IO_vsnprintf (s, l, f, a)
  #endif
 
-@@ -100,7 +101,11 @@
+@@ -100,7 +101,11 @@ __argp_fmtstream_free (argp_fmtstream_t
    __argp_fmtstream_update (fs);
    if (fs->p > fs->buf)

Is there a way we could filter out the noise in the patch or move it into a separate commit? Its rather horrid to review this and I don't particularly want to backport the noise to dizzy either...

Cheers,

Richard