Bug#748845: lintian: Please add a check for packages that ship a .service file but are not calling init-system-helpers

Laurent Bigonville bigon at debian.org
Wed May 21 12:52:23 BST 2014


Package: lintian
Version: 2.5.22.1
Severity: normal

Hi,

lintian should generate a warning/error when a package is shipping a
systemd service file but is not calling the init-system-helpers scripts,
especially for the services containing an [Install] section.

If a package is not calling these helpers and if a .service file is
explicitly enabled by the user, a dangling symlink might stay on disk
when the packages is purged/removed.

dh_systemd_{start,enable} already have --no-{start,enable} flags to
prevent anything from happening on pkg installation while still cleaning
up on purge/remove.

Cheers,

Laurent Bigonville

http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2014-May/002163.html

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils                       2.24.51.20140425-1
ii  bzip2                          1.0.6-5
ii  diffstat                       1.58-1
ii  file                           1:5.18-1
ii  gettext                        0.18.3.2-1
ii  hardening-includes             2.5
ii  intltool-debian                0.35.0+20060710.1
ii  libapt-pkg-perl                0.1.29+b1
ii  libarchive-zip-perl            1.37-2
ii  libclass-accessor-perl         0.34-1
ii  libclone-perl                  0.37-1
ii  libdpkg-perl                   1.17.9
ii  libemail-valid-perl            1.193-1
ii  libfile-basedir-perl           0.03-1
ii  libipc-run-perl                0.92-1
ii  liblist-moreutils-perl         0.33-2
ii  libparse-debianchangelog-perl  1.2.0-1
ii  libtext-levenshtein-perl       0.09-1
ii  libtimedate-perl               2.3000-2
ii  liburi-perl                    1.60-1
ii  man-db                         2.6.7.1-1
ii  patchutils                     0.3.3-1
ii  perl [libdigest-sha-perl]      5.18.2-4
ii  t1utils                        1.37-2

Versions of packages lintian recommends:
pn  libperlio-gzip-perl             <none>
ii  perl-modules [libautodie-perl]  5.18.2-4

Versions of packages lintian suggests:
pn  binutils-multiarch     <none>
ii  dpkg-dev               1.17.9
ii  libhtml-parser-perl    3.71-1+b1
ii  libtext-template-perl  1.46-1
ii  libyaml-perl           0.90-1
ii  xz-utils               5.1.1alpha+20120614-2

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list