diff --git a/python-distorm3.changes b/python-distorm3.changes index d2750fd..7cff826 100644 --- a/python-distorm3.changes +++ b/python-distorm3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 24 06:14:18 UTC 2017 - bwiedemann@suse.com + +- Add reproducible.patch to sort file list to fix build-compare (boo#1041090) + ------------------------------------------------------------------- Mon Apr 22 10:20:20 UTC 2013 - speilicke@suse.com diff --git a/python-distorm3.spec b/python-distorm3.spec index 2d62e5c..add6c3e 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -25,6 +25,8 @@ Group: Development/Libraries/Python Url: http://code.google.com/p/distorm/ Source: distorm3-%{version}.zip Patch0: 0001-don-t-stutter-static-on-BigEndian.patch +# PATCH-FIX-UPSTREAM https://github.com/gdabah/distorm/pull/116 +Patch1: reproducible.patch BuildRequires: fdupes BuildRequires: python-devel BuildRequires: unzip @@ -41,6 +43,7 @@ than static text. %prep %setup -q -n distorm3 %patch0 -p1 +%patch1 -p1 %build CFLAGS="%{optflags}" python setup.py build diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..81ff602 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,30 @@ +https://github.com/gdabah/distorm/pull/116 + +From e300df86b8483f59dcd56c521eb5b8d07c9c92d9 Mon Sep 17 00:00:00 2001 +From: "Bernhard M. Wiedemann" +Date: Mon, 5 Jun 2017 21:59:26 +0200 +Subject: [PATCH] sort input files + +when building packages (e.g. for openSUSE Linux) +(random) filesystem order of input files +influences ordering of functions in the output, +thus without the patch, builds (in disposable VMs) would usually differ. + +See https://reproducible-builds.org/ for why this matters. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index b14ad67..e035e5b 100644 +--- a/setup.py ++++ b/setup.py +@@ -33,7 +33,7 @@ def get_sources(): + create the libdistorm3 library. + """ + +- return glob('src/*.c') ++ return sorted(glob('src/*.c')) + + + class custom_build(build):