ladybird/Ports/python3/patches/fix-autoconf.patch
Linus Groh a9fa3fb095 Ports: Update Python to 3.9.4
Released on 2021-04-04 as a hotfix release superseding 3.9.3.
https://www.python.org/downloads/release/python-394/
2021-04-06 22:25:33 +02:00

56 lines
1.3 KiB
Diff

--- Python-3.9.4/config.sub 2021-02-21 20:22:43.901024503 +0100
+++ Python-3.9.4/config.sub 2021-02-21 20:24:35.079400552 +0100
@@ -1485,6 +1485,8 @@
-oss*)
os=-sysv3
;;
+ -serenity*)
+ ;;
-svr4*)
os=-sysv4
;;
--- Python-3.9.4/configure.ac 2021-04-06 20:59:45.319060429 +0200
+++ Python-3.9.4/configure.ac 2021-04-06 21:02:33.875267539 +0200
@@ -389,6 +389,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
;;
@@ -435,6 +438,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.4/configure 2021-02-21 20:22:43.898024520 +0100
+++ Python-3.9.4/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*)