diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-26 11:10:07 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-26 11:10:07 +0200 |
commit | a39e19f96447a409ae6f6c1c63d3c16feb1a3991 (patch) | |
tree | 148fdebc95bfd8788f91996703d2094c1b8df4da /testing/py-tkinter | |
parent | c5240dc4d2a5efc26b94c943d87848e51ba2794b (diff) | |
download | aports-a39e19f96447a409ae6f6c1c63d3c16feb1a3991.tar.bz2 aports-a39e19f96447a409ae6f6c1c63d3c16feb1a3991.tar.xz |
unmaintained/[multiple] move back packages to testing
move back packages that are depends of other packages in testing
Diffstat (limited to 'testing/py-tkinter')
-rw-r--r-- | testing/py-tkinter/APKBUILD | 87 | ||||
-rw-r--r-- | testing/py-tkinter/find_library.patch | 11 | ||||
-rw-r--r-- | testing/py-tkinter/unchecked-ioctl.patch | 11 |
3 files changed, 109 insertions, 0 deletions
diff --git a/testing/py-tkinter/APKBUILD b/testing/py-tkinter/APKBUILD new file mode 100644 index 0000000000..1effa6fc70 --- /dev/null +++ b/testing/py-tkinter/APKBUILD @@ -0,0 +1,87 @@ +# Maintainer: Isaac Dunham <ibid.ag@gmail.com> +# This depends on the current packaging of Python, +# which includes idle, the tkinter and idle *.py* files, but not _tkinter.so +pkgname=py-tkinter +_pkgname=python +pkgver=2.7.9 +_verbase=${pkgver%.*} +pkgrel=0 +pkgdesc="Tk interface for Python" +url="http://www.python.org" +arch="all" +license="custom" +subpackages="" +depends="" +makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev + libffi-dev tk-dev python-dev" +source="http://www.$pkgname.org/ftp/$_pkgname/$pkgver/Python-$pkgver.tar.xz + find_library.patch + unchecked-ioctl.patch + " + +prepare() { + cd "$srcdir/Python-$pkgver" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 + esac + done + + # verify that python version corresponds with system python version + _pyver=$(python -c 'import platform; print platform.python_version()') + if [ "$_pyver" != "$pkgver" ]; then + error "$pkgver does not correspond with python $_pyver" + return 1 + fi + + # Make sure we use system libs + rm -r Modules/expat Modules/_ctypes/libffi* Modules/zlib || return 1 + + # make sure our /dev/shm is world writeable + if ! touch /dev/shm/"$pkgname-$pkgver"; then + error "/dev/shm is not world writeable. this will cause a broken python build" + return 1 + fi + rm /dev/shm/"$pkgname-$pkgver" +} + +build() { + cd "$srcdir/Python-$pkgver" + export OPT="$CFLAGS" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-shared \ + --with-threads \ + --enable-ipv6 \ + --with-system-ffi \ + --with-system-expat \ + --with-system-zlib \ + --enable-unicode=ucs4 \ + --with-tcltk-libs="`pkg-config --libs tk`" \ + --with-tcltk-includes="`pkg-config --cflags tk`" \ + || return 1 + make sharedmods || return 1 +} + +package() { + cd "$srcdir/Python-$pkgver" + make -j1 DESTDIR="$pkgdir" sharedinstall || return 1 + find "$pkgdir/" -type f ! -name _tkinter.so -exec rm -f '{}' + \ + || return 1 + find "$pkgdir/" -type l -exec rm -f '{}' + || return 1 + find "$pkgdir/" -type d -exec rmdir -p '{}' \; || true + ls "$pkgdir/usr/lib/$_pkgname$_verbase/lib-dynload/_tkinter.so" \ + || return 1 +} + +md5sums="38d530f7efc373d64a8fb1637e3baaa7 Python-2.7.9.tar.xz +5d8ca92fa6f187573104593470a9d3d5 find_library.patch +dada786a50fa332686a9b9260d84c110 unchecked-ioctl.patch" +sha256sums="90d27e14ea7e03570026850e2e50ba71ad20b7eb31035aada1cf3def8f8d4916 Python-2.7.9.tar.xz +63b2b1489c2b97b450bb2d19b64f2ae6cca5c43d549c131c7807fbe52b7bbf21 find_library.patch +f9d37609bab83d9ffff96ec9a33e16568cfb14980d389f7fe34a1c837397e359 unchecked-ioctl.patch" +sha512sums="6939182463272a6bb9da0e327bfb9efc574a87820f2ae39eaf02d9fae053dbe0004330e916e6828becfef94cbe294acb0a88a600f8930b99b94fcfc4efc44ff4 Python-2.7.9.tar.xz +cbb18c23b1b55025ba8a08debd545b68317eef2732f9f631d2629ed71b603b9a90843bca5df9db7072e83e29c928b0e9c557d0710955692052607db36a241c08 find_library.patch +5a8e013a4132d71c4360771f130d27b37275ae59330cf9a75378dc8a11236017f540eb224f2a148984e82ca3fb6b29129375b1080ba05b81044faa717520ab82 unchecked-ioctl.patch" diff --git a/testing/py-tkinter/find_library.patch b/testing/py-tkinter/find_library.patch new file mode 100644 index 0000000000..c4975250bb --- /dev/null +++ b/testing/py-tkinter/find_library.patch @@ -0,0 +1,11 @@ +--- ./Lib/ctypes/util.py.orig ++++ ./Lib/ctypes/util.py +@@ -227,7 +227,7 @@ + abi_type = mach_map.get(machine, 'libc6') + + # XXX assuming GLIBC's ldconfig (with option -p) +- expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type) ++ expr = r'\s+(lib%s\.[^\s]+)\s+\(' % (re.escape(name)) + f = os.popen('/sbin/ldconfig -p 2>/dev/null') + try: + data = f.read() diff --git a/testing/py-tkinter/unchecked-ioctl.patch b/testing/py-tkinter/unchecked-ioctl.patch new file mode 100644 index 0000000000..4d5564c2cb --- /dev/null +++ b/testing/py-tkinter/unchecked-ioctl.patch @@ -0,0 +1,11 @@ +--- ./Modules/fcntlmodule.c.orig ++++ ./Modules/fcntlmodule.c +@@ -118,7 +118,7 @@ + int mutate_arg = 1; + char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */ + +- if (PyArg_ParseTuple(args, "O&Iw#|i:ioctl", ++ if (PyArg_ParseTuple(args, "O&Iw#|n:ioctl", + conv_descriptor, &fd, &code, + &str, &len, &mutate_arg)) { + char *arg; |