summaryrefslogtreecommitdiffstats
path: root/python2/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'python2/Pkgfile')
-rwxr-xr-xpython2/Pkgfile11
1 files changed, 6 insertions, 5 deletions
diff --git a/python2/Pkgfile b/python2/Pkgfile
index a292bea61..8395b79be 100755
--- a/python2/Pkgfile
+++ b/python2/Pkgfile
@@ -6,18 +6,19 @@
name=python2
version=2.7.2
-release=1
+release=2
_pybasever=2.7
-
-source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2
- python-2.7-db51.diff)
+source=(http://www.python.org/ftp/python/$version/Python-$version.tar.bz2
+ python-2.7-db51.diff
+ gdbm-magic-values.patch)
build() {
cd Python-$version
sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
-# patch -Np1 -i ../python-2.7-db51.diff
+ patch -Np1 -i ../python-2.7-db51.diff
+ patch -Np1 -i ../gdbm-magic-values.patch
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python2|" Lib/cgi.py