Your message dated Tue, 29 Aug 2023 00:48:57 +0000
with message-id <e1qamuf-008zv3...@fasolo.debian.org>
and subject line Bug#1050755: fixed in usrmerge 37
has caused the Debian Bug report #1050755,
regarding usr-is-merged.postinst operates on outer directories with DPKG_ROOT
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1050755: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050755
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: usrmerge
Version: 36
Severity: serious
Tags: patch
Hi,
the recent changes to usr-is-merged.postinst broke DPKG_ROOT support:
Setting up usr-is-merged (36) ...
removed '/lib64'
/tmp/mmdebstrap.P6Rv45i7Hi/var/lib/dpkg/info/usr-is-merged.postinst: 16: rmdir:
not found
dpkg: error processing package usr-is-merged (--configure):
installed usr-is-merged package post-installation script subprocess returned
error exit status 127
Errors were encountered while processing:
usr-is-merged
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: setup failed: E: command failed:
/usr/share/mmdebstrap/hooks/merged-usr/essential00.sh
I: main() received signal PIPE: waiting for setup...
I: removing tempdir /tmp/mmdebstrap.P6Rv45i7Hi...
Can't exec "rm": No such file or directory at /usr/bin/mmdebstrap line 6232.
E: rm failed: -1
Since usr-is-merged.postinst fails to respect $DPKG_ROOT it will operate
on the directory hierarchy outside the chroot and remove several rather
important directories.
I'm filing this with severity series because it breaks the mmdebstrap
autopkgtest and should thus be prevented from transitioning to testing until
fixed. The following patch fixes the problem:
diff -Nru usrmerge-36/debian/usr-is-merged.postinst
usrmerge-36+nmu1/debian/usr-is-merged.postinst
--- usrmerge-36/debian/usr-is-merged.postinst 2023-08-27 13:33:27.000000000
+0200
+++ usrmerge-36+nmu1/debian/usr-is-merged.postinst 2023-08-29
01:14:03.000000000 +0200
@@ -9,11 +9,11 @@
# so clean up the unused (and unowned) ones
local arch_directories="/lib64 /lib32 /libo32 /libx32"
for dir in $arch_directories; do
- [ -e "$dir" ] || continue
+ [ -e "$DPKG_ROOT$dir" ] || continue
if ! dpkg-query -S $dir >/dev/null 2>&1; then
- rm -v $dir
- if [ -e /usr$dir ] && ! dpkg-query -S /usr$dir >/dev/null 2>&1 ; then
- rmdir --ignore-fail-on-non-empty -v /usr$dir
+ rm -v "$DPKG_ROOT$dir"
+ if [ -e "$DPKG_ROOT/usr$dir" ] && ! dpkg-query -S /usr$dir >/dev/null
2>&1 ; then
+ rmdir --ignore-fail-on-non-empty -v "$DPKG_ROOT/usr$dir"
fi
fi
done
--- End Message ---
--- Begin Message ---
Source: usrmerge
Source-Version: 37
Done: Marco d'Itri <m...@linux.it>
We believe that the bug you reported is fixed in the latest version of
usrmerge, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1050...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Marco d'Itri <m...@linux.it> (supplier of updated usrmerge package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 29 Aug 2023 02:14:10 +0200
Source: usrmerge
Architecture: source
Version: 37
Distribution: unstable
Urgency: medium
Maintainer: Marco d'Itri <m...@linux.it>
Changed-By: Marco d'Itri <m...@linux.it>
Closes: 1050755
Changes:
usrmerge (37) unstable; urgency=medium
.
[ Johannes Schauer Marin Rodrigues ]
* Use $DPKG_ROOT in usr-is-merged.postinst. (Closes: #1050755)
Checksums-Sha1:
d7e420993beb2d673e4b83145febd88d3d7fb88f 981 usrmerge_37.dsc
0d778d2bfcacc1ae73195f13243b925dd71df0fc 15112 usrmerge_37.tar.xz
64f2c0d943910e238a37d3941e711781192f63bc 5462 usrmerge_37_amd64.buildinfo
Checksums-Sha256:
a285d4aac1fca5dfbca44cad7b39cbfa883af229106f09742d9f5bca61cd3b50 981
usrmerge_37.dsc
0de88e6bb765c78bbe6cf6b771ef9f6cab92b72bf95d7910c5d473bfbc7955c7 15112
usrmerge_37.tar.xz
7ef6e1f35560482fd10734390a4fc7c920d38818f8e2edd4e67468cf2db8f79e 5462
usrmerge_37_amd64.buildinfo
Files:
b3f5b1ec69c6613bec80c2da08343f32 981 admin optional usrmerge_37.dsc
4a65b42eb4ea8ae765d8f9433ab73d9f 15112 admin optional usrmerge_37.tar.xz
cdf8f168d9386d51313c2e64bf9ae15b 5462 admin optional
usrmerge_37_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iHUEARYIAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCZO046QAKCRDLPsM64d7X
gRuAAP4ww2H6wZCRn9yEe90tMURMm5jWLIXxNztS0EH7DyJRLwD/SWo6+V3dCWp4
JbuvJOfheBhR8DRdSBXLbTQ0xIIePAc=
=YeRJ
-----END PGP SIGNATURE-----
--- End Message ---