Morten Linderud pushed to branch main at Arch Linux / Packaging / Packages / 
python-autobahn


Commits:
bfbff25d by Adrian Holfter at 2026-01-10T17:06:40+01:00
Use "safe" build and remove additional -march flag

Fixes 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-autobahn/-/issues/4

- - - - -
d5216a18 by Morten Linderud at 2026-01-17T15:01:53+01:00
Merge remote-tracking branch 'origin/merge-requests/1'

* origin/merge-requests/1:
  Use "safe" build and remove additional -march flag

- - - - -
822f0deb by Morten Linderud at 2026-01-17T15:05:04+01:00
upgpkg: 25.10.2-4

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + remove-march-flags-for-safe-builds.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-autobahn
        pkgdesc = Real-time framework for Web, Mobile & Internet of Things
        pkgver = 25.10.2
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/crossbario/autobahn-python/
        arch = x86_64
        license = MIT
@@ -55,6 +55,8 @@ pkgbase = python-autobahn
        optdepends = python-click: for text highlights
        optdepends = python-txtorcon: connections to Tor Onion services
        source = 
git+https://github.com/crossbario/autobahn-python.git#tag=v25.10.2
+       source = remove-march-flags-for-safe-builds.patch
        sha256sums = 
68e263cf4c8210dafd0368485ea6831620fea9dba2ae62a417638cdd12fa9e9a
+       sha256sums = 
292450d9ee4b5be7b62ff5767380f42fa31854f1a1890cdaafed0cd3f4b71ed4
 
 pkgname = python-autobahn


=====================================
PKGBUILD
=====================================
@@ -5,7 +5,7 @@
 pkgname=python-autobahn
 # https://github.com/crossbario/autobahn-python/blob/master/docs/changelog.rst
 pkgver=25.10.2
-pkgrel=3
+pkgrel=4
 pkgdesc='Real-time framework for Web, Mobile & Internet of Things'
 arch=(x86_64)
 url='https://github.com/crossbario/autobahn-python/'
@@ -38,21 +38,19 @@ optdepends=(
   'python-txtorcon: connections to Tor Onion services'
 )
 
-source=("git+https://github.com/crossbario/autobahn-python.git#tag=v$pkgver";)
-sha256sums=('68e263cf4c8210dafd0368485ea6831620fea9dba2ae62a417638cdd12fa9e9a')
+source=("git+https://github.com/crossbario/autobahn-python.git#tag=v$pkgver";
+        'remove-march-flags-for-safe-builds.patch')
+sha256sums=('68e263cf4c8210dafd0368485ea6831620fea9dba2ae62a417638cdd12fa9e9a'
+            '292450d9ee4b5be7b62ff5767380f42fa31854f1a1890cdaafed0cd3f4b71ed4')
 
 prepare() {
   cd "$srcdir/autobahn-python"
-  # For reproducibility
-  # If Arch decides to increase CPU requirements [1], -march=native can be
-  # replaced with -march=nehalem so that the SSE 4.1 implementation is built
-  # [1] 
https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0002-march.rst
-  sed -i "s#, '-march=native'##" autobahn/nvx/_utf8validator.py
+  patch -Np1 -i ../remove-march-flags-for-safe-builds.patch
 }
 
 build() {
   cd "$srcdir/autobahn-python"
-  python -m build --wheel --no-isolation
+  AUTOBAHN_ARCH_TARGET=safe python -m build --wheel --no-isolation
 }
 
 check() {


=====================================
REUSE.toml
=====================================
@@ -17,6 +17,7 @@ path = [
     "*.timer",
     "*.desktop",
     "*.hook",
+    "remove-march-flags-for-safe-builds.patch"
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"


=====================================
remove-march-flags-for-safe-builds.patch
=====================================
@@ -0,0 +1,21 @@
+diff -ura autobahn-python.orig/autobahn/nvx/_compile_args.py 
autobahn-python.new/autobahn/nvx/_compile_args.py
+--- autobahn-python.orig/autobahn/nvx/_compile_args.py 2026-01-10 
16:30:20.721405588 +0100
++++ autobahn-python.new/autobahn/nvx/_compile_args.py  2026-01-10 
16:44:55.784630451 +0100
+@@ -251,12 +251,13 @@
+     -------
+     str or None
+         Safe -march flag for the architecture, or None for unknown 
architectures.
++        Patched to always return None for Arch Linux x64 package builds.
++        If Arch decides to increase CPU requirements [1], -march=x86-64-v3 or
++        others could be used here.
++        [1] 
https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0002-x86-64-v3-microarchitecture.md
+     """
+     if machine in ("x86_64", "amd64", "x64"):
+-        # x86-64: Use microarchitecture level 2 (2009+ CPUs)
+-        # Includes: SSE4.2, POPCNT, SSSE3, SSE4.1
+-        # Compatible with: Intel Nehalem+, AMD Bulldozer+
+-        return "-march=x86-64-v2"
++        return None
+ 
+     elif machine in ("aarch64", "arm64"):
+         # ARM64: Use ARMv8-A baseline (all 64-bit ARM)



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-autobahn/-/compare/67d5bf7be03f8979f32618f81dc22c04830d7014...822f0deb35754461acc7e3f515e618b1e3310793

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-autobahn/-/compare/67d5bf7be03f8979f32618f81dc22c04830d7014...822f0deb35754461acc7e3f515e618b1e3310793
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to