git: c4faf46ff474 - main - lang/python3{12,13}: limit parallel .pyc compilation to MAKE_JOBS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Feb 2026 22:02:45 UTC
The branch main has been updated by siva:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c4faf46ff4741f016c5196e1de77822733ff4a1f
commit c4faf46ff4741f016c5196e1de77822733ff4a1f
Author: Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-02-01 21:01:39 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-02-03 22:02:17 +0000
lang/python3{12,13}: limit parallel .pyc compilation to MAKE_JOBS
This option is available since python312[0]. This fixes
python312 and python313 builds with qemu-user-static
emulating riscv64.
[0] https://github.com/python/cpython/commit/9a7e9f9921804f3f90151ca42703e612697dd430
Approved by: vishwin (#python), lwhsu (mentor)
Signed-off-by: Siva Mahadevan <siva@FreeBSD.org>
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54906
---
lang/python312/Makefile | 3 ++-
lang/python313/Makefile | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lang/python312/Makefile b/lang/python312/Makefile
index 6e48645cc79e..2a9f20e34520 100644
--- a/lang/python312/Makefile
+++ b/lang/python312/Makefile
@@ -40,7 +40,8 @@ INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files
TEST_TARGET= buildbottest
TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER}
-MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library
+MAKE_ARGS+= COMPILEALL_OPTS=-j${MAKE_JOBS_NUMBER} \
+ INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library
SUB_FILES= pkg-message
SUB_LIST= PYTHON_SUFFIX=${PYTHON_SUFFIX}
diff --git a/lang/python313/Makefile b/lang/python313/Makefile
index 9583def19644..3e3955b12324 100644
--- a/lang/python313/Makefile
+++ b/lang/python313/Makefile
@@ -35,7 +35,8 @@ INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files
TEST_TARGET= test
TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER}
-MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library
+MAKE_ARGS+= COMPILEALL_OPTS=-j${MAKE_JOBS_NUMBER} \
+ INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library
SUB_FILES= pkg-message
SUB_LIST= PYTHON_SUFFIX=${PYTHON_BASESUFFIX}${THREADFLAG}