Your message dated Sun, 24 Oct 2021 12:48:23 +0000
with message-id <[email protected]>
and subject line Bug#983425: fixed in debconf 1.5.78
has caused the Debian Bug report #983425,
regarding debconf: please add support for 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 [email protected]
immediately.)
--
983425: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983425
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debconf
Version: 1.5.74
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: dpkg-root-support
Hi,
since dpkg 1.18.5, dpkg sets the variable DPKG_ROOT when invoking
maintainer scripts. Usually that variable is empty but when calling dpkg
with --root and --force-script-chrootless, dpkg will set DPKG_ROOT to
the new root directory. In that mode, maintainer scripts are called
without chroot(1) around them, and thus have to be able to possibly
operate on the path from DPKG_ROOT instead of working on /. This is
useful for bootstrapping, creating chroots for foreign architectures
where utilities from inside the chroot cannot be executed, avoiding
dependency loops between postinst scripts, installation without
requiring superuser privileges and for creating installations that do
not even contain dpkg. See
https://wiki.debian.org/Teams/Dpkg/Spec/InstallBootstrap for more
information.
Currently, missing support for DPKG_ROOT in debconf is the single
biggest blocker in making all Essential:yes packages successfully
install with --root and --force-script-chrootless. Me and Helmut Grohne
happened to work on adding DPKG_ROOT support to debconf at the same
time, so now we have two patches which both work.
helmut:
https://salsa.debian.org/josch/debconf/-/commit/4336c589fd6cb25e20f1753986bc86a74b668846
josch:
https://salsa.debian.org/josch/debconf/-/commit/b84d965da3c56f33fed7e4f0899bc21c34578fcd
Could you review either and give us feedback so that we can prepare a
patch that is fit for inclusion into debconf?
To try it out, you have to install the changed debconf package directly
on your machine and *not* into the chroot, because in chrootless mode,
the maintainer script will call the tools as they are installed on the
machine running it. You can see how it currently fails by running:
mmdebstrap --mode=chrootless --variant=custom --include=debconf unstable
/dev/null
[...]
Setting up debconf (1.5.74) ...
debconf: DbDriver "passwords" warning: could not open
/var/cache/debconf/passwords.dat: Permission denied
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new:
Permission denied
dpkg: error processing package debconf (--configure):
installed debconf package post-installation script subprocess returned error
exit status 1
Errors were encountered while processing:
debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)
However, with the changes from above commits, the command will succeed.
Thanks!
cheers, josch
--- End Message ---
--- Begin Message ---
Source: debconf
Source-Version: 1.5.78
Done: Colin Watson <[email protected]>
We believe that the bug you reported is fixed in the latest version of
debconf, 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.
Colin Watson <[email protected]> (supplier of updated debconf 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: Sun, 24 Oct 2021 13:28:56 +0100
Source: debconf
Architecture: source
Version: 1.5.78
Distribution: unstable
Urgency: medium
Maintainer: Debconf Developers <[email protected]>
Changed-By: Colin Watson <[email protected]>
Closes: 587380 983425 989567
Changes:
debconf (1.5.78) unstable; urgency=medium
.
[ Colin Watson ]
* debconf-set-selections: Disable non-fatal warnings when loading database
in --checkonly mode (closes: #587380).
.
[ Helmut Grohne ]
* delete debconf postinst script and transition_db.pl as they only handle
upgrades from pre-etch (closes: #989567)
.
[ Johannes Schauer Marin Rodrigues ]
* add support for DPKG_ROOT set in maintainer scripts (closes: #983425)
Checksums-Sha1:
3e58bc8d15975383e34dbe1897b91e667216b011 2082 debconf_1.5.78.dsc
49c7231fdbce8174c203d5a06bd5ec72669d716b 568536 debconf_1.5.78.tar.xz
Checksums-Sha256:
2d14b0dfa135a95f069f7bc05c8075f71ad9994aa18d1849ebf3baab50bbc54f 2082
debconf_1.5.78.dsc
4f543928e8d38df8059db0680882910c487f84b007ef9b081c845f6e51098764 568536
debconf_1.5.78.tar.xz
Files:
68e784540ac5b4389de96d8b7ecbee79 2082 admin optional debconf_1.5.78.dsc
db348d6df9313747969d3335305c5772 568536 admin optional debconf_1.5.78.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmF1UbAACgkQOTWH2X2G
UAsJmg/+NJttrHHyilgfeanL3oN6UZBjs5zPwubpIu6ETU8qPDl0QEBwOmEDAbt1
ZhgIwazXZq88q2aEUy660OPefP3Z4gyO1IYXqH5uKLj1q21U0lXo3B19yoCNYMln
Imxl75xNym+1Gh6QoW1gM36pojhpSMDf2Wfsbnu4uu1UEPwIrg6naXF77BRjh2Lf
e9mTMobgc2VRrSXYYBFL4mAWvUyuuj6AIPOWEjk6gYMEO92NyqLHSJl2sECcxuto
fmK2gwl0cltBazE11ZyDV30r6U/qWT/TvN++G7qEXxorWNtJz2JB3JXRXgmM8kC5
Bkt88kG6vgc7fl13ktPMWjXLG/vHnocIioXDIYe+Zee1dCVYbRGXt5c6AoAQzuPO
e0RFVBOY5/L/BwdQAIi++lRLNKXyKFTyjEuiHOWBWiglZDn0gX7L7CwRyTjcIyOm
WWXfKLarRIho0Scx7lT38kZKmAWw8LBiwG/tOA+eE2j/1yiINhSZcGNmSkC7GopQ
JPTVMcBA/KY9H4Fnrd5yxaS3KWeLoZI38xJpNr3w8rqVpB6weKWW/gAXsoPMBTNw
Wpz2wtQnq2Kw3f5fFYmtxP1HfnrOAPKqMhtaAqiV6F5WV7WMN4EwfQcGP0EScm3y
/MzUJuEYUzS56+5Tzc2bAEi8pgB0sAHGNqrAK49ri/iRrFxsB+E=
=GG5l
-----END PGP SIGNATURE-----
--- End Message ---