git: 7da484044dee - main - misc/py-pytorch: Add USE_LDCONFIG
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Aug 2025 13:17:41 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7da484044dee4af6966fa0e9397e32bdcb256b82
commit 7da484044dee4af6966fa0e9397e32bdcb256b82
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-08-20 13:15:31 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-08-20 13:17:38 +0000
misc/py-pytorch: Add USE_LDCONFIG
... because it installs shared libraries into the Python module path
that users later link with.
---
misc/py-pytorch/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile
index a0661e8a4413..4713de8cc9e9 100644
--- a/misc/py-pytorch/Makefile
+++ b/misc/py-pytorch/Makefile
@@ -1,6 +1,7 @@
PORTNAME= pytorch
DISTVERSIONPREFIX= v
DISTVERSION= 2.8.0
+PORTREVISION= 1
CATEGORIES= misc # machine-learning
MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -49,6 +50,7 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}astunparse>0:devel/py-astunparse@${PY_FLAVO
USES= compiler:c++17-lang localbase:ldflags python
USE_PYTHON= distutils autoplist
+USE_LDCONFIG= ${PYTHON_SITELIBDIR}/torch/lib
USE_GITHUB= nodefault
GH_TUPLE= pytorch:cpuinfo:1e83a2f:cpuinfo/cpuinfo-with-freebsd-support # https://github.com/pytorch/cpuinfo/pull/230/commits