Your message dated Wed, 11 Mar 2026 12:33:48 +0000
with message-id <[email protected]>
and subject line Bug#1130328: fixed in ucf 3.0053
has caused the Debian Bug report #1130328,
regarding please support $DPKG_ROOT in maintainer scripts
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 [email protected]
immediately.)


-- 
1130328: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1130328
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ucf
Version: 3.0052
Severity: wishlist
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: hurd-amd64 hurd-i386

Hi,

to create a Debian GNU/Hurd chroot from Debian GNU/Linux, so called
"chrootless" or --force-script-chrootless (the dpkg option) has to be used
because Hurd binaries cannot be run on Linux. Since systemd cannot work on
GNU/Hurd, sysvinit is the default init system there. To use sysvinit
effectively, the package orphan-sysvinit-scripts is a desirable installation
candidate. The package orphan-sysvinit-scripts depends on ucf. Installing ucf
with --force-script-chrootless currently fails because its preinst and
postinst maintainer scripts do not respect the $DPKG_ROOT environment
variable. The patch at the end of this email fixes this. I also opened a
MR on salsa for your convenience:
https://salsa.debian.org/debian/ucf/-/merge_requests/4

The changes have been verified to have the desired results in the salsa CI
pipeline of this merge request for the dpkg-root-demo:
https://salsa.debian.org/helmutg/dpkg-root-demo/-/merge_requests/7

Thanks!

cheers, josch

diff --git a/debian/ucf.postinst b/debian/ucf.postinst
index 3fd1d87..9f4c062 100755
--- a/debian/ucf.postinst
+++ b/debian/ucf.postinst
@@ -4,8 +4,8 @@ set -e
 
 case "$1" in
   configure)
-    touch /var/lib/ucf/hashfile
-    touch /var/lib/ucf/registry
+    touch "$DPKG_ROOT/var/lib/ucf/hashfile"
+    touch "$DPKG_ROOT/var/lib/ucf/registry"
     ;;
   abort-upgrade) ;;
   abort-remove) ;;
diff --git a/debian/ucf.preinst b/debian/ucf.preinst
index 8aa02a6..66b7a41 100755
--- a/debian/ucf.preinst
+++ b/debian/ucf.preinst
@@ -2,7 +2,7 @@
 
 set -e
 
-statedir='/var/lib/ucf';
+statedir="${DPKG_ROOT}/var/lib/ucf";
 
 case "$1" in
   install)

--- End Message ---
--- Begin Message ---
Source: ucf
Source-Version: 3.0053
Done: Mark Hindley <[email protected]>

We believe that the bug you reported is fixed in the latest version of
ucf, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mark Hindley <[email protected]> (supplier of updated ucf 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 11 Mar 2026 12:13:35 +0000
Source: ucf
Architecture: source
Version: 3.0053
Distribution: unstable
Urgency: medium
Maintainer: Mark Hindley <[email protected]>
Changed-By: Mark Hindley <[email protected]>
Closes: 1130328
Changes:
 ucf (3.0053) unstable; urgency=medium
 .
   [ Mark Hindley ]
   * d/copyright: remove old FSF address (lintian).
   * d/control: bump Standards Version (no changes).
   * d/control: drop 'R³: no' now it is the default.
 .
   [ Johannes Schauer Marin Rodrigues ]
   * Support $DPKG_ROOT in maintainer scripts (Closes: #1130328).
Checksums-Sha1:
 2868c3d6cc6b1ce7606b00b6b67abec11629de39 1512 ucf_3.0053.dsc
 a9f6b019200aa583a05942cab43e70a24cdc7196 71532 ucf_3.0053.tar.xz
 fbb79d00bea75a0e293b9db232600420ed6cc10c 5354 ucf_3.0053_amd64.buildinfo
Checksums-Sha256:
 fd21caa907dea5748255678817b002f6ffe0c19ee4c25897ff522791c3079a65 1512 
ucf_3.0053.dsc
 070b252a17f80a43f831798686b413286c9f35e0a0b6582f81ef1856f2e7dd23 71532 
ucf_3.0053.tar.xz
 2dbfa64efab5ccc529158c0266061d9349ad820f14539e88de17acabd6c99281 5354 
ucf_3.0053_amd64.buildinfo
Files:
 9feaa7f3cc5c2e38e6a9f7860421c806 1512 utils standard ucf_3.0053.dsc
 7d2e4915b6627e3b89d36385c9c727ed 71532 utils standard ucf_3.0053.tar.xz
 d709caca58e1a568d860748cfc87dc2d 5354 utils standard ucf_3.0053_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUGwVpCsK9aCoVCPu0opFvzKH1kkFAmmxXQ0ACgkQ0opFvzKH
1kkAsRAAqUBMLbS1SA/nhDoK+foce5Pl4i3FuoAvbcSLmreh0KbXnKk6hSGvsgPu
A7XZrpZaAgYXidsegydw5E7u77A55vij5FDuS3WbSSD1oR+H04NpUyDjmPdic27F
HIFHpHA/uxNnCC+U3fIywUe1V/FCOJBEkybDCASHT1wujqDBbrE7X064qGi+C98E
bYB0b8qfDihnwxhUavHk20/kuUQu6oj+bOSAneeN+/sMbbE8yzIlbP6rMIaJX1y1
I2cuusNSKgADdeM8/HYU6HOu+o/pMRpbUVQ/EIiE/VwA+GWjxHCQSxREUAFE2Zvg
IwIYxVUY5ZDbgk0MzvLCz76SCxf5ABQq2SE8iq2+95H7DVC2678oXGpcnYaAUNA7
6JQoz0Ab1rV4oiSrqVoE6jeJ8mErSDvH73dAkbA3aQGSq7Hix6Ha2nFglmbE/3Cs
OGfN6SHW0QReDLt2LtzGgUHSSJXzc1jPguguVEf7iu83eEiuI4AGEPtgrIXUlRtY
+n8DicbtJep5CjXY996oKvafJpmvqES9IJnz8QY4Jx174O04EC39kBwSKT/hCBJM
6sep4pwDzDKlLk6+IJrhcUbvCnu58hZXbTDwULJwjTUduaHtxwbsAiFeaayW1Knq
A8TN/xab/Qm4Pf+ZymDqO9VELGKehzAaMOIVk/eAItULHhQpIMA=
=SWpK
-----END PGP SIGNATURE-----

Attachment: pgp0we89gks7Z.pgp
Description: PGP signature


--- End Message ---

Reply via email to