Your message dated Tue, 02 Nov 2021 20:26:16 +0000
with message-id <[email protected]>
and subject line Bug#992578: fixed in shadow 1:4.8.1-1.1
has caused the Debian Bug report #992578,
regarding login: 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.)
--
992578: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992578
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: login
Version: 1:4.8.1-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: dpkg-root-support
Control: block -1 by 989712
Hi,
We're working on a way to install packages into a chroot without
actually using the chroot system call. A consequence of doing so is that
maintainer scripts are run outside the chroot and are supposed to still
operate on the chroot whose location is communicated via the DPKG_ROOT
environment variable.
We have created a salsaci job which patches 13 source packages,
including src:shadow and shows that a chroot-tarball created that way is
bit-by-bit identical to a chroot-tarball created the normal way:
https://salsa.debian.org/helmutg/dpkg-root-demo/-/jobs
The necessary changes to src:shadow can be found in bug #989712 as well
as in the patch at the end of this mail.
Thanks!
cheers, josch
--- a/debian/login.postinst
+++ b/debian/login.postinst
@@ -4,23 +4,23 @@
if [ "$1" = "configure" ]; then
# Install faillog during initial installs only
- if [ "$2" = "" ] && [ ! -f /var/log/faillog ] ; then
- touch /var/log/faillog
- chown root:root /var/log/faillog
- chmod 644 /var/log/faillog
+ if [ "$2" = "" ] && [ ! -f "$DPKG_ROOT/var/log/faillog" ] ; then
+ touch "$DPKG_ROOT/var/log/faillog"
+ chown 0:0 "$DPKG_ROOT/var/log/faillog"
+ chmod 644 "$DPKG_ROOT/var/log/faillog"
fi
# Create subuid/subgid if missing
- if [ ! -e /etc/subuid ]; then
- touch /etc/subuid
- chown root:root /etc/subuid
- chmod 644 /etc/subuid
+ if [ ! -e "$DPKG_ROOT/etc/subuid" ]; then
+ touch "$DPKG_ROOT/etc/subuid"
+ chown 0:0 "$DPKG_ROOT/etc/subuid"
+ chmod 644 "$DPKG_ROOT/etc/subuid"
fi
- if [ ! -e /etc/subgid ]; then
- touch /etc/subgid
- chown root:root /etc/subgid
- chmod 644 /etc/subgid
+ if [ ! -e "$DPKG_ROOT/etc/subgid" ]; then
+ touch "$DPKG_ROOT/etc/subgid"
+ chown 0:0 "$DPKG_ROOT/etc/subgid"
+ chmod 644 "$DPKG_ROOT/etc/subgid"
fi
fi
--- End Message ---
--- Begin Message ---
Source: shadow
Source-Version: 1:4.8.1-1.1
Done: Johannes Schauer Marin Rodrigues <[email protected]>
We believe that the bug you reported is fixed in the latest version of
shadow, 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.
Johannes Schauer Marin Rodrigues <[email protected]> (supplier of updated shadow
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: Sat, 23 Oct 2021 21:04:57 +0200
Source: shadow
Architecture: source
Version: 1:4.8.1-1.1
Distribution: unstable
Urgency: medium
Maintainer: Shadow package maintainers
<[email protected]>
Changed-By: Johannes Schauer Marin Rodrigues <[email protected]>
Closes: 989712 992578
Changes:
shadow (1:4.8.1-1.1) unstable; urgency=medium
.
[ Johannes Schauer Marin Rodrigues ]
* Non-maintainer upload.
.
[ Niels Thykier ]
* Remove obsolete login.preinst
* Remove obsolete code from passwd maintscripts
.
[ Helmut Grohne ]
* logoutd is gone since at least buster (closes: #989712)
* Delete duplicate subuid/subgid creation.
* login.postinstd support for DPKG_ROOT (closes: #992578)
Checksums-Sha1:
2491264464bdc2e6eec7122753f6723f8eed5420 2223 shadow_4.8.1-1.1.dsc
d1b231f725d433640cc1c11de4e9a9821515b7e2 74108 shadow_4.8.1-1.1.debian.tar.xz
7aa7d260ed62ec53b69f224342848e6581e2f238 7953 shadow_4.8.1-1.1_amd64.buildinfo
Checksums-Sha256:
026ac70bb97f30a028919d5425c1a21118c1f060080a460b3e2ab436e9410c88 2223
shadow_4.8.1-1.1.dsc
e72563343c57f19a86818ce5b8514b44f64d13b0a31354ffc21c78f5dffc596e 74108
shadow_4.8.1-1.1.debian.tar.xz
02f40d6408128d721a8c5ce16aa61c7f94d552c40e3837111c1a36c0274da4c8 7953
shadow_4.8.1-1.1_amd64.buildinfo
Files:
1941af887f7d6fbcd1666e16e4e07c32 2223 admin required shadow_4.8.1-1.1.dsc
220ae8871a89302e58ec8335bc6b1858 74108 admin required
shadow_4.8.1-1.1.debian.tar.xz
1ee0bfdb48814980066c0abf8fb2e2d8 7953 admin required
shadow_4.8.1-1.1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmF0X54ACgkQ8sulx4+9
g+G2cg//QUGnQlRRK3Pu0atza+ZNmPvkac0HnOL8QbpOJf92HlJmmMkPyZ9zlM5J
/PFDkWOXVPtdZ+tFQ69zswP6RbNJNgYvCY/nasrioGw2WeNfOViz1yOYBbzmRk18
47EkclWB0wHy12iHwkDw8Wp43cKC9RyiF+/M/zbGmDFawKZ9e45y7aOU1wvGg89X
9oUuKYijKA3GYGhzgHpHfOKDQdgHq7aW/VdzK9ooimbs5G+Y0OuT+BCkgCh3Pnrg
eEWLtJQOze9OnAhujHhVi476cBUmg/kn22GWZ+4SFYAW9hYRZm5FiwlCH5G5sHSL
O460uv1S5vbGdoT2dZxFoMjDQ7YzUmWAIHqXhO5zlZmoJljAOIu2oWyT06ScKS0o
zc9+XGWy2cL/Mu26F6ettFNkqsJYdcp0DjpJCAe3dFhPaOvu9zIpx4OB5X/J/tbD
IJ4mf+L1dbpdeo0b3rW8U26bIeV/tT2XFl5OoN+PUrQsBxZ1SGlVOMzMcrLuAPTA
DHtjW7rxwqrqZJNIg0Url9UUWaEY0EWDISIrZhUL5jOOTv4QOd+1On9fye5PKoq5
w3T1bNdMhZCO2ih7qMT/6M5yPsPRL0t9RrqhGvGAF3PpuzqHhCsVxVOrD1HNC8V5
Jah6H55P/u1Lk/fYtZvGdVyCfdp7J1z9QJigGsdE+NOPdxj6/dg=
=GspR
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-shadow-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-shadow-devel