[arch-commits] Commit in python/trunk (PKGBUILD gdbm-magic-values.patch)
Stéphane Gaudreault
stephane at archlinux.org
Mon Nov 21 17:38:37 UTC 2011
Date: Monday, November 21, 2011 @ 12:38:37
Author: stephane
Revision: 143040
upgpkg: python 3.2.2-2
gdbm 1.10 rebuild
Added:
python/trunk/gdbm-magic-values.patch
Modified:
python/trunk/PKGBUILD
-------------------------+
PKGBUILD | 15 +++++++++++----
gdbm-magic-values.patch | 13 +++++++++++++
2 files changed, 24 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-11-21 17:36:08 UTC (rev 143039)
+++ PKGBUILD 2011-11-21 17:38:37 UTC (rev 143040)
@@ -5,7 +5,7 @@
pkgname=python
pkgver=3.2.2
-pkgrel=1
+pkgrel=2
_pybasever=3.2
pkgdesc="Next generation of the python high-level scripting language"
arch=('i686' 'x86_64')
@@ -17,8 +17,10 @@
provides=('python3')
replaces=('python3')
options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('5e654dbd48476193ccdef4d604ed4f45b48c6769')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
+ gdbm-magic-values.patch)
+sha1sums=('5e654dbd48476193ccdef4d604ed4f45b48c6769'
+ '43bfbe3e23360f412b95cb284ff29b2cbe338be9')
build() {
cd "${srcdir}/Python-${pkgver}"
@@ -26,6 +28,10 @@
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+ # gdbm has new magic that whichdb does not recognize
+ # http://bugs.python.org/issue13007
+ patch -Np1 -i ../gdbm-magic-values.patch
+
# Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
# rather than copies shipped in the tarball
rm -r Modules/expat
@@ -40,6 +46,7 @@
--with-valgrind \
--with-wide-unicode \
--with-system-expat \
+ --with-dbmliborder=gdbm:ndbm \
--with-system-ffi
make
@@ -48,7 +55,7 @@
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
+ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -x test_distutils test_site test_uuid
}
package() {
Added: gdbm-magic-values.patch
===================================================================
--- gdbm-magic-values.patch (rev 0)
+++ gdbm-magic-values.patch 2011-11-21 17:38:37 UTC (rev 143040)
@@ -0,0 +1,13 @@
+diff -up Python-3.2.2/Lib/dbm/__init__.py.gdbm-1.9-magic Python-3.2.2/Lib/dbm/__init__.py
+--- Python-3.2.2/Lib/dbm/__init__.py.gdbm-1.9-magic 2011-09-03 12:16:40.000000000 -0400
++++ Python-3.2.2/Lib/dbm/__init__.py 2011-09-30 15:47:27.488863694 -0400
+@@ -166,7 +166,7 @@ def whichdb(filename):
+ return ""
+
+ # Check for GNU dbm
+- if magic == 0x13579ace:
++ if magic in (0x13579ace, 0x13579acd, 0x13579acf):
+ return "dbm.gnu"
+
+ # Later versions of Berkeley db hash file have a 12-byte pad in
+diff -up Python-3.2.2/Misc/NEWS.gdbm-1.9-magic Python-3.2.2/Misc/NEWS
More information about the arch-commits
mailing list