git: ee4ed05b2a99 - main - lang/python314: Fix cross build with native-xtools

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Wed, 07 Jan 2026 17:58:33 UTC
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ee4ed05b2a99e177ff9a60659d87e2a74eb1e3b6

commit ee4ed05b2a99e177ff9a60659d87e2a74eb1e3b6
Author:     Christian Ullrich <chris@chrullrich.net>
AuthorDate: 2026-01-06 18:44:37 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2026-01-07 01:56:10 +0000

    lang/python314: Fix cross build with native-xtools
    
    - Python 3.14 does not include the OS version in the name of the
      sysconfigdata file anymore.
    - There are at least two commands on a single line that should have
      their /nxb-bin/ prefix removed.
    
    PR:             292222
---
 lang/python314/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lang/python314/Makefile b/lang/python314/Makefile
index 07bf64f74942..3a7f9cd87744 100644
--- a/lang/python314/Makefile
+++ b/lang/python314/Makefile
@@ -150,15 +150,15 @@ post-install:
 # edit this so that the run time configuration for python matches what the
 # FreeBSD base system provides.  sbruno 02Aug2017
 .if ${CC} == /nxb-bin/usr/bin/cc
-	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
-		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_${ABIFLAGS}_freebsd${OSREL:R}_.py
+	@${REINPLACE_CMD} -e 's=/nxb-bin==g' \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_${ABIFLAGS}_freebsd_.py
 	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
 		./python -E -m compileall -d ${PREFIX}/lib/python${PYTHON_VER} \
-		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_${ABIFLAGS}_freebsd${OSREL:R}_.py
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_${ABIFLAGS}_freebsd_.py
 	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
 		./python -E -O -m compileall -d ${PREFIX}/lib/python${PYTHON_VER} \
-		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_${ABIFLAGS}_freebsd${OSREL:R}_.py
-	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_${ABIFLAGS}_freebsd_.py
+	@${REINPLACE_CMD} -e 's=/nxb-bin==g' \
 		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/config-${PYTHON_VER}${ABIFLAGS}/Makefile
 .endif
 	for i in ${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/lib-dynload/*.so; do \