python3.13: update to version 3.13.6.

This commit is contained in:
Oscar Lesta
2025-08-10 03:45:16 -03:00
parent 270133f64f
commit 078c51934f
2 changed files with 49 additions and 49 deletions

View File

@@ -1,4 +1,4 @@
From c56ab39bf40f8fda707621f6e79e672ddf8905b1 Mon Sep 17 00:00:00 2001
From 821350d259ee988b18fff5723fbf2812b20d5291 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sun, 8 Oct 2023 01:02:25 -0300
Subject: initial Haiku patch
@@ -22,7 +22,7 @@ index 72a157e..67141ae 100644
// See PyUnicode_DecodeFSDefaultAndSize(), PyUnicode_EncodeFSDefault(),
// Py_DecodeLocale() and Py_EncodeLocale().
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 70d5495..737c1e0 100644
index a7dc970..757af76 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -149,7 +149,7 @@ BINDIR= @bindir@
@@ -148,7 +148,7 @@ index 8480590..ac7b78c 100644
#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
diff --git a/configure.ac b/configure.ac
index 2a03756..7551412 100644
index 597a44b..92ad128 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1573,6 +1573,16 @@ if test $enable_shared = "yes"; then
@@ -185,7 +185,7 @@ index 2a03756..7551412 100644
# -u libsys_s pulls in all symbols in libsys
Darwin/*|iOS/*)
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
@@ -5837,6 +5848,7 @@ AC_CHECK_FUNC([__fpu_control],
@@ -5942,6 +5953,7 @@ AC_CHECK_FUNC([__fpu_control],
AC_SUBST([LIBM])
case $ac_sys_system in
Darwin) ;;
@@ -194,10 +194,10 @@ index 2a03756..7551412 100644
esac
AC_MSG_CHECKING([for --with-libm=STRING])
--
2.48.1
2.50.1
From 94a148592144fcc635816fc49349e491da7130da Mon Sep 17 00:00:00 2001
From 993374d958deaf57c3db8c2b341205efad2aa593 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sun, 16 Apr 2017 10:05:42 +0200
Subject: fix for negative errnos
@@ -232,10 +232,10 @@ index daec4ad..1647199 100644
*--cur = Py_hexdigits[saved_errno % 16];
saved_errno /= 16;
--
2.48.1
2.50.1
From 971b69ba2be950aaa2b247732838985427676c9b Mon Sep 17 00:00:00 2001
From d976ca4a12034baf148daf8ae778879643c61fcd Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sun, 8 Oct 2023 20:06:31 -0300
Subject: Implement CTypes's find_library for Haiku
@@ -329,10 +329,10 @@ index 117bf06..6301aa2 100644
print(cdll.LoadLibrary("libm.so"))
print(cdll.LoadLibrary("libcrypt.so"))
--
2.48.1
2.50.1
From 3a4a3a492eaa0460aaf710547a4ecd7ba9a8b9ed Mon Sep 17 00:00:00 2001
From 7b695fd7729059b2aeac5bdb0c828ed811a055e3 Mon Sep 17 00:00:00 2001
From: Philipp Wolfer <phil@parolu.io>
Date: Mon, 23 Sep 2019 09:14:58 +0200
Subject: webbrowser: Support for default browsers on Haiku
@@ -356,17 +356,17 @@ index 2f9555a..90bea57 100755
# First try to use the default Windows browser
register("windows-default", WindowsDefault)
--
2.48.1
2.50.1
From 809e9ca0f45f8473a2feb4a8309f6cc1f359599f Mon Sep 17 00:00:00 2001
From fdb135c261d0935d53fae729e1e5ad4734c9b03f Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 4 Oct 2019 22:02:35 +0200
Subject: since 3.8, don't reinit locks on fork.
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 357d127..009fc95 100644
index b95c3aa..1652f93 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -253,7 +253,7 @@ def _afterFork():
@@ -379,10 +379,10 @@ index 357d127..009fc95 100644
pass # no-op when os.register_at_fork does not exist.
else:
--
2.48.1
2.50.1
From 7dbc00dadbdbc1fd76f0adbd9a15a3f7a3d90bf2 Mon Sep 17 00:00:00 2001
From f44b2e6a89e90a2def5496606b57817aea0c0729 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 15 May 2020 15:20:57 +0200
Subject: handle errors returned by internal_connect()
@@ -412,17 +412,17 @@ index 9a7c977..5a9bcfb 100644
return PyLong_FromLong((long) res);
--
2.48.1
2.50.1
From b13974f4992a94b1b0bd8738a9cb80b5c0dbd858 Mon Sep 17 00:00:00 2001
From d0aa20fa89c7ba2b149b62a567e77c61e71321fe Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 19 Oct 2020 18:03:09 +0200
Subject: ttyname_r can use MAXPATHLEN
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index dc7d1e8..d885c27 100644
index f316598..88bd4f7 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3318,11 +3318,14 @@ static PyObject *
@@ -442,10 +442,10 @@ index dc7d1e8..d885c27 100644
if (buffer == NULL) {
return PyErr_NoMemory();
--
2.48.1
2.50.1
From 904c928e0c0894347b76c77bbc18c1c3efc1af9c Mon Sep 17 00:00:00 2001
From 3102019455972cac2bf00381fe64c37724660ac9 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Mon, 24 Oct 2022 20:04:10 -0300
Subject: Lib/test: require the "largefile" usage flag for I/O heavy tests.
@@ -495,10 +495,10 @@ index a1cf538..c04d9e3 100644
'test requires %s bytes and a long time to run' % str(0x180000000))
f = open(TESTFN, 'w+b')
--
2.48.1
2.50.1
From 579c6f1ffcbe513f5ea82c243c154d947276f054 Mon Sep 17 00:00:00 2001
From f4533fa9effc3dbc762bbaf2b4a63794d531f535 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sat, 27 Jul 2024 04:51:52 -0300
Subject: _getuserbase(), getsitepackages(), and INSTALL_SCHEMES for Haiku.
@@ -711,10 +711,10 @@ index aca02c0..e7ff98d 100644
@skip_unless_symlink
--
2.48.1
2.50.1
From 07379687c88ff59703555a0f172e0beb51164154 Mon Sep 17 00:00:00 2001
From 0f54339c97c3611c5da916ac1560db64459fa3ad Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Mon, 12 Feb 2024 08:39:38 -0300
Subject: Fix location of REPL's history file.
@@ -750,10 +750,10 @@ index a65e8da..81eff66 100644
def enablerlcompleter():
--
2.48.1
2.50.1
From d6588ea27a7d69ff89648e9aae6924f9c8cec398 Mon Sep 17 00:00:00 2001
From 8378dff5fc4e9de64330e843a9ee392b5a887be1 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sun, 8 Oct 2023 17:02:19 -0300
Subject: Use spawn instead of fork for multiprocessing.
@@ -803,10 +803,10 @@ index f395e8b..c286964 100644
# on macOS since macOS 10.14 (Mojave). Use spawn by default instead.
_default_context = DefaultContext(_concrete_contexts['spawn'])
--
2.48.1
2.50.1
From 3d7fb2fc45de9fb8c0a34b4ae45591f499de6a15 Mon Sep 17 00:00:00 2001
From 64090cc192f479f9ad272ba8717d8ce4017030cb Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sun, 10 Dec 2023 19:50:22 -0300
Subject: Miscellaneous "Lib/test/" fixes for Haiku.
@@ -831,7 +831,7 @@ index 44c5b28..994e39b 100644
"""
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index 0611d17..ce7c87d 100644
index fdb36ed..5411a96 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -404,6 +404,7 @@ class OtherFileTests:
@@ -843,10 +843,10 @@ index 0611d17..ce7c87d 100644
# Somehow /dev/tty appears seekable on some BSDs
self.assertEqual(f.seekable(), False)
--
2.48.1
2.50.1
From 78b0c0b698dcb6f074753c5216828d6e2b4885c1 Mon Sep 17 00:00:00 2001
From c8c2fdb4a268a5e5d007c9cfef83094b96f0c576 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Mon, 12 Feb 2024 10:50:34 -0300
Subject: Fix build on nightlies, following the addition of kqueue.
@@ -909,10 +909,10 @@ index 5bd9b77..88e29a4 100644
/* NETDEV filter flags */
--
2.48.1
2.50.1
From db36a890530d6bb0d3cd90011ee8b7384fef6f76 Mon Sep 17 00:00:00 2001
From cf6c882c21ac98c87792441c2afa7027a1305584 Mon Sep 17 00:00:00 2001
From: Alexander von Gluck IV <kallisti5@unixzen.com>
Date: Thu, 14 Mar 2024 12:54:33 -0500
Subject: config.guess: Update to universal haiku arch guessing
@@ -939,10 +939,10 @@ index e81d3ae..366429c 100755
SX-4:SUPER-UX:*:*)
GUESS=sx4-nec-superux$UNAME_RELEASE
--
2.48.1
2.50.1
From 60ebd9c09d2a9f5541b2d3516cd43916ba331374 Mon Sep 17 00:00:00 2001
From 07e998730db4482de1e888d61605ad1b3ab07b7d Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Fri, 9 Aug 2024 13:38:28 -0300
Subject: fix test_utf8_mode.
@@ -962,10 +962,10 @@ index f668810..a55a8e4 100644
elif sys.platform.startswith("aix"):
c_arg = arg.decode('iso-8859-1')
--
2.48.1
2.50.1
From a090a0dc8ac888428fbe4035113121ca510132ee Mon Sep 17 00:00:00 2001
From 70de3952fe2d088c5395b1b98f06e20476d6ef10 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Fri, 9 Aug 2024 14:35:04 -0300
Subject: Fix test_site.
@@ -1052,10 +1052,10 @@ index 57f4f1e..841c24a 100644
if sys.platlibdir != "lib":
self.assertEqual(len(dirs), 2)
--
2.48.1
2.50.1
From 7917c7c54c535c86d0ca23ec226d62c4aadfc2fd Mon Sep 17 00:00:00 2001
From 6f5de1550eadd42b538e30c21b3beffc7831af1d Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Fri, 9 Aug 2024 15:37:13 -0300
Subject: Fix test_sysconfig.
@@ -1095,10 +1095,10 @@ index e7ff98d..017c676 100644
wanted.extend(['nt_user', 'osx_framework_user', 'posix_user', 'haiku_user'])
self.assertEqual(get_scheme_names(), tuple(sorted(wanted)))
--
2.48.1
2.50.1
From 222255fc09d77b71c6b7d3b6f5e91fc8b6a375bc Mon Sep 17 00:00:00 2001
From 2b8938ad7354d7c1e4013e3af17aa2140cbc9c92 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sun, 29 Sep 2024 03:01:27 -0300
Subject: Partially fix test_compileall by skipping tests that need hardlink
@@ -1131,10 +1131,10 @@ index 21ecebc..632fc1c 100644
# 'a = 0' code produces the same bytecode for the 3 optimization
# levels. All three .pyc files must have the same inode (hardlinks).
--
2.48.1
2.50.1
From 648a41cedebd802512eb1c8a5350b5a73dfad063 Mon Sep 17 00:00:00 2001
From 5a35d983096d428fabea3562b1b9a109ab553bc1 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Thu, 9 May 2024 15:16:26 -0300
Subject: Fix 3.13.0 build.
@@ -1147,7 +1147,7 @@ Previous Python versions had both the time out and the "|| true".
Some of the test run in that PGO stage sadly still fail on Haiku.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 737c1e0..cb10114 100644
index 757af76..6c6abd3 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -752,7 +752,7 @@ profile-run-stamp:
@@ -1182,17 +1182,17 @@ index 4d3fb65..be95e7d 100644
#if !defined(__HAIKU__) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(_AIX) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(__NetBSD__)
--
2.48.1
2.50.1
From a80291d2bd8144ea5a1cdc040b635aa2046a4f3b Mon Sep 17 00:00:00 2001
From 725d97b9d10bea407ab69f0e0ed21447ac155a70 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sat, 5 Oct 2024 07:32:17 -0300
Subject: Avoid forcing "-g" on LTO builds, unless Py_DEBUG is defined.
diff --git a/configure.ac b/configure.ac
index 7551412..410e62b 100644
index 92ad128..6668bf1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2069,7 +2069,9 @@ if test "$Py_LTO" = 'true' ; then
@@ -1207,5 +1207,5 @@ index 7551412..410e62b 100644
CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}"
--
2.48.1
2.50.1

View File

@@ -20,7 +20,7 @@ LICENSE="Python"
COPYRIGHT="1990-2025 Python Software Foundation"
REVISION="1"
SOURCE_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz"
CHECKSUM_SHA256="93e583f243454e6e9e4588ca2c2662206ad961659863277afcdb96801647d640"
CHECKSUM_SHA256="17ba5508819d8736a14fbfc47d36e184946a877851b2e9c4b6c43acb44a3b104"
SOURCE_DIR="Python-$portVersion"
pyShortVer="${portVersion%.*}"