File reproducible.patch of Package python-bjoern
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',