summaryrefslogtreecommitdiff
path: root/extra/python2/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /extra/python2/PKGBUILD
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'extra/python2/PKGBUILD')
-rw-r--r--extra/python2/PKGBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/extra/python2/PKGBUILD b/extra/python2/PKGBUILD
index 3d66fb8fe..f1a3a5108 100644
--- a/extra/python2/PKGBUILD
+++ b/extra/python2/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 193929 2013-09-06 08:06:17Z bpiotrowski $
+# $Id: PKGBUILD 200588 2013-11-29 15:17:25Z angvp $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributer: Allan McRae <allan@archlinux.org>
# Contributer: Jason Chu <jason@archlinux.org>
pkgname=python2
-pkgver=2.7.5
-pkgrel=2
+pkgver=2.7.6
+pkgrel=1
_pybasever=2.7
pkgdesc="A high-level scripting language"
arch=('i686' 'x86_64')
@@ -16,17 +16,12 @@ makedepends=('tk>=8.6.0' 'bluez-libs')
optdepends=('tk: for IDLE')
conflicts=('python<3')
options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc?}/Python-${pkgver}.tar.xz
- python-2.7.5-CVE-2013-4238.patch)
-sha1sums=('b7389791f789625c2ba9d897aa324008ff482daf'
- 'fb1f95ca21d9c00eaaea5a58236d1d97300482d7')
+source=(http://www.python.org/ftp/python/${pkgver%rc?}/Python-${pkgver}.tar.xz)
+sha1sums=('8321636af2acbeaa68fc635d7dda7369ed446a80')
prepare() {
cd "${srcdir}/Python-${pkgver}"
- # http://bugs.python.org/issue18709
- patch -Np1 -i ../python-2.7.5-CVE-2013-4238.patch
-
# Temporary workaround for FS#22322
# See http://bugs.python.org/issue10835 for upstream report
sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
@@ -86,9 +81,12 @@ package() {
mv "${pkgdir}"/usr/bin/2to3{,-2.7}
# clean up #!s
- find "${pkgdir}"/usr/lib/python${_pybasever}/ -name '*.py' | \
+ find . -name '*.py' | \
xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|"
+ # Workaround asdl_c.py error
+ touch Include/Python-ast.h Python/Python-ast.c
+
# clean-up reference to build directory
sed -i "s#${srcdir}/Python-${pkgver}:##" "${pkgdir}"/usr/lib/python${_pybasever}/config/Makefile