[arch-commits] Commit in python-autobahn/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Mon Jul 13 02:09:51 UTC 2020
Date: Monday, July 13, 2020 @ 02:09:51
Author: yan12125
Revision: 663394
upgpkg: python-autobahn 20.6.2-2; attempt to achieve reproducibility
This change rules out the SSE 4.1 implementation in NVX (SSE 2 impl is still
built). Hopefully it does not impact performance too much.
Modified:
python-autobahn/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-13 01:38:06 UTC (rev 663393)
+++ PKGBUILD 2020-07-13 02:09:51 UTC (rev 663394)
@@ -4,7 +4,7 @@
pkgname=python-autobahn
pkgver=20.6.2
-pkgrel=1
+pkgrel=2
pkgdesc='Real-time framework for Web, Mobile & Internet of Things'
arch=(x86_64)
url='https://crossbar.io/autobahn/'
@@ -33,6 +33,15 @@
source=(https://files.pythonhosted.org/packages/source/a/autobahn/autobahn-$pkgver.tar.gz)
sha256sums=('6ac6b6653b8d20d632b034adccf6a566154d4efbeaa23abf7c3995fd601e9a01')
+prepare() {
+ cd "$srcdir/autobahn-$pkgver"
+ # For reproducibility
+ # If Arch decides to increase CPU requirements [1], -march=x86-64 can be
+ # replaced with -march=nehalem so that the SSE 4.1 implementation is built
+ # [1] https://lists.archlinux.org/pipermail/arch-dev-public/2020-March/029914.html
+ sed -i 's#-march=native#-march=x86-64#' autobahn/nvx/_utf8validator.py
+}
+
build() {
cd "$srcdir/autobahn-$pkgver"
AUTOBAHN_USE_NVX=1 python setup.py build
More information about the arch-commits
mailing list