forked from pool/python-distorm3
Accepting request 512169 from home:bmwiedemann:branches:devel:languages:python
Add reproducible.patch to sort file list to fix build-compare (boo#1041090) OBS-URL: https://build.opensuse.org/request/show/512169 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=15
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
30
reproducible.patch
Normal file
30
reproducible.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
https://github.com/gdabah/distorm/pull/116
|
||||
|
||||
From e300df86b8483f59dcd56c521eb5b8d07c9c92d9 Mon Sep 17 00:00:00 2001
|
||||
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
||||
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):
|
||||
Reference in New Issue
Block a user