ladybird/Ports/python3/patches/fix-autoconf.patch
Linus Groh 4166765292 Ports: Update Python to 3.9.2
Released on 2021-02-19, no patch changes required.
https://www.python.org/downloads/release/python-392/
2021-02-21 21:44:52 +01:00

56 lines
1.3 KiB
Diff

--- Python-3.9.2/config.sub 2021-02-21 20:22:43.901024503 +0100
+++ Python-3.9.2/config.sub 2021-02-21 20:24:35.079400552 +0100
@@ -1485,6 +1485,8 @@
-oss*)
os=-sysv3
;;
+ -serenity*)
+ ;;
-svr4*)
os=-sysv4
;;
--- Python-3.9.2/configure.ac 2021-02-21 20:22:43.900024509 +0100
+++ Python-3.9.2/configure.ac 2021-02-21 20:24:35.084400524 +0100
@@ -382,6 +382,9 @@
# a lot of different things including 'define_xopen_source'
# in the case statement below.
case "$host" in
+ *-*-serenity*)
+ ac_sys_system=Serenity
+ ;;
*-*-linux-android*)
ac_sys_system=Linux-android
;;
@@ -428,6 +431,9 @@
AC_SUBST(_PYTHON_HOST_PLATFORM)
if test "$cross_compiling" = yes; then
case "$host" in
+ *-*-serenity*)
+ _host_cpu=$host_cpu
+ ;;
*-*-linux*)
case "$host_cpu" in
arm*)
--- Python-3.9.2/configure 2021-02-21 20:22:43.898024520 +0100
+++ Python-3.9.2/configure 2021-02-21 20:24:35.096400457 +0100
@@ -3292,6 +3292,9 @@
# a lot of different things including 'define_xopen_source'
# in the case statement below.
case "$host" in
+ *-*-serenity*)
+ ac_sys_system=Serenity
+ ;;
*-*-linux-android*)
ac_sys_system=Linux-android
;;
@@ -3339,6 +3342,9 @@
if test "$cross_compiling" = yes; then
case "$host" in
+ *-*-serenity*)
+ _host_cpu=$host_cpu
+ ;;
*-*-linux*)
case "$host_cpu" in
arm*)