Package: pypy3 / 7.3.5+dfsg-2+deb11u2

Metadata

Package Version Patches format
pypy3 7.3.5+dfsg-2+deb11u2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
test_fsync eatmydata | (download)

lib-python/3/test/test_os.py | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 tests: skip fsync tests when building with eatmydata

skip test_multiprocessing | (download)

lib-python/3/test/_test_multiprocessing.py | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 tests: disable test_multiprocessing

It leaves stray processes.

skip hurd deadlock | (download)

pypy/module/thread/test/test_lock.py | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 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.

python2 binary | (download)

pypy/module/_posixsubprocess/test/test_subprocess.py | 6 3 + 3 - 0 !
pypy/pytest-A.cfg | 2 1 + 1 - 0 !
2 files changed, 4 insertions(+), 4 deletions(-)

 tests: use the python2 binary

Debian doesn't ship a /usr/bin/python any more

test_readline invalidterminal | (download)

lib-python/3/test/test_readline.py | 11 9 + 2 - 0 !
1 file changed, 9 insertions(+), 2 deletions(-)

 tests: skip readline tests raising invalidterminal

We run the tests under TERM=dumb.
PyPy doesn't emulate the readline module perfectly and throws an
exception here.

test_fcntl | (download)

pypy/module/fcntl/test/test_fcntl.py | 9 7 + 2 - 0 !
1 file changed, 7 insertions(+), 2 deletions(-)

 tests: ignore lease failure in fcntl tests

Fail on tmpfs on Linux 4.19. Fixed in 5.7 possibly earlier (5.3?).

fpic archs | (download)

rpython/translator/platform/__init__.py | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 arch: x32 requires -fpic

x32 detection is currently Debian-specific.

ctypes arm | (download)

lib-python/3/ctypes/util.py | 15 13 + 2 - 0 !
1 file changed, 13 insertions(+), 2 deletions(-)

 arch: armhf support
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Workaround the presence of hard-float in ldconfig -p output.
Also, handle the wide variety of ARM unames.

plat gnukfreebsd | (download)

lib-python/3/plat-gnukfreebsd10/DLFCN.py | 118 118 + 0 - 0 !
lib-python/3/plat-gnukfreebsd10/IN.py | 809 809 + 0 - 0 !
lib-python/3/plat-gnukfreebsd10/TYPES.py | 303 303 + 0 - 0 !
lib-python/3/plat-gnukfreebsd11/DLFCN.py | 118 118 + 0 - 0 !
lib-python/3/plat-gnukfreebsd11/IN.py | 809 809 + 0 - 0 !
lib-python/3/plat-gnukfreebsd11/TYPES.py | 303 303 + 0 - 0 !
lib-python/3/plat-gnukfreebsd8/DLFCN.py | 118 118 + 0 - 0 !
lib-python/3/plat-gnukfreebsd8/IN.py | 809 809 + 0 - 0 !
lib-python/3/plat-gnukfreebsd8/TYPES.py | 303 303 + 0 - 0 !
lib-python/3/plat-gnukfreebsd9/DLFCN.py | 118 118 + 0 - 0 !
lib-python/3/plat-gnukfreebsd9/IN.py | 809 809 + 0 - 0 !
lib-python/3/plat-gnukfreebsd9/TYPES.py | 303 303 + 0 - 0 !
12 files changed, 4920 insertions(+)

 arch: dlfcn.py for kfreebsd

distutils link | (download)

lib-python/3/distutils/unixccompiler.py | 7 6 + 1 - 0 !
1 file changed, 6 insertions(+), 1 deletion(-)

 stdlib: don't add standard library dirs to library_dirs and
 runtime_library_dirs.

locale module | (download)

lib-python/3/locale.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 stdlib: don't map 'utf8', 'utf-8' to 'utf'

'utf' is not a known encoding for glibc.

platform lsbrelease | (download)

lib-python/3/platform.py | 23 23 + 0 - 0 !
1 file changed, 23 insertions(+)

 stdlib: use /etc/lsb-release to identify the platform

rlcompleter invalidterminal | (download)

lib-python/3/rlcompleter.py | 13 8 + 5 - 0 !
1 file changed, 8 insertions(+), 5 deletions(-)

 stdlib: handle invalidterminal in rlcompleter

Pypy's readline module can throw InvalidTerminal if the terminal doesn't
support "clear". This is the case for TERM=dumb, which we use for tests.

version info | (download)

pypy/module/sys/version.py | 1 1 + 0 - 0 !
rpython/tool/version.py | 10 10 + 0 - 0 !
2 files changed, 11 insertions(+)

 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.

ensurepip wheels | (download)

lib-python/3/ensurepip/__init__.py | 67 46 + 21 - 0 !
1 file changed, 46 insertions(+), 21 deletions(-)

 debian: let ensurepip use the system wheels

Not the ones from the python source.

ensurepip disabled | (download)

lib-python/3/ensurepip/__init__.py | 33 33 + 0 - 0 !
lib-python/3/venv/__init__.py | 23 22 + 1 - 0 !
2 files changed, 55 insertions(+), 1 deletion(-)

 debian: disable ensurepip in debian for now

multiarch | (download)

lib-python/3/test/test_sysconfig.py | 4 4 + 0 - 0 !
lib_pypy/_sysconfigdata.py | 1 1 + 0 - 0 !
pypy/module/imp/importing.py | 2 2 + 0 - 0 !
pypy/module/imp/interp_imp.py | 3 3 + 0 - 0 !
pypy/module/imp/moduledef.py | 2 2 + 0 - 0 !
pypy/module/imp/test/test_app.py | 3 3 + 0 - 0 !
pypy/module/sys/app.py | 1 1 + 0 - 0 !
pypy/module/sys/test/test_sysmodule.py | 6 6 + 0 - 0 !
8 files changed, 22 insertions(+)

 debian: expose the multiarch tag used in c extension file names

Add _multiarch variable to sys.implementation, and MULTIARCH to
sysconfig variables.  Based on Debian's multiarch patch.

distutils install layout | (download)

lib-python/3/distutils/command/install.py | 45 43 + 2 - 0 !
lib-python/3/distutils/command/install_egg_info.py | 30 25 + 5 - 0 !
lib-python/3/distutils/sysconfig_pypy.py | 7 6 + 1 - 0 !
lib-python/3/pydoc.py | 1 1 + 0 - 0 !
lib-python/3/site.py | 27 24 + 3 - 0 !
lib-python/3/sysconfig.py | 29 27 + 2 - 0 !
lib-python/3/test/test_sysconfig.py | 3 2 + 1 - 0 !
7 files changed, 128 insertions(+), 14 deletions(-)

 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

langpack gettext | (download)

lib-python/3/gettext.py | 15 15 + 0 - 0 !
1 file changed, 15 insertions(+)

 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

bdist wininst notfound | (download)

lib-python/3/distutils/command/bdist_wininst.py | 7 6 + 1 - 0 !
1 file changed, 6 insertions(+), 1 deletion(-)

 debian: explain that wininst files are not included in debian

The wininst-* files cannot be built within Debian, needing a zlib mingw
build, which the zlib maintainer isn't going to provide.

tkinter import | (download)

lib-python/3/tkinter/__init__.py | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 debian: suggest installation of pypy3-tk package

On failing _tkinter import.

noise | (download)

rpython/tool/ansi_print.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 debian: always output the mandelbrot

So that our buildds see progress

python3 sphinx | (download)

pypy/doc/conf.py | 11 3 + 8 - 0 !
pypy/doc/config/index.rst | 11 5 + 6 - 0 !
pypy/doc/cpython_differences.rst | 2 1 + 1 - 0 !
pypy/doc/objspace.rst | 12 10 + 2 - 0 !
4 files changed, 19 insertions(+), 17 deletions(-)

 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.

import h endif | (download)

pypy/module/cpyext/include/import.h | 2 0 + 2 - 0 !
1 file changed, 2 deletions(-)

 cpyext: typo in import.h

Bug-Debian: https://bugs.debian.org/1001519
CVE 2022 37454 | (download)

lib-python/3/test/test_hashlib.py | 9 9 + 0 - 0 !
lib_pypy/_sha3/kcp/KeccakSponge.inc | 14 8 + 6 - 0 !
2 files changed, 17 insertions(+), 6 deletions(-)

 fix segfault from cve-2022-37454 via cpython pr 98527