summaryrefslogtreecommitdiff
path: root/lang/python36
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-09-27 19:39:05 +0200
committerDimitry Andric <dim@FreeBSD.org>2021-09-27 19:56:59 +0200
commit6bef09666460fb9f9052550854fa69f5d5e4a0e8 (patch)
treed7323851d190ce5e250f827559fcc9a0e1606da8 /lang/python36
parentarchivers/ha: Fix CVE-2015-1198 (diff)
lang/python3([6-9]|10): disable detection of multiarch
It breaks with clang >= 13, which adds a major.minor version number in -print-multiarch output, and the dot confuses Python: ModuleNotFoundError: No module named '_sysconfigdata__freebsd14_x86_64-unknown-freebsd14' Since we do not support multiarch, and the configure script has no way to disable the multiarch check, stub it out during post-patch. PR: 258377 Approved by: maintainer timeout (2 weeks) MFH: 2021Q3
Diffstat (limited to 'lang/python36')
-rw-r--r--lang/python36/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/python36/Makefile b/lang/python36/Makefile
index 93aa71936d4d..5b67fbd5044a 100644
--- a/lang/python36/Makefile
+++ b/lang/python36/Makefile
@@ -124,6 +124,12 @@ DISABLED_EXTENSIONS+= nis
PLIST_SUB+= NO_NIS=""
.endif
+post-patch:
+# disable detection of multiarch as it breaks with clang >= 13, which adds a
+# major.minor version number in -print-multiarch output, confusing Python
+ @${REINPLACE_CMD} -e 's|^MULTIARCH=.*|MULTIARCH=|' ${WRKSRC}/configure \
+ ${WRKSRC}/configure.ac
+
post-install:
.if ! ${PORT_OPTIONS:MDEBUG}
${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975