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 differ.

See https://reproducible-builds.org/ for why this matters.

Cherry-Picked-From commit 72f8ad9756
This commit is contained in:
Bernhard M. Wiedemann 2017-05-29 16:12:11 +02:00 committed by Arvid Norberg
parent 7e653b9669
commit 7e106b2660
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ else:
os.environ['CFLAGS'] = os.environ['CXXFLAGS'] os.environ['CFLAGS'] = os.environ['CXXFLAGS']
ext = [Extension('libtorrent', ext = [Extension('libtorrent',
sources = source_list, sources = sorted(source_list),
language='c++', language='c++',
include_dirs = flags.include_dirs, include_dirs = flags.include_dirs,
library_dirs = flags.library_dirs, library_dirs = flags.library_dirs,