Debian Patches

Status for pypy3/8.0.0+dfsg-1

Patch Description Author Forwarded Bugs Origin Last update
tests/test_fsync-eatmydata Tests: Skip fsync tests when building with eatmydata Stefano Rivera <stefanor@debian.org> not-needed 2012-02-06
tests/skip-test_multiprocessing Tests: Disable test_multiprocessing
It leaves stray processes.
Stefano Rivera <stefanor@debian.org> not-needed 2017-10-07
tests/skip-hurd-deadlock Tests: Skip test that deadlocks on GNU Hurd
Per Samuel Thibault:

> That's probably because pypy uses pthread_mutexes (which per POSIX aren't
> interrupted by signals) instead of semaphores, and I guess that's
> because sem_open isn't supported on Hurd yet.
Stefano Rivera <stefanor@debian.org> no 2018-08-26
tests/python2-binary Tests: Use the python2 binary
Debian doesn't ship a /usr/bin/python any more
Stefano Rivera <stefanor@debian.org> not-needed 2020-09-25
tests/test_fcntl Tests: Ignore lease failure in fcntl tests
Fail on tmpfs on Linux 4.19. Fixed in 5.7 possibly earlier (5.3?).
Stefano Rivera <stefanor@debian.org> not-needed 2020-09-24
stdlib/distutils-link Stdlib: Don't add standard library dirs to library_dirs and runtime_library_dirs. Matthias Klose <doko@debian.org> no Debian cpython packaging 2011-12-19
stdlib/locale-module Stdlib: Don't map 'utf8', 'utf-8' to 'utf'
'utf' is not a known encoding for glibc.
Matthias Klose <doko@debian.org> yes Debian cpython packaging 2011-12-19
debian/version-info Debian: Get version details from the Debian source package
Rather than VCS.

Return the Debian package version in sys.version.
Return null strings in sys._mercurial.
Stefano Rivera <stefanor@debian.org> not-needed 2013-02-23
debian/ensurepip-disabled Debian: Disable ensurepip in Debian for now Stefano Rivera <stefanor@debian.org> no Debian cpython packaging 2017-05-21
debian/distutils-install-layout 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.

Based on cpython Debian packaging
Stefano Rivera <stefanor@debian.org> no 2017-05-21
debian/sysconfig-debian-schemes Debian: Add our install schemes to sysconfig
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.

Based on cpython Debian packaging
Stefano Rivera <stefanor@debian.org> no 2024-08-29
debian/langpack-gettext Debian: Support Ubuntu langpacks
Support alternative gettext tree in /usr/share/locale-langpack; if a
file is present in both trees, prefer the newer one
Michael Vogt <michael.vogt@ubuntu.com> not-needed Debian cpython packaging 2011-12-19
debian/tkinter-import Debian: Suggest installation of pypy3-tk package
On failing _tkinter import.
Stefano Rivera <stefanor@debian.org> no 2013-11-15
debian/noise Debian: Always output the mandelbrot
So that our buildds see progress
Stefano Rivera <stefanor@debian.org> not-needed 2017-10-07
debian/python3-sphinx Debian: Disable some extensions to support Python 3 Sphinx
Stop building any autodoc and configuration sections, that require
parsing the Python 2 source code.

This supports building the Sphinx docs with Python 3.
Stefano Rivera <stefanor@debian.org> no 2020-03-23
debian/setuptools-59-editable-installs Debian: Fix editable installs with setuptools < 60.0.1
Work-around a setuptools bug, where it failed to configure all necessary
substitution variables in easy_install.
Stefano Rivera <stefanor@debian.org> not-needed 2022-03-25
debian/system-expat Debian: De-Vendor Expat
Use the Debian system Expat.
This reverts upstream's commit 792b0993b0b06b6c0282da0bbfb2f7e3151c0bb6.
Stefano Rivera <stefanor@debian.org> no 2024-04-23
stdlib/sysconfigdata-name gh-81742 Omit platform from _sysconfigdata filename for multiarch
The multiarch triple encodes the platform name, so there is no need to
have both in the _sysconfigdata filename.

Debian has been carrying a (dumber) variant of this patch for a while.
Stefano Rivera <stefano@rivera.za.net> yes Debian cpython packaging 2024-08-10
upstream/gcc-14 GCC-14: Ignore -Wincompatible-pointer-types on 32-bit
Work around missing GCC-14 support for 32-builds of PyPy by suppressing
the GCC error. We hope to replace this with a real patch soon.
Stefano Rivera <stefanor@debian.org> no 2024-08-31
debian/pycparser-2.7 pycparser: Python 2.7 compatibility
Revert https://github.com/eliben/pycparser/pull/494 because it isn't
compatible with Python 2.7
Stefano Rivera <stefanor@debian.org> no 2026-03-19
upstream/fix-rstr-under-cpython fix translation on cpython2.7 mattip <matti.picus@gmail.com> no upstream, https://github.com/pypy/pypy/commit/ad5d1d2f333ce8247b7b93d561ae89df45c01d71 2026-09-21
debian/openssl4 Fix for OpenSSL 4 compatibility
OpenSSL 4 made the ASN1_STRING structure opaque, so direct member access
(->data, ->length) is no longer possible. The cffi bindings now declare
the ASN.1 string types as opaque, keeping their shared underlying struct
(struct asn1_string_st) exactly as OpenSSL 4's own asn1.h and types.h
declare them, so no casts between the aliased types are needed. The
remaining direct member accesses in
lib_pypy/_cffi_ssl/_stdssl/certificate.py were replaced with the accessor
functions (ASN1_STRING_get0_data, ASN1_STRING_length). See also the
equivalent pyca/cryptography fix:
https://github.com/pyca/cryptography/commit/76ad3dd2c30c16cec8cbc79db3240418e5d26614

OpenSSL 4 also constified a large family of X509 functions. Return types
for X509_get_subject_name, X509_get_issuer_name, X509_get_ext,
X509_EXTENSION_get_data, X509_EXTENSION_get_object, X509_NAME_get_entry,
X509_NAME_ENTRY_get_object, X509_NAME_ENTRY_get_data, X509_REVOKED_get_ext,
X509_CRL_get_ext, X509_CRL_get_issuer, X509_REQ_get_subject_name,
X509_alias_get0, and the OCSP_*_get_ext family were updated to return
const pointers in the cffi bindings.

The version-specific TLS method functions removed in OpenSSL 4
(TLSv1_method, TLSv1_1_method, TLSv1_2_method, SSLv3_method,
SSLv3_server_method, SSLv3_client_method) were removed from the cffi ssl
bindings. PROTOCOL_TLSv1/1_1/1_2 remain supported: they now use the
generic TLS_method() and pin the protocol version with SSL_OP_NO_TLSv*
options. The unused X509_STORE_CTX_get_issuer_fn typedef and related
declarations were removed from x509_vfy.py, and the engine.h include is
guarded with #ifndef OPENSSL_NO_ENGINE.

cadata DER EOF: OpenSSL 4 reports ASN1_R_NOT_ENOUGH_DATA (instead of
ASN1_R_HEADER_TOO_LONG) at the end of a DER certificate read in
load_verify_locations(), so that reason code is now accepted as a benign
EOF indicator (when at least one certificate was loaded).

Test fixes: lib-python/3/test/test_ssl.py version bound checks were
updated from < 4.0 to < 5.0, and test_wrong_cert_tls13 now also accepts
ECONNRESET, since OpenSSL 4 may close a TLS 1.3 connection with a TCP
reset instead of an SSL alert when the server rejects the client
certificate.
Ruan Cardoso Comelli <ruan.comelli@canonical.com> yes debian 2026-09-22

All known versions for source package 'pypy3'

Links