/usr/src/newlib/patches/reproducible-builds-locale.patch is in newlib-source 2.4.0.20160527-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | --- newlib-2.4.0.20160527.orig/newlib/Makefile.am
+++ newlib-2.4.0.20160527/newlib/Makefile.am
@@ -160,6 +160,7 @@ libc.a: libc/libc.a libm.a
rm -rf libc.a libg.a tmp
mkdir tmp
cd tmp; \
+ LC_ALL=C ; \
$(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \
$(AR) x ../libc/libc.a ; \
$(AR) $(AR_FLAGS) ../$@ *.o
--- newlib-2.4.0.20160527.orig/newlib/Makefile.in
+++ newlib-2.4.0.20160527/newlib/Makefile.in
@@ -921,6 +921,7 @@ uninstall-am: uninstall-toollibDATA unin
@USE_LIBTOOL_FALSE@ rm -rf libc.a libg.a tmp
@USE_LIBTOOL_FALSE@ mkdir tmp
@USE_LIBTOOL_FALSE@ cd tmp; \
+@USE_LIBTOOL_FALSE@ LC_ALL=C; \
@USE_LIBTOOL_FALSE@ $(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \
@USE_LIBTOOL_FALSE@ $(AR) x ../libc/libc.a ; \
@USE_LIBTOOL_FALSE@ $(AR) $(AR_FLAGS) ../$@ *.o
--- newlib-2.4.0.20160527.orig/newlib/libc/Makefile.am
+++ newlib-2.4.0.20160527/newlib/libc/Makefile.am
@@ -107,6 +107,7 @@ libc.a: $(SUBLIBS)
rm -rf tmp
mkdir tmp
cd tmp; \
+ LC_ALL=C ; \
for i in $(SUBLIBS); do \
$(AR) x ../$$i; \
done; \
--- newlib-2.4.0.20160527.orig/newlib/libc/Makefile.in
+++ newlib-2.4.0.20160527/newlib/libc/Makefile.in
@@ -1026,6 +1026,7 @@ uninstall-am: uninstall-dvi-am uninstall
@USE_LIBTOOL_FALSE@ rm -rf tmp
@USE_LIBTOOL_FALSE@ mkdir tmp
@USE_LIBTOOL_FALSE@ cd tmp; \
+@USE_LIBTOOL_FALSE@ LC_ALL=C; \
@USE_LIBTOOL_FALSE@ for i in $(SUBLIBS); do \
@USE_LIBTOOL_FALSE@ $(AR) x ../$$i; \
@USE_LIBTOOL_FALSE@ done; \
--- newlib-2.4.0.20160527.orig/newlib/libc/sys/linux/Makefile.am
+++ newlib-2.4.0.20160527/newlib/libc/sys/linux/Makefile.am
@@ -196,6 +196,7 @@ lib.a: $(lib_a_OBJECTS)
rm -rf tmp
mkdir tmp
cd tmp; \
+ LC_ALL=C ; \
for i in $(SUBLIBS); do \
$(AR) x ../$$i; \
done; \
--- newlib-2.4.0.20160527.orig/newlib/libc/sys/linux/Makefile.in
+++ newlib-2.4.0.20160527/newlib/libc/sys/linux/Makefile.in
@@ -1599,6 +1599,7 @@ uninstall-am:
@USE_LIBTOOL_FALSE@ rm -rf tmp
@USE_LIBTOOL_FALSE@ mkdir tmp
@USE_LIBTOOL_FALSE@ cd tmp; \
+@USE_LIBTOOL_FALSE@ LC_ALL=C; \
@USE_LIBTOOL_FALSE@ for i in $(SUBLIBS); do \
@USE_LIBTOOL_FALSE@ $(AR) x ../$$i; \
@USE_LIBTOOL_FALSE@ done; \
--- newlib-2.4.0.20160527.orig/newlib/libm/Makefile.am
+++ newlib-2.4.0.20160527/newlib/libm/Makefile.am
@@ -25,6 +25,7 @@ libm.a: $(SUBLIBS)
rm -rf tmp
mkdir tmp
cd tmp; \
+ LC_ALL=C ; \
for i in $(SUBLIBS); do \
$(AR) x ../$$i; \
done; \
--- newlib-2.4.0.20160527.orig/newlib/libm/Makefile.in
+++ newlib-2.4.0.20160527/newlib/libm/Makefile.in
@@ -899,6 +899,7 @@ uninstall-am: uninstall-dvi-am uninstall
@USE_LIBTOOL_FALSE@ rm -rf tmp
@USE_LIBTOOL_FALSE@ mkdir tmp
@USE_LIBTOOL_FALSE@ cd tmp; \
+@USE_LIBTOOL_FALSE@ LC_ALL=C; \
@USE_LIBTOOL_FALSE@ for i in $(SUBLIBS); do \
@USE_LIBTOOL_FALSE@ $(AR) x ../$$i; \
@USE_LIBTOOL_FALSE@ done; \
|