[Pkg-utopia-maintainers] Bug#1099086: might be less verbose in calling adduser
Marc Haber
mh+debian-packages at zugschlus.de
Sun Mar 9 14:20:35 GMT 2025
On Sun, Mar 09, 2025 at 02:13:48PM +0000, Simon McVittie wrote:
>On Sun, 09 Mar 2025 at 09:57:57 +0100, Marc Haber wrote:
>>On Fri, Feb 28, 2025 at 10:41:26AM +0000, Simon McVittie wrote:
>>>On Fri, 28 Feb 2025 at 11:21:01 +0100, Marc Haber wrote:
>>>>I am afraid that our efforts in making adduser easier to use in
>>>>maintainer script have mainly occurred during the trixie
>>>>release, so if you want your maintainer script to also work in
>>>>backports it is probably better to keep it the way it is.
>>>
>>>I don't care about backports for this particular package (backporting
>>>something as central and system'y as dbus seems like a lot of regression
>>>risk for little reward). My concern is that if dbus is installed during
>>>an upgrade from bookworm to trixie, its postinst needs to be guaranteed
>>>to work correctly, even if adduser hasn't necessarily been upgraded to
>>>its trixie version yet.
>>
>>You totaly have a point here that I wasnt aware of. Thanks for
>>pointing this out. Adduser will probably have to pass one release
>>cycle for all those deprecations.
>
>You probably saw that I closed #1099086 with a new upload that now does:
>
> if command -v systemd-sysusers >/dev/null; then
> systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} dbus.conf
> else
> adduser --system --quiet --group "$MESSAGEUSER"
> fi
>
>with a versioned dependency on adduser (>= 3.130) | systemd-tmpfiles.
I didn't look at the code, I knew you were right after reading your
points. I just failed in admitting that in time.
You're being nice to Devuan here, or why are you not moving completely
to systemd-sysusers?
>However, during the forky cycle I think it would
>make sense to bump the versioned dependency to adduser (>= 3.138),
>allowing --quiet to be dropped. Does that make sense to you?
It does, I think. I haven't really thought about those upgrading things,
but I took from this discussion that preinst and postinst scripts are
likely to run with pre-upgrader versions of adduser. That's a real pity
since it will slow down Debian's speed to simplify maintainer scripts
but that's just the way things are.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
More information about the Pkg-utopia-maintainers
mailing list