Package: debianutils
Version: 5.9
Severity: serious
Tags: patch

Hi,

this commit broke $DPKG_ROOT support:

https://salsa.debian.org/debian/debianutils/-/commit/89daf5e2

this in turn breaks the mmdebstrap autopkgtest, thus filing this with severity
serious to prevent transition to testing until this problem is fixed.

The following patch fixes the problem:

--- a/debian/postinst
+++ b/debian/postinst
@@ -14,10 +14,10 @@ ua() {
 
 usrmerge(){
        for p in run-parts tmpfile; do
-               [ -e /usr/bin/$p ] || ln -s /bin/$p /usr/bin/$p
+               [ -e "$DPKG_ROOT/usr/bin/$p" ] || ln -s /bin/$p 
"$DPKG_ROOT/usr/bin/$p"
        done
-       [ -e /usr/sbin/installkernel ] || \
-                               ln -s /sbin/installkernel 
/usr/sbin/installkernel
+       [ -e "$DPKG_ROOT/usr/sbin/installkernel" ] || \
+                               ln -s /sbin/installkernel 
"$DPKG_ROOT/usr/sbin/installkernel"
 }
 
 if test -z "$2" && test ! -f "$DPKG_ROOT/etc/shells"

Reply via email to