aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-09-22 19:22:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-22 19:26:49 +0000
commitc3f535e2460f82e36facf515d906accf0a0a2f7b (patch)
tree30e94a0e8dcbc20580921ace86b897cd68a2b626 /main
parentea41a016880955210adba298da9d563f78db79f5 (diff)
downloadaports-c3f535e2460f82e36facf515d906accf0a0a2f7b.tar.bz2
aports-c3f535e2460f82e36facf515d906accf0a0a2f7b.tar.xz
main/python3: split out wininst*.exe
the wininst is only needed for creating binary disttribution for windows and is rarely needed. 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.
Diffstat (limited to 'main')
-rw-r--r--main/python3/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/python3/APKBUILD b/main/python3/APKBUILD
index a5e22b73ad..f5f8138527 100644
--- a/main/python3/APKBUILD
+++ b/main/python3/APKBUILD
@@ -4,14 +4,14 @@
pkgname=python3
pkgver=3.6.2
_basever="${pkgver%.*}"
-pkgrel=2
+pkgrel=3
pkgdesc="A high-level scripting language"
url="http://www.python.org"
arch="all"
license="custom"
provides="py3-pip"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tests::noarch
- $pkgname-tkinter:tkinter"
+ $pkgname-tkinter:tkinter $pkgname-wininst"
makedepends="expat-dev libressl-dev zlib-dev ncurses-dev bzip2-dev xz-dev
sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev
tk tk-dev"
@@ -121,6 +121,13 @@ tkinter() {
mv "$pkgdir"/$libdir/_tkinter.*.so "$subpkgdir"/$libdir/
}
+wininst() {
+ pkgdesc="Python wininst files"
+ mkdir -p "$subpkgdir"/usr/lib/python$_basever/distutils/command
+ mv "$pkgdir"/usr/lib/python$_basever/distutils/command/*.exe \
+ "$subpkgdir"/usr/lib/python$_basever/distutils/command
+}
+
sha512sums="a8270a09a9e9b39f69ece6cdade2fa964665d2107b5acbad4453f1b921107b329c697c137185928fb4a576fc0f2ae2a98dbf26a8b7ea17219e990ddbc216db8b Python-3.6.2.tar.xz
ab8eaa2858d5109049b1f9f553198d40e0ef8d78211ad6455f7b491af525bffb16738fed60fc84e960c4889568d25753b9e4a1494834fea48291b33f07000ec2 musl-find_library.patch
37b6ee5d0d5de43799316aa111423ba5a666c17dc7f81b04c330f59c1d1565540eac4c585abe2199bbed52ebe7426001edb1c53bd0a17486a2a8e052d0f494ad fix-xattrs-glibc.patch