]> granicus.if.org Git - python/commit
bpo-36302: Sort list of sources (GH-12341)
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Thu, 1 Aug 2019 13:18:03 +0000 (15:18 +0200)
committerVictor Stinner <vstinner@redhat.com>
Thu, 1 Aug 2019 13:18:03 +0000 (15:18 +0200)
commit0d30ae1a03102de07758650af9243fd31211325a
tree2814f7683eda24944220d0c6cd2c03f77a82e3ce
parent1a057bab0f18d6ad843ce321d1d77a4819497ae4
bpo-36302: Sort list of sources (GH-12341)

When building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output .so files.
Thus without the patch, builds (in disposable VMs) would usually differ.

Without this patch, all callers have to be patched individually
https://github.com/dugsong/libdnet/pull/42
https://github.com/sass/libsass-python/pull/212
https://github.com/tahoe-lafs/pycryptopp/pull/41
https://github.com/yt-project/yt/pull/2206
https://github.com/pyproj4/pyproj/pull/142
https://github.com/pytries/datrie/pull/49
https://github.com/Roche/pyreadstat/pull/37
but that is an infinite effort.

See https://reproducible-builds.org/ for why this matters.
Lib/distutils/command/build_ext.py
Misc/NEWS.d/next/Library/2019-03-21-19-23-46.bpo-36302.Yc591g.rst [new file with mode: 0644]