Package: libpython3.13-minimal Version: 3.13.2-1 Severity: important File: /usr/lib/python3.13/tempfile.py X-Debbugs-Cc: [email protected]
When trying to build glibc-2.41 (from upstream sources) in a docker container with trixie-slim + python3.13-minimal: ... #44 13.46 python3 -B ../scripts/gen-as-const.py --cc="x86_64-lfs-linux-gnu-gcc -std=gnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Wimplicit-fallthrough -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -U_FORTIFY_SOURCE -Wstrict-prototypes -Wold-style-definition -fmath-errno -ftls-model=initial-exec -I../include -I/mnt/lfs/sources/glibc-2.41/build/csu -I/mnt/lfs/sources/glibc-2.41/build -I../sysdeps/unix/sysv/linux/x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64/include -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/x86/nptl -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86/include -I../sysdeps/x86 -I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/14.2.0/include -isystem /mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/14.2.0/include-fixed -isystem /mnt/lfs/usr/include -D_LIBC_REENTRANT -include /mnt/lfs/sources/glibc-2.41/build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DTOP_NAMESPACE=glibc -DGEN_AS_CONST_HEADERS \ #44 13.46 -MD -MP -MF /mnt/lfs/sources/glibc-2.41/build/rtld-sizes.h.dT \ #44 13.46 -MT '/mnt/lfs/sources/glibc-2.41/build/rtld-sizes.h.d /mnt/lfs/sources/glibc-2.41/build/rtld-sizes.h'" \ #44 13.46 rtld-sizes.sym > /mnt/lfs/sources/glibc-2.41/build/rtld-sizes.hT #44 13.81 Traceback (most recent call last): #44 13.81 File "/mnt/lfs/sources/glibc-2.41/csu/../scripts/gen-as-const.py", line 120, in <module> #44 13.81 main() #44 13.81 ~~~~^^ #44 13.81 File "/mnt/lfs/sources/glibc-2.41/csu/../scripts/gen-as-const.py", line 116, in main #44 13.81 consts = glibcextract.compute_c_consts(sym_data, args.cc) #44 13.81 File "/mnt/lfs/sources/glibc-2.41/scripts/glibcextract.py", line 55, in compute_c_consts #44 13.81 with tempfile.TemporaryDirectory() as temp_dir: #44 13.81 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ #44 13.81 File "/usr/lib/python3.13/tempfile.py", line 1085, in __exit__ #44 13.81 self.cleanup() #44 13.81 ~~~~~~~~~~~~^^ #44 13.81 File "/usr/lib/python3.13/tempfile.py", line 1089, in cleanup #44 13.81 self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors) #44 13.81 ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ #44 13.81 File "/usr/lib/python3.13/tempfile.py", line 1069, in _rmtree #44 13.81 _rmtree(name, onexc=onexc) #44 13.81 ~~~~~~~^^^^^^^^^^^^^^^^^^^ #44 13.81 TypeError: _rmtree() got an unexpected keyword argument 'onexc' I was pulling my hair out, as I was not able to reproduce it on host Debian trixie easiily, or track in upstream CPython repo where that change was made. It is in Debian-specific patch that is broken cpython-team/python3/-/blob/master/debian/patches/min-tempfile.diff Regards, Witold -- System Information: Debian Release: trixie/sid APT prefers trixie APT policy: (500, 'trixie'), (500, 'testing-debug'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.12.10-amd64 (SMP w/32 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libpython3.13-minimal:amd64 depends on: ii libc6 2.40-5 ii libssl3t64 3.4.0-2 Versions of packages libpython3.13-minimal:amd64 recommends: ii libpython3.13-stdlib 3.13.2-1 libpython3.13-minimal:amd64 suggests no packages. -- no debconf information

