Debian Bug report logs - #717595
lintian: Please check for update-rc.d "start" and "stop" argument usage

version graph

Package: lintian; Maintainer for lintian is Debian Lintian Maintainers <[email protected]>; Source for lintian is src:lintian (PTS, buildd, popcon).

Reported by: Roger Leigh <[email protected]>

Date: Mon, 22 Jul 2013 20:12:02 UTC

Severity: wishlist

Merged with 733156

Found in version lintian/2.5.14

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#717595; Package lintian. (Mon, 22 Jul 2013 20:12:06 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Lintian Maintainers <[email protected]>. (Mon, 22 Jul 2013 20:12:06 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Roger Leigh <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: lintian: Please check for update-rc.d "start" and "stop" argument usage
Date: Mon, 22 Jul 2013 21:09:42 +0100
Package: lintian
Version: 2.5.14
Severity: normal

Hi,

As you're undoubtedly aware, we've been using LSB headers in place of
static sequence numbers for a good couple of releases now.  With
wheezy, we migrated completely away from static ordering to dynamic
ordering.  This means that the "start nn n n" and "stop nn n n"
parameters are now essentially pointless--update-rc.d has long
ignored them when dependency-based boot was in use.  For wheezy in
practice it will always ignore them since dependency-based boot is
required.  In jessie we removed start and stop entirely; they still
exist internally, but are just aliases for "defaults", and issue a
warning if used; all runlevel information is obtained from the LSB
headers.

It would be really great if lintian could check for and warn if the
a package calls update-rc.d in its maintainer scripts with "start"
or "stop" arguments.  Likewise for dh_installinit which passes
start and stop arguments to update-rc.d.

Regular expressions which could be used:

  update-rc.d.*[[:space:]]start[[:space:]]
  update-rc.d.*[[:space:]]stop[[:space:]]

  example packages: rsync, nfs-common

This doesn't handle quoting of start or stop in the scripts, but I've
not seen any in practice on my system.

And in debian/rules:

  dh_installinit.*--.*[[:space:]]start[[:space:]]
  dh_installinit.*--.*[[:space:]]start[[:space:]]

  example package: cron rpcbind

I can provide some explanatory text if needed.  Essentially, the
update-rc.d "start" and "stop" arguments are obsoleted and replaced by
the "defaults" argument.  It is no longer possible to specify start
and stop runlevel and sequence numbers; these must be provided by the
LSB header of every init script.  If start and/or stop arguments are
provided, these now act as if "defaults" had been used instead, and
the extra runlevel and sequence information is discarded, and a
warning will be issued.

If there are checks for LSB init script headers, and it's not already
a hard requirement to provide an LSB header, this is a fatal error,
since update-rc.d requires all scripts to have a header.



Many thanks,
Roger

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (550, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils                       2.23.52.20130620-1
ii  bzip2                          1.0.6-4
ii  diffstat                       1.55-3
ii  file                           1:5.14-2
ii  gettext                        0.18.3-1
ii  hardening-includes             2.3
ii  intltool-debian                0.35.0+20060710.1
ii  libapt-pkg-perl                0.1.29
ii  libarchive-zip-perl            1.30-7
ii  libclass-accessor-perl         0.34-1
ii  libclone-perl                  0.34-1
ii  libdigest-sha-perl             5.85-1
ii  libdpkg-perl                   1.16.10
ii  libemail-valid-perl            0.190-1
ii  libfile-basedir-perl           0.03-1
ii  libipc-run-perl                0.92-1
ii  liblist-moreutils-perl         0.33-1+b1
ii  libparse-debianchangelog-perl  1.2.0-1
ii  libtext-levenshtein-perl       0.06~01-2
ii  libtimedate-perl               1.2000-1
ii  liburi-perl                    1.60-1
ii  man-db                         2.6.5-2
ii  patchutils                     0.3.2-2
ii  perl [libdigest-sha-perl]      5.14.2-21
ii  t1utils                        1.37-2

Versions of packages lintian recommends:
ii  libautodie-perl                 2.20-1
ii  libperlio-gzip-perl             0.18-1+b2
ii  perl-modules [libautodie-perl]  5.14.2-21

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

-- no debconf information



Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#717595; Package lintian. (Tue, 17 Dec 2013 09:15:04 GMT) (full text, mbox, link).


Acknowledgement sent to Bastien ROUCARIES <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Tue, 17 Dec 2013 09:15:04 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Bastien ROUCARIES <[email protected]>
To: [email protected], [email protected]
Subject: Please check for update-rc.d "start" and "stop" argument usage
Date: Tue, 17 Dec 2013 10:10:58 +0100
control: tags -1 + moreinfo


>It would be really great if lintian could check for and warn if the
>a package calls update-rc.d in its maintainer scripts with "start"
>or "stop" arguments.  Likewise for dh_installinit which passes
>start and stop arguments to update-rc.d.

>Regular expressions which could be used:

>  update-rc.d.*[[:space:]]start[[:space:]]
>  update-rc.d.*[[:space:]]stop[[:space:]]

>  example packages: rsync, nfs-common

>This doesn't handle quoting of start or stop in the scripts, but I've
>not seen any in practice on my system.

>And in debian/rules:

>  dh_installinit.*--.*[[:space:]]start[[:space:]]
>  dh_installinit.*--.*[[:space:]]start[[:space:]]

>  example package: cron rpcbind

>I can provide some explanatory text if needed.  Essentially, the
>update-rc.d "start" and "stop" arguments are obsoleted and replaced by
>the "defaults" argument.  It is no longer possible to specify start
>and stop runlevel and sequence numbers; these must be provided by the
>LSB header of every init script.  If start and/or stop arguments are
>provided, these now act as if "defaults" had been used instead, and
>the extra runlevel and sequence information is discarded, and a
>warning will be issued.

I am willing to implement this test but could you please provide a description



Added tag(s) moreinfo. Request was from Bastien ROUCARIES <[email protected]> to [email protected]. (Tue, 17 Dec 2013 09:15:04 GMT) (full text, mbox, link).


Merged 717595 733156 Request was from [email protected] to [email protected]. (Sat, 28 Dec 2013 15:06:13 GMT) (full text, mbox, link).


Severity set to 'wishlist' from 'normal' Request was from Raphael Geissert <[email protected]> to [email protected]. (Tue, 08 Aug 2017 15:36:09 GMT) (full text, mbox, link).


Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#717595; Package lintian. (Sat, 02 Nov 2019 02:45:03 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sat, 02 Nov 2019 02:45:03 GMT) (full text, mbox, link).


Message #21 received at [email protected] (full text, mbox, reply):

From: Paul Wise <[email protected]>
To: [email protected], Bastien ROUCARIES <[email protected]>, [email protected]
Subject: Re: Please check for update-rc.d "start" and "stop" argument usage
Date: Sat, 02 Nov 2019 10:41:18 +0800
[Message part 1 (text/plain, inline)]
Control: tags -1 - moreinfo

Since this problem is still an issue with packages in the archive (like
x11-common), it would be nice to have lintian warn about the issues.

On Tue, 17 Dec 2013 10:10:58 +0100 Bastien ROUCARIES wrote:

> I am willing to implement this test but could you please provide a description

A reasonable description was already provided in the mail:

   The update-rc.d "start" and "stop" arguments are obsoleted and
   replaced by the "defaults" argument.  It is no longer possible to
   specify start and stop runlevel and sequence numbers; these must be
   provided by the LSB header of every init script.  If start and/or
   stop arguments are provided, these now act as if "defaults" had been
   used instead, and the extra runlevel and sequence information is
   discarded, and a warning will be issued.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
[signature.asc (application/pgp-signature, inline)]

Removed tag(s) moreinfo. Request was from Paul Wise <[email protected]> to [email protected]. (Sat, 02 Nov 2019 02:45:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 08:51:37 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.