aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2023-01-27 23:53:39 +0000
committerBrooks Davis <brooks@FreeBSD.org>2023-01-27 23:53:40 +0000
commitaeb2ce7f4b401deff1b71280d147f3d2c2b5fafd (patch)
tree548852b4ad2daabca880a37d46a4379306341c90
parent492cfe30f34b35bfd5823149baff2fe3b4710771 (diff)
downloadports-aeb2ce7f4b401deff1b71280d147f3d2c2b5fafd.tar.gz
ports-aeb2ce7f4b401deff1b71280d147f3d2c2b5fafd.zip
devel/llvm-devel: fix packaging with debug python
The actual suffix if python extensions (at least as built by the LLVM infrastructure) is ${PYTHON_EXT_SUFFIX}${PYTHON_ABIVER} not merely the former. PR: 268437 Sponsored by: DARPA
-rw-r--r--devel/llvm-devel/Makefile3
-rw-r--r--devel/llvm-devel/pkg-plist2
2 files changed, 3 insertions, 2 deletions
diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile
index 5e5806bcf893..137e0dad1928 100644
--- a/devel/llvm-devel/Makefile
+++ b/devel/llvm-devel/Makefile
@@ -151,6 +151,7 @@ LLD_DESC= Install lld, the LLVM linker
LLDB_BUILD_DEPENDS= swig:devel/swig
LLDB_DESC= Install lldb, the LLVM debugger
LLDB_IMPLIES= CLANG
+LLDB_PLIST_SUB= PYTHON_ABIVER=${PYTHON_ABIVER}
LLDB_USES= lua:53 libedit
LLDB_USE= GNOME=libxml2
LLDB_VARS= _USES_PYTHON=python:3.6+
@@ -476,7 +477,7 @@ build-plist:
${GREP} -v '[/-]lit$$' | ${GREP} -v 'FileCheck$$' | \
${GREP} -v man/man1 | ${SED} -e 's|${STAGEDIR}${PREFIX}/||' \
-e 's|${PYTHON_SITELIBDIR:C|${PREFIX}/||}|%%PYTHON_SITELIBDIR%%|' \
- -e 's|${PYTHON_EXT_SUFFIX:C/\./\\./g}|%%PYTHON_EXT_SUFFIX%%|' \
+ -e 's|${PYTHON_EXT_SUFFIX:C/\./\\./g}${PYTHON_ABIVER}|%%PYTHON_EXT_SUFFIX%%%%PYTHON_ABIVER%%|' \
-e 's|${PORTVERSION}|%%PORTVERSION%%|' \
-e 's|release.cmake|%%CMAKE_BUILD_TYPE%%.cmake|' \
-e 's|${LLVM_RELEASE:C/\./\\./g}|%%LLVM_RELEASE%%|' \
diff --git a/devel/llvm-devel/pkg-plist b/devel/llvm-devel/pkg-plist
index 547cef1b4369..8b355594199b 100644
--- a/devel/llvm-devel/pkg-plist
+++ b/devel/llvm-devel/pkg-plist
@@ -137,7 +137,7 @@ bin/sancov-devel
%%LIT%%bin/llvm-lit-devel
%%LIT%%llvm-devel/bin/llvm-lit
%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/__init__.py
-%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/_lldb%%PYTHON_EXT_SUFFIX%%.so
+%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/_lldb%%PYTHON_EXT_SUFFIX%%%%PYTHON_ABIVER%%.so
%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/embedded_interpreter.py
%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/Logger.py
%%LLDB%%llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/__init__.py