Your message dated Sun, 13 Oct 2024 09:32:25 +0000
with message-id <e1szuxd-00f1e6...@fasolo.debian.org>
and subject line Bug#1080078: Removed package(s) from unstable
has caused the Debian Bug report #1035844,
regarding matrix-sydent fails to purge without adduser
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 ow...@bugs.debian.org
immediately.)


-- 
1035844: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035844
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: matrix-sydent
Version: 2.5.1-1.1
Severity: serious
User: jo...@debian.org
Usertags: adduserpurge
Control: tag -1 + patch

Hi,

the packages passwd and adduser are not part of the Essential:yes set.
According to policy §7.2 maintainer scripts cannot assume them being installed
when purging a package.  If one tries to remove this package without adduser
(which depends on passwd) installed, one gets:

--%<-------------------------------------------------------------------------
Purging configuration files for matrix-sydent (2.5.1-1.1) ...
/var/lib/dpkg/info/matrix-sydent.postrm: 28: deluser: not found
dpkg: error processing package matrix-sydent (--purge):
 installed matrix-sydent package post-removal script subprocess returned error 
exit status 127
Errors were encountered while processing:
 matrix-sydent
-->%-------------------------------------------------------------------------

There is ongoing discussion how to handle system users on package
removal, see https://bugs.debian.org/621833

For a discussion about use of adduser during purge, see #1035654.

To work around this problem, at least 125 source packages [codesearch] simply
ignore failures of calling the passwd or adduser tools during purge. The
following patch should fix this package by doing the same:

--%<-------------------------------------------------------------------------
diff -Nru matrix-sydent-2.5.1/debian/postrm matrix-sydent-2.5.1/debian/postrm
--- matrix-sydent-2.5.1/debian/postrm   2021-06-01 21:17:05.000000000 +0200
+++ matrix-sydent-2.5.1/debian/postrm   2023-05-10 07:46:13.000000000 +0200
@@ -25,7 +25,7 @@
                dpkg-statoverride --force-all --quiet --remove "${DIR}"
        done
 
-       getent passwd "${USER}" >/dev/null && deluser "${USER}"
+       getent passwd "${USER}" >/dev/null && deluser "${USER}" || true
 
        rm -f /var/lib/${NAME}/*
        if [ -d /var/lib/${NAME} ]; then
-->%-------------------------------------------------------------------------

If you prefer I can fix this via an NMU.

Thanks!

cheers, josch

[codesearch] 
https://codesearch.debian.net/search?q=del%28user%7Cgroup%29.*%5C%7C%5C%7C+true+path%3Adebian%2F.*%5C.%28pre%7Cpost%29rm%24&literal=0

--- End Message ---
--- Begin Message ---
Version: 2.5.1-1.1+rm

Dear submitter,

as the package matrix-sydent has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1080078

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to