Commit c440fa00 authored by Jon Severinsson's avatar Jon Severinsson Committed by Martin Pitt
Browse files

Ensure that systemctl is usable right after being unpacked.

Closes: #753589
parent acf0c574
......@@ -16,6 +16,8 @@ systemd (208-7) UNRELEASED; urgency=medium
when the preinst script is run. (Closes: #755746)
* Add Pre-Depends on systemd to systemd-sysv, to avoid risking that the
sysv-compatible symlinks become dangling on a partial install.
* Ensure that systemctl is usable right after being unpacked, by adding the
required Pre-Depends to systemd and libsystemd-daemon0. (Closes: #753589)
[ Martin Pitt ]
* Rename "api" autopkgtest to "build-login", and stop requiring that
......
......@@ -45,7 +45,8 @@ Section: admin
Priority: optional
Recommends: libpam-systemd
Suggests: systemd-ui
Pre-Depends: ${misc:Pre-Depends}
Pre-Depends: ${shlibs:Pre-Depends},
${misc:Pre-Depends}
Depends: ${shlibs:Depends},
${misc:Depends},
libsystemd-login0 (= ${binary:Version}),
......@@ -158,9 +159,9 @@ Architecture: linux-any
Multi-Arch: same
Section: libs
Priority: optional
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
${misc:Depends}
Pre-Depends: ${shlibs:Depends},
${misc:Pre-Depends}
Depends: ${misc:Depends}
Description: systemd utility library
The sd-daemon library provides a reference implementation of various
APIs for new-style daemons, as implemented by the systemd init system.
......
......@@ -206,6 +206,13 @@ override_dh_installinit:
dh_installinit --name=udevmonitor --no-start
dh_installinit --name=udev-fallback-graphics --no-start
# The SysV compat tools (which are symlinks to systemctl) are
# quasi-essential, so add its dependencies to Pre-Depends
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753589
override_dh_shlibdeps:
dh_shlibdeps -psystemd -- -dPre-Depends -edebian/systemd/bin/systemctl -dDepends
dh_shlibdeps --remaining-packages
override_dh_makeshlibs:
dh_makeshlibs -plibudev1 --add-udeb=libudev1-udeb
dh_makeshlibs --remaining-packages
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment