Comment 1 for bug 496798

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Assigning the bug to Jos, and leaving a few pointers behind...

 1) Grab the source to Lintian in Lucid (apt-get source lintian, or dget the source .dsc file)
 2) Look at checks/init.d*; Basically, these are getting applied to all scripts installed in /etc/init.d. We're dropping a symlink to /lib/init/upstart-job in /etc/init.d When examining a file, if it's really a symlink to /lib/init/upstart-job, skip over it.

The two tags you're trying to silence are:
 * init.d-script-missing-lsb-section
 * script-in-etc-init.d-not-registered-via-update-rc.d
when the file under scrutiny is a symlink to /lib/init/upstart-job.

Looks like check/init.d, lines 184 and 254.

Something like this might help:

    # Skip init scripts which are symlinks to /lib/init/upstart-job
    if ($filename =~ m,etc/init\.d/, && -l $filename) {
        my $link = readlink($filename);
        next if ($link =~ m,lib/init/upstart-job$,);
    }

Test linitan against a deb file exhibiting the problem.
 wget https://edge.launchpad.net/ubuntu/+archive/primary/+files/eucalyptus-cc_1.6.1~bzr1085-0ubuntu4_amd64.deb
 lintian eucalyptus-cc*.deb

Make your code changes, increment the change log mentioning this bug number (using dch -i), grab the build dependencies (sudo apt-get build-dep lintian), and test your build (debuild). Install (dpkg -i ../*deb). And rerun your lintian test.

When you've got something working, build a source package (debuild -S), and generate a patch (debdiff), and attach to this bug for review.

Thanks!
:-Dustin