Debian Patches

Status for python3.15/3.15.0~rc1-1

Patch Description Author Forwarded Bugs Origin Last update
build-info-multiarch.patch Rename build-details.json to allow libpython3.14-stdlib to be multiarch
co-installable. PEP 739 is planned to be updated to allow this.
no debian
pyexpat-test-depth.diff Increase the size of the test document in test_deeply_nested_content_model

On Debian's `i386` builds of 3.15 with system Expat, the parser was
happily parsing the entire document without raising RecursionError or
crashing.

The increased limit is borrowed from the (later reverted)
255026d9eea81719214c8e807d23df55b5f39b54. Presumably that change ran
into a similar issue.
Stefano Rivera <stefano@rivera.za.net> no 2026-05-09
deb-locations.diff Debian: Adjust locations of directories to debian policy not-needed
distutils-install-layout.diff Debian: Add a distutils option --install-layout=deb This option:
- installs into $prefix/dist-packages instead of $prefix/site-packages.
- doesn't encode the python version into the egg name.
.
We install modules into dist-packages so that a local admin can build their
own cpython from source, and they won't see each others' installed modules.
This keeps Debian packaged applications working correctly, isolated from the
local cpython.
.
Customize site.py to import from Debian's dist-packages layout.
not-needed
sysconfig-debian-schemes.diff This adds two schemes:
1. deb_system: Debian's installed Python layout, with modules in
dist-packages shared across Python versions.
2. posix_local: A clone of posix_prefix that includes a built-in local
prefix for the dist-packages and binary paths. We default to this to redict
local installations into /usr/local.
no
link-opt.diff Call the linker with -O1 -Bsymbolic-functions We do symbolic-functions as policy in Ubuntu.

Could be forwarded in the form of a configure flag.
no
setup-modules.diff Configure linking for C-library wrapping modules Use the system C libraries, rather than sources bundled with cPython, or
anything from /usr/local.
This is for performance, to avoid unnecessary C extension imports at start-up.
not-needed
profiled-build.diff Ignore errors in the profile task. This is a rewrite of the profile task. We run the tests sequentially, and only
once at a time.
no
langpack-gettext.diff Ubuntu: Support separate langpack packages Support alternative gettext tree in /usr/share/locale-langpack; if a file is
present in both trees, prefer the newer one.
Ubuntu collates gettext from packages on the DVD into language packs, to
reduce disk-space on the image.
This is Ubuntu-Specific.
not-needed
disable-sem-check.diff Debian: Don't autodetect whether semephores are present Assume working semaphores, don't rely on running kernel for the check.

This is not something that's approriate for us to detect at build time.
Potentially forwadable, if redesigned.
not-needed
multiarch.diff Debian: Configure multiarch tuple. 1. Expose multiarchsubdir in sysconfig.
Some packages in Debian are depending on this.
2. Install the .pc file into the multiarch path.
no
ensurepip-disabled.diff Disable ensurepip for the system installation We have a python3-pip package, for users who want pip.
We just need ensurepip to seed pip in virtual environments.
not-needed
destshared-location.diff Keep the lib-dynload dir in the same place when configuring with --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
The C extensions already have multiarch paths in their filenames.
no
min-codeop-traceback.diff Debian: Degrade traceback gracefully without codeop python3.X-minimal includes traceback but not codeop.
We don't need suggestions in python3.X-minimal.
not-needed
min-difflib-argparse.diff Debian: Degrade argparse gracefully without difflib python3.X-minimal doesn't include difflib, so don't offer suggestions. not-needed
min-gettext-argparse.diff Debian: Degrade argparse gracefully without gettext python3.X-minimal includes argparse but not gettext. Use a fallback noop
gettext, if it can't be imported.
not-needed
min-gettext-getopt.diff Debian: Degrade getopt gracefully without gettext python3.X-minimal includes getopt but not gettext. Use a fallback noop
gettext, if it can't be imported.
not-needed
min-gettext-optparse.diff Debian: Degrade optparse gracefully without gettext python3.X-minimal includes optparse but not gettext. Use a fallback noop
gettext, if it can't be imported.
not-needed
min-multiprocessing-compileall.diff Avoid tripping over the multiprocessing import in compileall Minimal includes compileall but not multiprocessing. not-needed
min-concurrent-compileall.diff Avoid tripping over the concurrent import in compileall Minimal includes compileall but not concurrent. not-needed
min-ntpath-pathlib.diff ntpath is not in python-minimal, replace module-level imports with local imports in functions that actually require ntpath. not-needed
makefile-bootstrap.diff # DP: needs forwarding. bootstrap python fails with a compiler defaulting to -fPIE,
# DP: then setting CFLAGS_NODIST and LDFLAGS_NODIST to -fno-PIE.

Needs forwarding.
no
test-freeze-strip-libdir.diff Strip absolute --libdir paths from configure args in test_freeze

We are trying to install into a prefix, any absolute path would not
necessarily be writeable. e.g. if Python is configured with
--libdir=/usr/lib/$(MULTIARCH)/ during a Debian build.
Stefano Rivera <stefano@rivera.za.net> yes 2024-10-02
man-page-fixes.diff Manpage formatting tweaks
Following on from GH-132291 this is the second part of the patch from
https://bugs.debian.org/1101406

This tweaks the formatting of a few bits of the manpage.
Stefano Rivera <stefano@rivera.za.net> yes debian 2025-04-09
sphinx-no-fail-on-warning.diff no
glibc-termios.diff no

All known versions for source package 'python3.15'

Links