summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJulian Offenhäuser <offenhaeuser@protonmail.com>2023-02-11 02:42:14 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-11 10:41:59 +0100
commitb789debe076985900fdfbda15b5b5fed0b8afd6b (patch)
tree5742c29e76da9abc01cf0300eb50053d29f85179 /Ports
parented198ee6aef4fcc2283ff8d7bdf86f2b07fbeb76 (diff)
downloadserenity-b789debe076985900fdfbda15b5b5fed0b8afd6b.zip
Ports: Build python3 port with shared libraries
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/python3/package.sh1
-rw-r--r--Ports/python3/patches/0007-Set-name-of-shared-libpython.patch22
-rw-r--r--Ports/python3/patches/ReadMe.md3
3 files changed, 26 insertions, 0 deletions
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?= <offenhaeuser@protonmail.com>
+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