Hi,

Quoting Johannes Schauer Marin Rodrigues (2021-09-24 07:37:40)
> Quoting Johannes Schauer Marin Rodrigues (2021-08-24 09:00:09)
> > support for DPKG_ROOT is now present in packages like dpkg, glibc, debhelper
> > and debianutils. Since the bookworm development just started, I wanted to
> > send a friendly ping to this bug. We now have set up a script on salsaci 
> > that
> > shows how we can create a bit-by-bit identical chroot using DPKG_ROOT:
> > 
> > https://salsa.debian.org/helmutg/dpkg-root-demo/-/jobs
> > 
> > Please consider applying the patch Helmut proposed in the initial report.
> 
> would you mind me doing an NMU of coreutils with the suggested changes in
> Helmut's original mail?

I just uploaded to delayed/10 with the attached debdiff.

Thanks!

cheers, josch
diff -Nru coreutils-8.32/debian/changelog coreutils-8.32/debian/changelog
--- coreutils-8.32/debian/changelog	2020-09-22 14:17:17.000000000 +0200
+++ coreutils-8.32/debian/changelog	2021-10-23 21:29:16.000000000 +0200
@@ -1,3 +1,13 @@
+coreutils (8.32-4.1) unstable; urgency=medium
+
+  [ Johannes Schauer Marin Rodrigues ]
+  * Non-maintainer upload.
+
+  [ Helmut Grohne ]
+  * Support DPKG_ROOT in maintainer scripts. (Closes: #983565)
+
+ -- Johannes Schauer Marin Rodrigues <[email protected]>  Sat, 23 Oct 2021 21:29:16 +0200
+
 coreutils (8.32-4) unstable; urgency=low
 
   * Fix FTBFS on ARM64. (Closes: #966449)
diff -Nru coreutils-8.32/debian/coreutils.postinst coreutils-8.32/debian/coreutils.postinst
--- coreutils-8.32/debian/coreutils.postinst	2016-01-15 20:47:18.000000000 +0100
+++ coreutils-8.32/debian/coreutils.postinst	2021-10-23 21:28:23.000000000 +0200
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-if [ "$1" = 'configure' -a ! -e '/usr/bin/touch' ]; then
-  ln -s /bin/touch /usr/bin/touch
+if [ "$1" = 'configure' -a ! -e "$DPKG_ROOT/usr/bin/touch" ]; then
+  ln -s /bin/touch "$DPKG_ROOT/usr/bin/touch"
 fi
 
 #DEBHELPER#
diff -Nru coreutils-8.32/debian/coreutils.postrm coreutils-8.32/debian/coreutils.postrm
--- coreutils-8.32/debian/coreutils.postrm	2016-01-15 18:11:14.000000000 +0100
+++ coreutils-8.32/debian/coreutils.postrm	2021-10-23 21:28:23.000000000 +0200
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-if [ "$1" = 'remove' -a -L '/usr/bin/touch' ]; then
-  rm /usr/bin/touch
+if [ "$1" = 'remove' -a -L "$DPKG_ROOT/usr/bin/touch" ]; then
+  rm "$DPKG_ROOT/usr/bin/touch"
 fi
 
 #DEBHELPER#

Attachment: signature.asc
Description: signature

Reply via email to