summaryrefslogtreecommitdiff
path: root/Ports/python3/patches/ReadMe.md
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/python3/patches/ReadMe.md')
-rw-r--r--Ports/python3/patches/ReadMe.md40
1 files changed, 29 insertions, 11 deletions
diff --git a/Ports/python3/patches/ReadMe.md b/Ports/python3/patches/ReadMe.md
index 77516ed87b..3ad5774a62 100644
--- a/Ports/python3/patches/ReadMe.md
+++ b/Ports/python3/patches/ReadMe.md
@@ -1,20 +1,38 @@
-# Patches for Python 3.9 on SerenityOS
+# Patches for python3 on SerenityOS
-## `include-sys-uio.patch`
+## `0001-Enforce-UTF-8-as-the-locale-encoding.patch`
-Ensures `struct iovec` is defined, required by the socket module.
+Enforce UTF-8 as the locale encoding
-## `define-py-force-utf8-locale.patch`
+By defining `_Py_FORCE_UTF8_LOCALE` as some other platforms already do,
+we can enforce UTF-8 as the encoding.
-Enforce UTF-8 as encoding by defining `_Py_FORCE_UTF8_LOCALE`.
+## `0002-Tweak-configure-and-configure.ac.patch`
-## `fix-autoconf.patch`
+Tweak configure and configure.ac
-As usual, make the `configure` script recognize Serenity. Also set `MACHDEP` (which is used for `sys.platform`) to a version-less `serenityos`, even when not cross-compiling.
+As usual, make the `configure` script recognize Serenity. Also set
+`MACHDEP` (which is used for `sys.platform`) to a version-less
+`serenityos`, even when not cross-compiling.
-## `tweak-setup-py.patch`
+## `0003-Include-sys-uio.h-in-socketmodule.c.patch`
-Make some tweaks to Python's `setup.py` files:
+Include `sys/uio.h` in `socketmodule.c`
+
+This is to ensure that `struct iovec` is defined, which is required by
+the `socket` module.
+
+## `0004-Tweak-setup.py.patch`
+
+Tweak `setup.py`
+
+Make some tweaks to Python's `setup.py`:
+
+- Add `/usr/local/lib` and `/usr/local/include` to the system lib and
+ include dirs respectively, relative to the sysroot when
+ crosscompiling. These are by default only included when not
+ crosscompiling for some reason.
+- Add `/usr/local/include/ncurses` to the curses include paths so it can
+ build the `_curses` module. This is by default included for a bunch of
+ extensions, but not `_curses`.
-- Add `/usr/local/lib` / `/usr/local/include` to the system lib / include dirs, relative to the sysroot when crosscompiling. These are by default only included when not crosscompiling for some reason.
-- Add `/usr/local/include/ncurses` to the curses include paths so it can build the `_curses` module. This is by default included for a bunch of extensions, but not `_curses`.