Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 8f1ab61

Browse files
committed
* Python 3.12.2 release.
* Refresh patches.
1 parent c99b602 commit 8f1ab61

19 files changed

+30
-50
lines changed

debian/changelog

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
python3.12 (3.12.1-3) UNRELEASED; urgency=medium
1+
python3.12 (3.12.2-1) unstable; urgency=medium
22

3+
* Python 3.12.2 release.
34
* Don't build-depend on systemtap-sdt-dev on the Hurd.
5+
* Refresh patches.
46

5-
-- Matthias Klose <[email protected]> Fri, 08 Dec 2023 20:27:44 +0100
7+
-- Matthias Klose <[email protected]> Wed, 07 Feb 2024 21:47:03 +0100
68

79
python3.12 (3.12.1-2) unstable; urgency=medium
810

debian/patches/ctypes-arm.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Forwarded: yes
88

99
--- a/Lib/ctypes/util.py
1010
+++ b/Lib/ctypes/util.py
11-
@@ -269,16 +269,27 @@
11+
@@ -272,16 +272,27 @@ elif os.name == "posix":
1212

1313
def _findSoname_ldconfig(name):
1414
import struct

debian/patches/disable-sem-check.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Forwarded: not-needed
66

77
--- a/configure.ac
88
+++ b/configure.ac
9-
@@ -5687,10 +5687,15 @@ AC_CACHE_CHECK([whether POSIX semaphores
9+
@@ -5790,10 +5790,15 @@ AC_CACHE_CHECK([whether POSIX semaphores
1010
[ac_cv_posix_semaphores_enabled=yes])
1111
)
1212
AS_VAR_IF([ac_cv_posix_semaphores_enabled], [no], [

debian/patches/distutils-install-layout.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Forwarded: not-needed
3434
If a file named "pyvenv.cfg" exists one directory above sys.executable,
3535
sys.prefix and sys.exec_prefix are set to that directory and
3636
it is also checked for site-packages (sys.base_prefix and
37-
@@ -356,6 +362,8 @@ def getsitepackages(prefixes=None):
37+
@@ -366,6 +372,8 @@ def getsitepackages(prefixes=None):
3838
if prefixes is None:
3939
prefixes = PREFIXES
4040

@@ -43,7 +43,7 @@ Forwarded: not-needed
4343
for prefix in prefixes:
4444
if not prefix or prefix in seen:
4545
continue
46-
@@ -366,10 +374,21 @@ def getsitepackages(prefixes=None):
46+
@@ -376,10 +384,21 @@ def getsitepackages(prefixes=None):
4747
if sys.platlibdir != "lib":
4848
libdirs.append("lib")
4949

@@ -68,7 +68,7 @@ Forwarded: not-needed
6868
sitepackages.append(prefix)
6969
--- a/Lib/test/test_site.py
7070
+++ b/Lib/test/test_site.py
71-
@@ -285,16 +285,16 @@ class HelperFunctionsTests(unittest.Test
71+
@@ -325,16 +325,16 @@ class HelperFunctionsTests(unittest.Test
7272
if os.sep == '/':
7373
# OS X, Linux, FreeBSD, etc
7474
if sys.platlibdir != "lib":

debian/patches/gh-112867.diff

Lines changed: 0 additions & 15 deletions
This file was deleted.

debian/patches/issue108447.diff

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
Index: python3.11-3.11.6/configure.ac
2-
===================================================================
3-
--- python3.11-3.11.6.orig/configure.ac
4-
+++ python3.11-3.11.6/configure.ac
5-
@@ -1066,7 +1066,13 @@ cat > conftest.c <<EOF
1+
--- a/configure.ac
2+
+++ b/configure.ac
3+
@@ -1075,7 +1075,13 @@ cat > conftest.c <<EOF
64
# error unknown platform triplet
75
# endif
86
#elif defined(__gnu_hurd__)

debian/patches/langpack-gettext.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Forwarded: not-needed
99

1010
--- a/Lib/gettext.py
1111
+++ b/Lib/gettext.py
12-
@@ -492,11 +492,26 @@
12+
@@ -504,11 +504,26 @@ def find(domain, localedir=None, languag
1313
if lang == 'C':
1414
break
1515
mofile = os.path.join(localedir, lang, 'LC_MESSAGES', '%s.mo' % domain)

debian/patches/link-opt.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Forwarded: no
55

66
--- a/configure.ac
77
+++ b/configure.ac
8-
@@ -3270,8 +3270,8 @@ then
8+
@@ -3334,8 +3334,8 @@ then
99
LDSHARED='$(CC) -shared'
1010
LDCXXSHARED='$(CXX) -shared';;
1111
Linux*|GNU*|QNX*|VxWorks*|Haiku*)
@@ -16,7 +16,7 @@ Forwarded: no
1616
FreeBSD*)
1717
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
1818
then
19-
@@ -3384,7 +3384,7 @@ then
19+
@@ -3448,7 +3448,7 @@ then
2020
LINKFORSHARED="-Wl,-E -Wl,+s";;
2121
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2222
Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;

debian/patches/local-doc-references.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Forwarded: not-needed
1515
<script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
1616
--- a/Lib/idlelib/help.html
1717
+++ b/Lib/idlelib/help.html
18-
@@ -28,7 +28,7 @@
18+
@@ -26,7 +26,7 @@
1919
<link rel="copyright" title="Copyright" href="../copyright.html" />
2020
<link rel="next" title="Development Tools" href="development.html" />
21-
<link rel="prev" title="tkinter.tixExtension widgets for Tk" href="tkinter.tix.html" />
21+
<link rel="prev" title="tkinter.ttkTk themed widgets" href="tkinter.ttk.html" />
2222
- <link rel="canonical" href="https://docs.python.org/3/library/idle.html" />
2323
+ <link rel="canonical" href="file:///usr/share/doc/python3.12/html/library/idle.html" />
2424

debian/patches/locale-module.diff

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ Description: Use glibc's name for the UTF-8 locale
33

44
Forwarded: no
55

6-
Index: b/Lib/locale.py
7-
===================================================================
86
--- a/Lib/locale.py
97
+++ b/Lib/locale.py
10-
@@ -1430,8 +1430,8 @@ locale_alias = {
8+
@@ -1432,8 +1432,8 @@ locale_alias = {
119
'ug_cn': 'ug_CN.UTF-8',
1210
'uk': 'uk_UA.KOI8-U',
1311
'uk_ua': 'uk_UA.KOI8-U',

debian/patches/multiarch.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Forwarded: no
2222
if os.name == 'posix':
2323
--- a/Makefile.pre.in
2424
+++ b/Makefile.pre.in
25-
@@ -1374,6 +1374,7 @@ Modules/signalmodule.o: $(srcdir)/Module
25+
@@ -1377,6 +1377,7 @@ Modules/signalmodule.o: $(srcdir)/Module
2626

2727
Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
2828
$(CC) -c $(PY_CORE_CFLAGS) \

debian/patches/ntpath-import.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
import os
1111
import posixpath
1212
import re
13-
@@ -349,6 +348,7 @@ class PurePath(object):
13+
@@ -356,6 +355,7 @@ class PurePath(object):
1414
return (self.__class__, self.parts)
1515

1616
def __init__(self, *args):
1717
+ import ntpath
1818
paths = []
1919
for arg in args:
2020
if isinstance(arg, PurePath):
21-
@@ -736,6 +736,7 @@ class PurePath(object):
21+
@@ -748,6 +748,7 @@ class PurePath(object):
2222
def is_absolute(self):
2323
"""True if the path is absolute (has both a root and, if applicable,
2424
a drive)."""
2525
+ import ntpath
2626
if self._flavour is ntpath:
2727
# ntpath.isabs() is defective - see GH-44626.
2828
return bool(self.drive and self.root)
29-
@@ -802,6 +803,7 @@ class PureWindowsPath(PurePath):
29+
@@ -814,6 +815,7 @@ class PureWindowsPath(PurePath):
3030
On a Windows system, instantiating a PurePath should return this object.
3131
However, you can also instantiate it directly on any system.
3232
"""

debian/patches/profiled-build.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Forwarded: no
55

66
--- a/Makefile.pre.in
77
+++ b/Makefile.pre.in
8-
@@ -655,7 +655,16 @@ profile-run-stamp:
8+
@@ -659,7 +659,16 @@ profile-run-stamp:
99
$(MAKE) profile-gen-stamp
1010
# Next, run the profile task to generate the profile information.
1111
@ # FIXME: can't run for a cross build

debian/patches/reproducible-buildinfo.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Forwarded: no
66

77
--- a/Makefile.pre.in
88
+++ b/Makefile.pre.in
9-
@@ -1344,6 +1344,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
9+
@@ -1347,6 +1347,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
1010
-DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
1111
-DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
1212
-DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \

debian/patches/series

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ fix-py_compile.diff
3131
ntpath-import.diff
3232
python3.12-updates.diff
3333
issue108447.diff
34-
gh-112867.diff

debian/patches/sphinx3.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Origin: upstream, https://github.com/python/cpython/commit/423e77d6de497931585d1
66

77
--- a/Doc/conf.py
88
+++ b/Doc/conf.py
9-
@@ -96,6 +96,10 @@ gettext_additional_targets = [
9+
@@ -280,6 +280,10 @@ gettext_additional_targets = [
1010
'index',
1111
]
1212

@@ -19,7 +19,7 @@ Origin: upstream, https://github.com/python/cpython/commit/423e77d6de497931585d1
1919

2020
--- a/Doc/Makefile
2121
+++ b/Doc/Makefile
22-
@@ -14,7 +14,7 @@ PAPER =
22+
@@ -13,7 +13,7 @@ PAPER =
2323
SOURCES =
2424
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
2525
REQUIREMENTS = requirements.txt

debian/patches/sysconfigdata-name.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Forwarded: no
1818

1919
--- a/Makefile.pre.in
2020
+++ b/Makefile.pre.in
21-
@@ -2306,8 +2306,10 @@ libinstall: all $(srcdir)/Modules/xxmodu
21+
@@ -2328,8 +2328,10 @@ libinstall: all $(srcdir)/Modules/xxmodu
2222
esac; \
2323
done; \
2424
done
@@ -33,7 +33,7 @@ Forwarded: no
3333
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
3434
--- a/configure.ac
3535
+++ b/configure.ac
36-
@@ -161,7 +161,7 @@ AC_ARG_WITH(
36+
@@ -164,7 +164,7 @@ AC_ARG_WITH([build-python],
3737
dnl Build Python interpreter is used for regeneration and freezing.
3838
ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python
3939
PYTHON_FOR_FREEZE="$with_build_python"

debian/patches/tempfile-minimal.diff

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Description: Debian: Degrade tempfile gracefully without shutil
44

55
Forwarded: not-needed
66

7-
Index: b/Lib/tempfile.py
8-
===================================================================
97
--- a/Lib/tempfile.py
108
+++ b/Lib/tempfile.py
119
@@ -40,7 +40,146 @@ import functools as _functools
@@ -156,7 +154,7 @@ Index: b/Lib/tempfile.py
156154
import errno as _errno
157155
from random import Random as _Random
158156
import sys as _sys
159-
@@ -900,7 +1039,7 @@ class TemporaryDirectory:
157+
@@ -927,7 +1066,7 @@ class TemporaryDirectory:
160158
if not ignore_errors:
161159
raise
162160

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ endif
11831183

11841184
: # IDLE has its own changelogs, docs...
11851185
dh_installchangelogs -p$(p_idle) Lib/idlelib/ChangeLog
1186-
dh_installdocs -p$(p_idle) Lib/idlelib/{NEWS,README,TODO,extend}.txt
1186+
dh_installdocs -p$(p_idle) Lib/idlelib/{NEWS2x,News3,README,TODO,extend}.txt
11871187

11881188
mkdir -p $(d_idle)/usr/share/applications
11891189
cp -p debian/idle.desktop \

0 commit comments

Comments
 (0)