git: 716e3bf042ac - main - audio/py-torchaudio: fix build on arm64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Oct 2026 08:37:14 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=716e3bf042ac9bde13fc96289b30bea75a9c258f
commit 716e3bf042ac9bde13fc96289b30bea75a9c258f
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-06 21:19:23 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-07 08:37:12 +0000
audio/py-torchaudio: fix build on arm64
Reported by: fallout
---
audio/py-torchaudio/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/audio/py-torchaudio/Makefile b/audio/py-torchaudio/Makefile
index 94e0cf8f891a..0fe2784b10d1 100644
--- a/audio/py-torchaudio/Makefile
+++ b/audio/py-torchaudio/Makefile
@@ -39,6 +39,12 @@ GH_PROJECT= audio
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "aarch64"
+MAKE_ENV= LD_STATIC_TLS_EXTRA=4096 # see pkg-message in misc/py-pytorch
+.endif
+
# tests as of 2.11.0: 592 passed, 4 failed, 473 skipped (segfault in rnnt_pipeline_test upstream issue)
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>