diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-04-17 00:12:58 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-04-17 00:12:58 -0300 |
commit | 048b7287473507b76146e58378f4bfcfacf1060b (patch) | |
tree | 16e2da6843a14b79a1392c5e385504f799b4f788 /extra/python/PKGBUILD | |
parent | b3d851540186419305a4b89ba8e5320f4e7fa56d (diff) | |
parent | ec549f64c923643d4b13dd7d364e080840ae3e29 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Diffstat (limited to 'extra/python/PKGBUILD')
-rw-r--r-- | extra/python/PKGBUILD | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/extra/python/PKGBUILD b/extra/python/PKGBUILD index 68b386b6f..3ecf9f427 100644 --- a/extra/python/PKGBUILD +++ b/extra/python/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 110651 2011-02-21 01:21:12Z stephane $ +# $Id: PKGBUILD 119805 2011-04-15 11:51:39Z stephane $ # Maintainer: Stéphane Gaudreault <stephane@archlinux.org> # Maintainer: Allan McRae <allan@archlinux.org> # Contributer: Jason Chu <jason@archlinux.org> pkgname=python pkgver=3.2 -pkgrel=1 +pkgrel=2 _pybasever=3.2 pkgdesc="Next generation of the python high-level scripting language" arch=('i686' 'x86_64' 'mips64el') @@ -17,9 +17,10 @@ optdepends=('tk: for tkinter') provides=('python3') replaces=('python3') options=('!makeflags') -source=(http://www.python.org/ftp/python/${_pybasever}/Python-${pkgver}.tar.xz) -sha1sums=('55a3a9d39f31563370d0c494373bb6d38e4d1a00') - +source=(http://www.python.org/ftp/python/${_pybasever}/Python-${pkgver}.tar.xz + CVE-2011-1521.patch) +sha1sums=('55a3a9d39f31563370d0c494373bb6d38e4d1a00' + '561161ce5ae3a91254352c09a33e3e4434444e14') build() { cd "${srcdir}/Python-${pkgver}" @@ -29,6 +30,10 @@ build() { rm -r Modules/zlib rm -r Modules/_ctypes/{darwin,libffi}* + # urllib Security Vulnerability + # http://blog.python.org/2011/04/urllib-security-vulnerability-fixed.html + patch -Np1 -i ../CVE-2011-1521.patch + ./configure --prefix=/usr \ --enable-shared \ --with-threads \ @@ -40,10 +45,12 @@ build() { --with-system-ffi make +} - # Run the upstream test suite -# LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \ -# "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils +check() { + cd "${srcdir}/Python-${pkgver}" + LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \ + "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils test_site } package() { |