From 76fc068e082832f1721be260e11792f0a7df9b3a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Tue, 15 Mar 2016 12:28:45 +0000 Subject: python2: update to 2.7.11 --- abs/core/python2/PKGBUILD | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/abs/core/python2/PKGBUILD b/abs/core/python2/PKGBUILD index a9d67a1..8615d48 100644 --- a/abs/core/python2/PKGBUILD +++ b/abs/core/python2/PKGBUILD @@ -5,22 +5,22 @@ # Contributor: Jason Chu pkgname=python2 -pkgver=2.7.9 -pkgrel=1 +pkgver=2.7.11 +pkgrel=2 _pybasever=2.7 pkgdesc="A high-level scripting language" arch=('i686' 'x86_64') license=('PSF') url="http://www.python.org/" depends=('bzip2' 'gdbm' 'openssl' 'zlib' 'expat' 'sqlite' 'libffi') -makedepends=('tk' 'bluez-libs') -checkdepends=('gdb') +makedepends=('tk' 'bluez-libs' 'hardening-wrapper') +checkdepends=('gdb' 'file') optdepends=('tk: for IDLE' 'python2-setuptools' 'python2-pip') conflicts=('python<3') source=(http://www.python.org/ftp/python/${pkgver%rc?}/Python-${pkgver}.tar.xz) -sha1sums=('3172f6e957713c2d9fca462cc16068222fd1b9d3') +sha1sums=('c3b8bbe3f084c4d4ea13ffb03d75a5e22f9756ff') prepare() { cd Python-${pkgver} @@ -53,8 +53,8 @@ prepare() { find . -name '*.py' | \ xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" - # Workaround asdl_c.py error after we touched the shebangs - touch Include/Python-ast.h Python/Python-ast.c + # Workaround asdl_c.py/makeopcodetargets.py errors after we touched the shebangs + touch Include/Python-ast.h Python/Python-ast.c Python/opcode_targets.h } build() { @@ -75,12 +75,14 @@ build() { } check() { - # As of 2.7.9, 2 tests failed: - # test_gdb test_mhlib + # As of 2.7.11, 2 tests failed: + # test_doctest test_gdb # Besides, test_thread disabled as it will stuck + + # $SHELL was set to avoid a test failure in test_gdb (it still fails due to other reasons, though) cd Python-${pkgver} - LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \ + SHELL=/bin/sh LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_thread || warning "Tests failed" } -- cgit v0.12