Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2026 01:02:11 +0000
From:      Charlie Li <vishwin@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 395a0a03628c - main - lang/python314: fix/restore nxb-bin bytecode compile copypasta
Message-ID:  <6a30a093.24e83.24213c96@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vishwin:

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

commit 395a0a03628c5f8753ae8db5add85bb1c7cb49fd
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-06-16 00:41:49 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-06-16 01:01:56 +0000

    lang/python314: fix/restore nxb-bin bytecode compile copypasta
    
    _sysconfigdata no longer includes the FreeBSD major version, and
    have ${REINPLACE_CMD} operate over all lines in the file.
    
    Reported by: Christian Ullrich
    PR: 296040
---
 lang/python314/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lang/python314/Makefile b/lang/python314/Makefile
index 264b43128458..cd0935ea3f51 100644
--- a/lang/python314/Makefile
+++ b/lang/python314/Makefile
@@ -163,14 +163,14 @@ 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_BASEVER}${THREADFLAG}/_sysconfigdata_${THREADFLAG}${ABIFLAGS}_freebsd${OSREL:R}_.py
+	@${REINPLACE_CMD} -e 's=/nxb-bin==g' \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG}/_sysconfigdata_${THREADFLAG}${ABIFLAGS}_freebsd_.py
 	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
 		./python -E -m compileall -d ${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG} \
-		${STAGEDIR}${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG}/_sysconfigdata_${THREADFLAG}${ABIFLAGS}_freebsd${OSREL:R}_.py
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG}/_sysconfigdata_${THREADFLAG}${ABIFLAGS}_freebsd_.py
 	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
 		./python -E -O -m compileall -d ${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG} \
-		${STAGEDIR}${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG}/_sysconfigdata_${THREADFLAG}${ABIFLAGS}_freebsd${OSREL:R}_.py
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG}/_sysconfigdata_${THREADFLAG}${ABIFLAGS}_freebsd_.py
 	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
 		${STAGEDIR}${PREFIX}/lib/python${PYTHON_BASEVER}${THREADFLAG}/config-${PYTHON_BASEVER}${ABIFLAGS}/Makefile
 .endif


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a30a093.24e83.24213c96>