diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-16 14:12:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-16 14:15:33 +0000 |
commit | 9d42714569a43a815f04bddbfc4c5526a8bbac9a (patch) | |
tree | 97f8a7bc51f74e12099343d11a258c353d125743 | |
parent | 347cd6ec857c858768502016309832661e65da7e (diff) | |
download | aports-9d42714569a43a815f04bddbfc4c5526a8bbac9a.tar.bz2 aports-9d42714569a43a815f04bddbfc4c5526a8bbac9a.tar.xz |
main/python2: split out wininst*.exe
The wininst is only needed for creating binary distribution for windows
and is rarely needed, if ever. The precompiled .exe files contains statically
linked version of zlib 1.2.8 which is vulnerable.
Remove them from main package and save a couple of MB, like we did with
python3 (commit c3f535e2460f82e36facf515d906accf0a0a2f7b).
-rw-r--r-- | main/python2/APKBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/main/python2/APKBUILD b/main/python2/APKBUILD index 6db8ec93fb..f43c227441 100644 --- a/main/python2/APKBUILD +++ b/main/python2/APKBUILD @@ -4,14 +4,15 @@ pkgname=python2 # the python2-tkinter's pkgver needs to be synchronized with this. pkgver=2.7.15 _verbase=${pkgver%.*} -pkgrel=0 +pkgrel=1 pkgdesc="A high-level scripting language" url="http://www.python.org" arch="all" license="custom" provides="python=$pkgver-r$pkgrel" replaces="python" -subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-tests py-gdbm:gdbm" +subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-tests py-gdbm:gdbm + $pkgname-wininst" depends="" makedepends="expat-dev libressl-dev zlib-dev ncurses-dev bzip2-dev gdbm-dev sqlite-dev libffi-dev readline-dev linux-headers paxmark" @@ -120,6 +121,13 @@ gdbm() { _mv_files $(find usr/lib -name '*gdbm*') } +wininst() { + pkgdesc="Python wininst files" + mkdir -p "$subpkgdir"/usr/lib/python$_verbase/distutils/command + mv "$pkgdir"/usr/lib/python$_verbase/distutils/command/*.exe \ + "$subpkgdir"/usr/lib/python$_verbase/distutils/command +} + sha512sums="27ea43eb45fc68f3d2469d5f07636e10801dee11635a430ec8ec922ed790bb426b072da94df885e4dfa1ea8b7a24f2f56dd92f9b0f51e162330f161216bd6de6 Python-2.7.15.tar.xz ab8eaa2858d5109049b1f9f553198d40e0ef8d78211ad6455f7b491af525bffb16738fed60fc84e960c4889568d25753b9e4a1494834fea48291b33f07000ec2 musl-find_library.patch 5a8e013a4132d71c4360771f130d27b37275ae59330cf9a75378dc8a11236017f540eb224f2a148984e82ca3fb6b29129375b1080ba05b81044faa717520ab82 unchecked-ioctl.patch" |