python-setuptools: Add reproducibility patches from Debian 9060/head
authorJeffery To <jeffery.to@gmail.com>
Fri, 24 May 2019 05:18:09 +0000 (13:18 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 24 May 2019 05:18:09 +0000 (13:18 +0800)
commitda35e6770db37106b4746e9b790012164729cba6
treece516f71dcadcb32709fc44fd0e43249535113e8
parent3d62778f6e4aac138fe9e239882c043f451a7ba1
python-setuptools: Add reproducibility patches from Debian

This adds the ability to patch setuptools (and pip), and adds 3
reproducibility patches from Debian[1].
(003-PKG-INFO-output-reproducible.patch addresses the issue identified
in #9039.)

The patching is not perfect, in that the patches are applied to
setuptools and pip after they have been installed, since they are
installed from wheels which are already "precompiled".

Also, patching for the host install cannot be updated in place, for
example if a patch is added or removed.

[1]: https://sources.debian.org/patches/python-setuptools/40.8.0-1/

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python-version.mk
lang/python/python/Makefile
lang/python/python/patches-setuptools/001-reproducible.patch [new file with mode: 0644]
lang/python/python/patches-setuptools/002-sorted-requires.patch [new file with mode: 0644]
lang/python/python/patches-setuptools/003-PKG-INFO-output-reproducible.patch [new file with mode: 0644]
lang/python/python3-version.mk
lang/python/python3/Makefile
lang/python/python3/patches-setuptools/001-reproducible.patch [new file with mode: 0644]
lang/python/python3/patches-setuptools/002-sorted-requires.patch [new file with mode: 0644]
lang/python/python3/patches-setuptools/003-PKG-INFO-output-reproducible.patch [new file with mode: 0644]