summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro W. Sior <aho@sior.be>2023-02-02 22:41:38 +0100
committerAlejandro W. Sior <aho@sior.be>2023-02-02 22:41:38 +0100
commit80df8a7bc61c9077aee14a4a0a4a50d7396d0984 (patch)
tree344b925f86b746d9dde711aedd10d27427beba30
parenta7fa192a1bd8b8bd32bc416eb42c04c53a791296 (diff)
python3: new package at version 3.11.1
-rw-r--r--python3/build24
-rw-r--r--python3/checksums1
-rw-r--r--python3/files/01-socketmodule-no-hstrerror.patch10
-rw-r--r--python3/sources2
-rw-r--r--python3/version1
5 files changed, 38 insertions, 0 deletions
diff --git a/python3/build b/python3/build
new file mode 100644
index 0000000..fa8baf9
--- /dev/null
+++ b/python3/build
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+# FIXME: make curses and sqlite work
+cat >> Modules/Setup <<EOF
+*disabled*
+_curses _curses_panel _sqlite3
+EOF
+
+for patch in *.patch; do
+ patch -p1 < $patch
+done
+
+export CFLAGS="$CFLAGS -fno-semantic-interposition"
+export LDFLAGS="$LDFLAGS -fno-semantic-interposition"
+
+./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --with-ensurepip=yes \
+ --with-openssl=/usr/openssl/1.1 \
+ --without-doc-strings
+
+gmake EXTRA_CFLAGS="$CFLAGS -DTHREAD_STACK_SIZE=0x100000"
+gmake DESTDIR=$1 install
diff --git a/python3/checksums b/python3/checksums
new file mode 100644
index 0000000..5d0861b
--- /dev/null
+++ b/python3/checksums
@@ -0,0 +1 @@
+4efe92adf28875c77d3b9b2e8d3bc44a Python-3.11.1.tar.xz
diff --git a/python3/files/01-socketmodule-no-hstrerror.patch b/python3/files/01-socketmodule-no-hstrerror.patch
new file mode 100644
index 0000000..ccb7e7f
--- /dev/null
+++ b/python3/files/01-socketmodule-no-hstrerror.patch
@@ -0,0 +1,10 @@
+--- a/Modules/socketmodule.c Tue Dec 6 20:05:27 2022
++++ b/Modules/socketmodule.c Thu Feb 2 22:07:31 2023
+@@ -232,6 +232,7 @@
+ /* Solaris fails to define this variable at all. */
+ #if (defined(__sun) && defined(__SVR4)) && !defined(INET_ADDRSTRLEN)
+ #define INET_ADDRSTRLEN 16
++#undef HAVE_HSTRERROR
+ #endif
+
+ /* Generic includes */
diff --git a/python3/sources b/python3/sources
new file mode 100644
index 0000000..89a40c9
--- /dev/null
+++ b/python3/sources
@@ -0,0 +1,2 @@
+https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz $
+files/ $
diff --git a/python3/version b/python3/version
new file mode 100644
index 0000000..371cfe3
--- /dev/null
+++ b/python3/version
@@ -0,0 +1 @@
+3.11.1