git: 1b106b21b3f9 - main - www/py-autobahn: various fixes

Piotr Kubaj <[email protected]> Mon, 03 Aug 2026 15:21:44 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1b106b21b3f9ea2626e66cffe34f8a2ec3f681f8

commit 1b106b21b3f9ea2626e66cffe34f8a2ec3f681f8
Author:     Piotr Kubaj <[email protected]>
AuthorDate: 2026-08-02 10:05:44 +0000
Commit:     Piotr Kubaj <[email protected]>
CommitDate: 2026-08-03 15:21:17 +0000

    www/py-autobahn: various fixes
    
    1. Remove -march=native.
    2. Strip all the libraries.
    3. Removing -march=native allows to build on armv7.
---
 www/py-autobahn/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/www/py-autobahn/Makefile b/www/py-autobahn/Makefile
index 281e2817d497..7ef0cbf423d0 100644
--- a/www/py-autobahn/Makefile
+++ b/www/py-autobahn/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	autobahn
 DISTVERSIONPREFIX=	v
 DISTVERSION=	25.10.2
+PORTREVISION=	1
 CATEGORIES=	www python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -24,6 +25,8 @@ GH_ACCOUNT=	crossbario
 GH_PROJECT=	autobahn-python
 USE_PYTHON=	autoplist cryptography pep517 pytest
 
+MAKE_ENV=	AUTOBAHN_ARCH_TARGET=safe
+
 OPTIONS_DEFINE=		COMPRESS ENCRYPTION SCRAM SERIALIZATION
 OPTIONS_DEFAULT=	ENCRYPTION SCRAM SERIALIZATION TWISTED
 OPTIONS_MULTI=		BACKENDS
@@ -65,9 +68,8 @@ post-patch:
 		${WRKSRC}/pyproject.toml
 
 post-stage:
-.if ${ARCH} !=	armv7
-	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_nvx_utf8validator.abi3.so
-.endif
+	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name '_nvx_*.abi3.so' \
+		-exec ${STRIP_CMD} {} +
 
 do-test-TWISTED-on:
 	@cd ${WRKSRC} && USE_TWISTED=1 ${PYTHON_CMD} -m twisted.trial ${WRKSRC}/autobahn