forked from pool/python-bjoern
Accepting request 586168 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/586168 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bjoern?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 13 03:20:57 UTC 2018 - bwiedemann@suse.com
|
||||
|
||||
- Add reproducible.patch to make build reproducible (boo#1041090)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 2 16:27:46 UTC 2015 - boris@steki.net
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jonashaag/bjoern
|
||||
Source: http://pypi.python.org/packages/source/b/bjoern/bjoern-%{version}.tar.gz
|
||||
Patch0: reproducible.patch
|
||||
BuildRequires: libev-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -36,6 +37,7 @@ A screamingly fast Python WSGI server written in C depending on libev.
|
||||
|
||||
%prep
|
||||
%setup -q -n bjoern-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
|
||||
28
reproducible.patch
Normal file
28
reproducible.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
merged upstream
|
||||
|
||||
commit 7e4227ea7e789a8e917b52c43adda3318c4062bb
|
||||
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
||||
Date: Mon Jun 5 16:41:04 2017 +0200
|
||||
|
||||
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.
|
||||
|
||||
Index: bjoern-1.4.2/setup.py
|
||||
===================================================================
|
||||
--- bjoern-1.4.2.orig/setup.py
|
||||
+++ bjoern-1.4.2/setup.py
|
||||
@@ -3,7 +3,7 @@ import glob
|
||||
from distutils.core import setup, Extension
|
||||
|
||||
SOURCE_FILES = [os.path.join('http-parser', 'http_parser.c')] + \
|
||||
- glob.glob(os.path.join('bjoern', '*.c'))
|
||||
+ sorted(glob.glob(os.path.join('bjoern', '*.c')))
|
||||
|
||||
bjoern_extension = Extension(
|
||||
'_bjoern',
|
||||
Reference in New Issue
Block a user