Version in base suite: 1.12.0+ds1-4 Base version: python-pycdlib_1.12.0+ds1-4 Target version: python-pycdlib_1.12.0+ds1-4+deb12u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/p/python-pycdlib/python-pycdlib_1.12.0+ds1-4.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/p/python-pycdlib/python-pycdlib_1.12.0+ds1-4+deb12u1.dsc changelog | 8 ++++++++ rules | 4 ++++ 2 files changed, 12 insertions(+) diff -Nru python-pycdlib-1.12.0+ds1/debian/changelog python-pycdlib-1.12.0+ds1/debian/changelog --- python-pycdlib-1.12.0+ds1/debian/changelog 2022-10-25 13:46:06.000000000 +0000 +++ python-pycdlib-1.12.0+ds1/debian/changelog 2024-12-30 17:55:00.000000000 +0000 @@ -1,3 +1,11 @@ +python-pycdlib (1.12.0+ds1-4+deb12u1) bookworm; urgency=medium + + * Non-maintainer upload. + * Run tests only if /tmp is in tmpfs, because otherwise they are + known to fail. (Closes: #1002789). + + -- Santiago Vila Mon, 30 Dec 2024 18:55:00 +0100 + python-pycdlib (1.12.0+ds1-4) unstable; urgency=medium * Add fix-getargspec-removed-from-py3.11.patch (Closes: #1030535). diff -Nru python-pycdlib-1.12.0+ds1/debian/rules python-pycdlib-1.12.0+ds1/debian/rules --- python-pycdlib-1.12.0+ds1/debian/rules 2022-10-25 13:46:06.000000000 +0000 +++ python-pycdlib-1.12.0+ds1/debian/rules 2024-12-30 17:53:19.000000000 +0000 @@ -3,6 +3,8 @@ UPSTREAM_GIT := http://github.com/clalancette/pycdlib include /usr/share/openstack-pkg-tools/pkgos.make +TMP_IS_TMPFS := $(shell egrep -q "^tmpfs[[:space:]]+/tmp[[:space:]]" /proc/mounts && echo true || echo false) + %: dh $@ --with python3 @@ -18,10 +20,12 @@ pkgos-dh_auto_install --no-py2 --in-tmp ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) +ifeq ($(TMP_IS_TMPFS),true) set -e ; set -x ; for pyvers in $(PYTHON3S); do \ PATH=$$PATH:$(CURDIR)/debian/tmp/usr/bin PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages python$$pyvers -m pytest tests ; \ done endif +endif override_dh_python3: dh_python3 --shebang=/usr/bin/python3