diff --git a/build/python311/local.mog b/build/python311/local.mog index 948ed2a1df..5721e0305a 100644 --- a/build/python311/local.mog +++ b/build/python311/local.mog @@ -8,7 +8,7 @@ # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. -# Copyright 2021 OmniOS Community Edition (OmniOSce) Association. +# Copyright 2024 OmniOS Community Edition (OmniOSce) Association. license LICENSE license=PSFv2 @@ -30,15 +30,16 @@ license LICENSE license=PSFv2 # Prevent pkgdepend from reporting an error set pkg.depend.bypass-generate .*> -# Move /usr/lib/amd64/libpython3.so and replace with a symlink - emit \ + link path=%<1> target=libpython$(PYTHONVER)-stub.so > + edit path 3 $(PYTHONVER)-stub> -link path=usr/lib/amd64/libpython3.so target=libpython$(PYTHONVER)-stub.so # Set mediators on links in shared directories set mediator python3> - set mediator python3> + set mediator python3> set mediator python3> set mediator-version $(PYTHONVER)> diff --git a/build/python312/build.sh b/build/python312/build.sh index b1170bde57..babc4613bb 100755 --- a/build/python312/build.sh +++ b/build/python312/build.sh @@ -60,7 +60,6 @@ CFLAGS+=" -msave-args" export CCSHARED="-fPIC" CPPFLAGS+=" -I/usr/include/ncurses" -CPPFLAGS+=" `pkg-config --cflags libffi`" export DFLAGS=-64 MAKE_ARGS=" DFLAGS=-64 @@ -81,7 +80,7 @@ CONFIGURE_OPTS[amd64]+=" " CONFIGURE_OPTS[aarch64]+=" - --build=${TRIPLETS[amd64]} + --build=${TRIPLETS[amd64]%.*} --with-build-python=$PYTHON ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no diff --git a/build/python312/common.sh b/build/python312/common.sh index ddc947aafa..e82eb5952c 100644 --- a/build/python312/common.sh +++ b/build/python312/common.sh @@ -10,7 +10,7 @@ # http://www.illumos.org/license/CDDL. # }}} -# Copyright 2021 OmniOS Community Edition (OmniOSce) Association. +# Copyright 2024 OmniOS Community Edition (OmniOSce) Association. set_python_version 3.12 diff --git a/build/python312/local.mog b/build/python312/local.mog index aa787844bd..f74f9489d9 100644 --- a/build/python312/local.mog +++ b/build/python312/local.mog @@ -8,7 +8,7 @@ # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. -# Copyright 2021 OmniOS Community Edition (OmniOSce) Association. +# Copyright 2024 OmniOS Community Edition (OmniOSce) Association. license LICENSE license=PSFv2 @@ -30,15 +30,16 @@ license LICENSE license=PSFv2 # Prevent pkgdepend from reporting an error set pkg.depend.bypass-generate .*> -# Move /usr/lib/amd64/libpython3.so and replace with a symlink - emit \ + link path=%<1> target=libpython$(PYTHONVER)-stub.so > + edit path 3 $(PYTHONVER)-stub> -link path=usr/lib/amd64/libpython3.so target=libpython$(PYTHONVER)-stub.so # Set mediators on links in shared directories - set mediator python3> - set mediator python3> + set mediator python3> set mediator python3> set mediator-version $(PYTHONVER)> diff --git a/build/python312/patches/cross-aarch64.patch b/build/python312/patches/illumos.patch similarity index 75% rename from build/python312/patches/cross-aarch64.patch rename to build/python312/patches/illumos.patch index e83d8c2084..c6f4e4471d 100644 --- a/build/python312/patches/cross-aarch64.patch +++ b/build/python312/patches/illumos.patch @@ -14,7 +14,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/configure.ac a/configure.ac ac_sys_system=WASI ;; + *-*-solaris*) -+ ac_sys_system=SunOS ++ ac_sys_system=SunOS + ac_sys_release=5.11 + ;; *) @@ -42,3 +42,18 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/configure.ac a/configure.ac *) # for now, limit cross builds to known configurations MACHDEP="unknown" +@@ -1102,6 +1115,14 @@ cat > conftest.c <