[arch-commits] Commit in libxml2/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Wed May 25 15:12:24 UTC 2016
Date: Wednesday, May 25, 2016 @ 17:12:24
Author: jgc
Revision: 268551
upgpkg: libxml2 2.9.4+0+gbdec218-2
Package main package from build-py2
Run testsuite from build-py2
Disable makeflags because python bindings are generated multiple times in parallel
Add PYTHONHASHSEED hack to make python 3 bindings reproducible
Modified:
libxml2/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-25 08:02:13 UTC (rev 268550)
+++ PKGBUILD 2016-05-25 15:12:24 UTC (rev 268551)
@@ -5,11 +5,12 @@
pkgname=libxml2
pkgver=2.9.4+0+gbdec218
-pkgrel=1
+pkgrel=2
pkgdesc="XML parsing library, version 2"
arch=(i686 x86_64)
license=('MIT')
depends=('zlib' 'readline' 'ncurses' 'xz')
+options=(!makeflags)
makedepends=('python2' 'python' 'git')
url="http://www.xmlsoft.org/"
source=('git://git.gnome.org/libxml2#commit=bdec2183f34b37ee89ae1d330c6ad2bb4d76605f'
@@ -25,7 +26,7 @@
prepare() {
mkdir build-py3
mkdir build-py2
- mv xmlconf build-py3/
+ mv xmlconf build-py2/
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
@@ -39,21 +40,21 @@
cd ../build-py3
../$pkgname/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
- make
+ PYTHONHASHSEED=0 make
}
check() {
- cd build-py3
+ cd build-py2
make check
}
package() {
- cd build-py3
+ cd build-py2
find doc -type f -exec chmod 0644 {} \;
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
- cd ../build-py2/python
- make DESTDIR="${pkgdir}" install
+ cd ../build-py3/python
+ PYTHONHASHSEED=0 make DESTDIR="${pkgdir}" install
}
More information about the arch-commits
mailing list