pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-autobahn
Module Name: pkgsrc
Committed By: gdt
Date: Sat Jul 18 23:02:28 UTC 2026
Modified Files:
pkgsrc/www/py-autobahn: Makefile
Log Message:
www/py-autobahn: Remediate upstream choice to be non-portable
Upstream decided that x86-64 now means x86-64-v2, but that motion has
not been proposed, much less passed, in NetBSD and pkgsrc. Work
around this with a buildlink transform, similar to how upstream's
attempted use of -march-native is avoided.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 pkgsrc/www/py-autobahn/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-autobahn/Makefile
diff -u pkgsrc/www/py-autobahn/Makefile:1.49 pkgsrc/www/py-autobahn/Makefile:1.50
--- pkgsrc/www/py-autobahn/Makefile:1.49 Fri Jul 3 07:23:16 2026
+++ pkgsrc/www/py-autobahn/Makefile Sat Jul 18 23:02:28 2026
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.49 2026/07/03 07:23:16 adam Exp $
+# $NetBSD: Makefile,v 1.50 2026/07/18 23:02:28 gdt Exp $
DISTNAME= autobahn-26.6.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/autobahn/}
@@ -12,18 +13,30 @@ LICENSE= mit
TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=0:../../devel/py-hatchling
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
+
DEPENDS+= ${PYPKGPREFIX}-cbor2>=5.2.0:../../devel/py-cbor2
DEPENDS+= ${PYPKGPREFIX}-cffi>=2.0.0:../../devel/py-cffi
DEPENDS+= ${PYPKGPREFIX}-hyperlink>=21.0.0:../../www/py-hyperlink
DEPENDS+= ${PYPKGPREFIX}-msgpack>=1.0.2:../../devel/py-msgpack
DEPENDS+= ${PYPKGPREFIX}-txaio>=25.12.2:../../devel/py-txaio
DEPENDS+= ${PYPKGPREFIX}-ujson>=4.0.2:../../textproc/py-ujson
+
TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=1.3.0:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-nacl>=0:../../security/py-nacl
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.8.6:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-twisted>=0:../../net/py-twisted
BUILDLINK_TRANSFORM+= rm:-march=native
+# Upstream attempts to build for x86-64-v2 by default. This has two
+# problems:
+# - Many compilers do not support -march=x86-64-v2.
+# - pkgsrc must build for the OS's default CPU target, and the default
+# expectation (true for NetBSD) is regular x86-64.
+# Resolve this via transforming away -v2.
+BUILDLINK_TRANSFORM+= opt:-march=x86-64-v2:-march=x86-64
+
+# \todo Extend the fix to use armv8 instead of armv8-a, as it appears
+# the build system will produce code that workson RPI4 but not RPI3.
MAKE_ENV+= PYUBJSON_NO_EXTENSION=1
Home |
Main Index |
Thread Index |
Old Index