From b789debe076985900fdfbda15b5b5fed0b8afd6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Offenh=C3=A4user?= Date: Sat, 11 Feb 2023 02:42:14 +0100 Subject: [PATCH] Ports: Build python3 port with shared libraries --- Ports/python3/package.sh | 1 + .../0007-Set-name-of-shared-libpython.patch | 22 +++++++++++++++++++ Ports/python3/patches/ReadMe.md | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 Ports/python3/patches/0007-Set-name-of-shared-libpython.patch diff --git a/Ports/python3/package.sh b/Ports/python3/package.sh index b5379ff39a..965b49ac39 100755 --- a/Ports/python3/package.sh +++ b/Ports/python3/package.sh @@ -30,6 +30,7 @@ depends=( ) configopts=( '--disable-ipv6' + '--enable-shared' '--without-ensurepip' '--with-build-python=python3' 'ac_cv_file__dev_ptmx=no' diff --git a/Ports/python3/patches/0007-Set-name-of-shared-libpython.patch b/Ports/python3/patches/0007-Set-name-of-shared-libpython.patch new file mode 100644 index 0000000000..feba849404 --- /dev/null +++ b/Ports/python3/patches/0007-Set-name-of-shared-libpython.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Julian=20Offenh=C3=A4user?= +Date: Fri, 10 Feb 2023 22:48:34 +0100 +Subject: [PATCH] Set name of shared libpython + +--- + configure | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure b/configure +index 143ff27f07a8605510bca258bee3e621c95d34b8..1d30d0acfacfeeb31b4953e6512c51741cf9554c 100755 +--- a/configure ++++ b/configure +@@ -6737,7 +6737,7 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h + PY3LIBRARY=libpython3.so + fi + ;; +- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) ++ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*|SerenityOS*) + LDLIBRARY='libpython$(LDVERSION).so' + BLDLIBRARY='-L. -lpython$(LDVERSION)' + RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} diff --git a/Ports/python3/patches/ReadMe.md b/Ports/python3/patches/ReadMe.md index da9f097aa7..e42aad5759 100644 --- a/Ports/python3/patches/ReadMe.md +++ b/Ports/python3/patches/ReadMe.md @@ -57,3 +57,6 @@ given `TCP_NODELAY` as an argument. This TCP socket option is used in many applications (like pip and requests) for optimization purposes. For now, it can be safely ignored until it's supported in the kernel. +## `0007-Set-name-of-shared-libpython.patch` + +Set name of shared libpython