Rebuild Todo List Switch to systemd-sysusers

2017-12-15 - Bruno Pagani

We are fully embracing the use of systemd-sysusers to create system users and groups required by packages. The filesystem package has been switched to this, now is the turn of every other package having not yet switched.

You mostly need to provide an accurate sysusers.d file (see https://www.freedesktop.org/software/systemd/man/sysusers.d.html) and have you package install it under /usr/lib/sysusers.d/<pkgname>.conf.

You can also (thanks @heftig) do a one liner (in most cases) from the install() function like this (replacing <sysusers.d content> with the actual content):
echo '<sysusers.d content>' |
install -Dm644 /dev/stdin "$pkgdir"/usr/lib/sysusers.d/$pkgname.conf

You can see several examples in the unbound, couchdb or stubby packages. Once done, you might even be able to remove the .install file (we have hook to run systemd-sysusers).

Don’t hesitate to ask me if you’re unsure. ;) Some cases might be tricky.

Generated on orion.archlinux.org with:
grep --files-with-matches useradd /srv/svntogit/repos/*/*/trunk/*
grep --files-with-matches groupadd /srv/svntogit/repos/*/*/trunk/*

There might be false detections, just mark as done then.

P.S.: I initially started by opening issues for some packages while providing the correct sysusers file, so if your package is concerned just look at your assigned issues.

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
24 packages displayed out of 24 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
x86_64 Extra avahi 1:0.9rc2-1 heftig Complete heftig (7 years, 8 months ago)
x86_64 Extra bitlbee Complete polyzen (6 years, 3 months ago)
x86_64 Extra brltty 6.7-5 dvzrv Complete arojas (6 years, 9 months ago)
x86_64 Extra clamav 1.4.3-1 anthraxx, grazzolini Complete anthraxx (7 years, 6 months ago)
x86_64 Extra colord 1.4.8-1 heftig Complete heftig (7 years, 8 months ago)
any Extra deluge 1:2.2.0-1 heftig Complete heftig (7 years, 8 months ago)
x86_64 Extra hylafax Complete arojas (5 years, 9 months ago)
x86_64 Extra kismet 2023_07_R2-5 2023_07_R2-6 juergen, anthraxx Complete anthraxx (5 years, 10 months ago)
x86_64 Extra lightdm 1:1.32.0-6 alucryd Complete alucryd (7 years, 8 months ago)
x86_64 Extra memcached 1.6.39-1 anthraxx, carsme Complete anthraxx (7 years, 7 months ago)
x86_64 Extra mpd 0.24.5-1 anthraxx, dvzrv, blakkheim Complete bisson (7 years, 8 months ago)
any Extra munin sangy Complete arojas (5 years, 9 months ago)
x86_64 Extra ntp 4.2.8.p18-3 spupykin Complete lfleischer (7 years, 3 months ago)
x86_64 Extra nvidia-340xx-utils Complete svenstaro (7 years, 7 months ago)
x86_64 Extra nvidia-utils 580.76.05-4 svenstaro, felixonmars, dbermond, ptr1337 Complete svenstaro (7 years, 7 months ago)
x86_64 Extra pgbouncer 1.22.1-1 anthraxx Complete anthraxx (6 years ago)
x86_64 Extra polkit 126-2 heftig Complete heftig (7 years, 8 months ago)
x86_64 Extra postfix 3.10.4-1 dvzrv, Antiz Complete bisson (7 years, 8 months ago)
x86_64 Extra postgresql 17.5-5 anthraxx Complete anthraxx (6 years, 5 months ago)
x86_64 Core rpcbind 1.2.8-1 andyrtr Complete andyrtr (7 years, 8 months ago)
x86_64 Core shadow 4.18.0-1 grazzolini, dvzrv Complete eschwartz (7 years, 7 months ago)
x86_64 Extra spamassassin 4.0.1-5 alerque Complete bluewind (7 years, 6 months ago)
x86_64 Extra usbmuxd 1.1.1-4 freswa Complete arojas (6 years, 9 months ago)
x86_64 Extra x2goserver Complete andyrtr (7 years, 8 months ago)