Package: debhelper
Version: 11.5.1
Severity: normal
Hi,
I just noticed that systemd.postinst gained the following code:
===============================================================================
# Automatically added by dh_installsystemduser/11.5.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" =
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper --user unmask 'systemd-tmpfiles-setup.service'
>/dev/null || true
# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet --user was-enabled
'systemd-tmpfiles-setup.service' ; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper --user enable
'systemd-tmpfiles-setup.service' >/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need
to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper --user update-state
'systemd-tmpfiles-setup.service' >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by dh_installsystemduser/11.5.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" =
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper --user unmask 'systemd-tmpfiles-clean.timer'
>/dev/null || true
# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet --user was-enabled
'systemd-tmpfiles-clean.timer' ; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper --user enable 'systemd-tmpfiles-clean.timer'
>/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need
to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper --user update-state
'systemd-tmpfiles-clean.timer' >/dev/null || true
fi
fi
# End automatically added section
===============================================================================
This is unexpected as systemd uses compat level 10 and according to the
documentation, dh_installsystemduser should only be added automatically
in compat level 12 or above.
Regards,
Michael
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages debhelper depends on:
ii autotools-dev 20180224.1
ii dh-autoreconf 19
ii dh-strip-nondeterminism 0.044-1
ii dpkg 1.19.2+test3
ii dpkg-dev 1.19.2
ii dwz 0.12-2
ii file 1:5.34-2
ii libdpkg-perl 1.19.2
ii man-db 2.8.4-3
ii perl 5.28.0-3
ii po-debconf 1.0.20
debhelper recommends no packages.
Versions of packages debhelper suggests:
ii dh-make 2.201801
-- no debconf information