Followup-For: Bug #987213 Control: tag -1 patch Hi,
a possible solution would be to move the libc6 dependency in pypy to pre-depends s.t. pypy will not be unpacked before libc6 providing new (and required) symbols. Andreas
diff -Nru pypy-7.3.3+dfsg/debian/changelog pypy-7.3.3+dfsg/debian/changelog --- pypy-7.3.3+dfsg/debian/changelog 2020-11-21 18:14:19.000000000 +0100 +++ pypy-7.3.3+dfsg/debian/changelog 2021-04-19 20:54:44.000000000 +0200 @@ -1,3 +1,11 @@ +pypy (7.3.3+dfsg-2) UNRELEASED; urgency=medium + + * pypy: Move libc6 dependency to Pre-Depends s.t. pypy stays usable from + maintainer scripts during upgrades even while unconfigured. + (Closes: #987213) + + -- Andreas Beckmann <a...@debian.org> Mon, 19 Apr 2021 20:54:44 +0200 + pypy (7.3.3+dfsg-1) unstable; urgency=medium * New upstream release (identical to RC1). diff -Nru pypy-7.3.3+dfsg/debian/control pypy-7.3.3+dfsg/debian/control --- pypy-7.3.3+dfsg/debian/control 2020-11-21 18:14:19.000000000 +0100 +++ pypy-7.3.3+dfsg/debian/control 2021-04-19 20:54:44.000000000 +0200 @@ -34,6 +34,7 @@ Package: pypy Architecture: any +Pre-Depends: ${pypy-libc-pre-depends} Depends: pypy-lib (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Breaks: pypy-backports.functools-lru-cache (<< 1.5-3~), diff -Nru pypy-7.3.3+dfsg/debian/rules pypy-7.3.3+dfsg/debian/rules --- pypy-7.3.3+dfsg/debian/rules 2020-11-21 18:14:19.000000000 +0100 +++ pypy-7.3.3+dfsg/debian/rules 2021-04-19 20:54:44.000000000 +0200 @@ -73,6 +73,10 @@ override_dh_compress: dh_compress -X.inv -X.txt +override_dh_gencontrol-arch: + sed -i -r '/^shlibs:Depends=/{p; s/.*[= ,](libc[0-9][^,]*).*/pypy-libc-pre-depends=\1/}' debian/pypy.substvars + dh_gencontrol + override_dh_installdeb: set -e; for maintscript in preinst postinst prerm; do \ sed -e 's/#VERSION#/$(VER)/g' \