[Pkg-matrix-maintainers] Bug#1035844: matrix-sydent fails to purge without adduser

Johannes Schauer Marin Rodrigues josch at debian.org
Tue May 16 22:31:16 BST 2023


Hi,

Quoting josch at debian.org (2023-05-10 07:49:26)
> 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.

since time is running short, I am going to NMU matrix-sydent on Thursday with a
delay of 2 days unless you disagree and/or want to do this yourself.

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-matrix-maintainers/attachments/20230516/ddb9798e/attachment-0001.sig>


More information about the Pkg-matrix-maintainers mailing list