[arch-commits] Commit in python-pytables/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 31 08:55:58 UTC 2015


    Date: Saturday, October 31, 2015 @ 09:55:58
  Author: foutrelis
Revision: 145354

upgpkg: python-pytables 3.2.2-3

Remove -march=native from setup.py; this was causing binaries to contain
AVX instructions on x86_64 if the build host supports that ISA extension.

Modified:
  python-pytables/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-31 08:45:46 UTC (rev 145353)
+++ PKGBUILD	2015-10-31 08:55:58 UTC (rev 145354)
@@ -5,7 +5,7 @@
 pkgbase=python-pytables
 pkgname=('python2-pytables' 'python-pytables')
 pkgver=3.2.2
-pkgrel=2
+pkgrel=3
 arch=("i686" "x86_64")
 pkgdesc="A package for managing hierarchical datasets and designed to efficiently and easily cope with extremely large amounts of data"
 url="http://www.pytables.org"
@@ -17,6 +17,12 @@
 prepare() {
   cd "$srcdir"/tables-$pkgver
 
+  # -march=native generates AVX instructions if the host supports it, which
+  # then results in "SIGILL (Illegal instruction)" on machines lacking AVX
+  # https://github.com/PyTables/PyTables/issues/458
+  # https://github.com/PyTables/PyTables/pull/503
+  sed -i 's/"-march=native",\?//' setup.py
+
   cd "$srcdir"
   cp -a tables-$pkgver tables-py2-$pkgver
 }



More information about the arch-commits mailing list