Andreas Schwab
54a17f44a5
Add make-sorted-glob.patch to make many other packages like dpdk build reproducibly without patching them individually (boo#1041090) now with changed patch tag, even though the patch might be accepted by upstream later OBS-URL: https://build.opensuse.org/request/show/534913 OBS-URL: https://build.opensuse.org/package/show/Base:System/make?expand=0&rev=55
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
https://savannah.gnu.org/bugs/index.php?52076
|
|
|
|
commit faa0098ac6b196375b00c48528a91ee553313e8d
|
|
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
|
Date: Tue Sep 5 13:16:08 2017 +0200
|
|
|
|
Sort glob file lists
|
|
|
|
to make builds more reproducible by default.
|
|
See https://reproducible-builds.org/ for why this is good.
|
|
|
|
commit b9f831b8 added GLOB_NOSORT for no apparent reason,
|
|
possibly by mistake.
|
|
|
|
man 3 glob is very specific that the only reason to add this flag is
|
|
to save processing time, but since ordering actually matters in a
|
|
variety of cases, (e.g. when linking .o files into a binary,
|
|
or appending snippets to a collection)
|
|
we want the list sorted.
|
|
|
|
Index: make-4.2.1/read.c
|
|
===================================================================
|
|
--- make-4.2.1.orig/read.c
|
|
+++ make-4.2.1/read.c
|
|
@@ -3275,7 +3275,7 @@ parse_file_seq (char **stringp, unsigned
|
|
nlist = &name;
|
|
}
|
|
else
|
|
- switch (glob (name, GLOB_NOSORT|GLOB_ALTDIRFUNC, NULL, &gl))
|
|
+ switch (glob (name, GLOB_ALTDIRFUNC, NULL, &gl))
|
|
{
|
|
case GLOB_NOSPACE:
|
|
OUT_OF_MEM();
|