forked from pool/libdnet
Add reproducible.patch to sort linked .o files to make package build reproducible (boo#1041090) OBS-URL: https://build.opensuse.org/request/show/626786 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libdnet?expand=0&rev=18
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
Date: 2017-09-02
|
|
|
|
https://github.com/dugsong/libdnet/pull/42
|
|
https://bugzilla.opensuse.org/show_bug.cgi?id=1041090
|
|
|
|
sort linker file list
|
|
so that dnet.so builds in a reproducible way
|
|
in spite of indeterministic filesystem readdir order
|
|
and http://bugs.python.org/issue30461
|
|
|
|
See https://reproducible-builds.org/ for why this is good.
|
|
|
|
This allows the libdnet package in openSUSE Tumbleweed
|
|
to produce identical rpms on different builds.
|
|
|
|
Index: libdnet-libdnet-1.12/python/setup.py.in
|
|
===================================================================
|
|
--- libdnet-libdnet-1.12.orig/python/setup.py.in
|
|
+++ libdnet-libdnet-1.12/python/setup.py.in
|
|
@@ -20,7 +20,7 @@ else:
|
|
# XXX - can't build on Cygwin+MinGW yet.
|
|
#if sys.platform == 'cygwin':
|
|
# dnet_extargs.append('-mno-cygwin')
|
|
- dnet_extobj.extend(glob.glob('@top_builddir@/src/.libs/*.o'))
|
|
+ dnet_extobj.extend(sorted(glob.glob('@top_builddir@/src/.libs/*.o')))
|
|
|
|
dnet = Extension('dnet',
|
|
dnet_srcs,
|