lintian should not complain about upstart jobs not looking like init scripts
Bug #496798 reported by
Dustin Kirkland
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lintian (Debian) |
Fix Released
|
Unknown
|
|||
lintian (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
Natty |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Binary package hint: lintian
We have converted the eucalyptus init scripts to upstart scripts, and linked their init script locations to /lib/init/
Lintian should not try an enforce
* init.d-
* script-
on such init scripts which are really upstart jobs.
Changed in lintian (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in lintian (Ubuntu): | |
assignee: | nobody → Jos Boumans (jib) |
Changed in lintian (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
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) upstart- job in /etc/init.d When examining a file, if it's really a symlink to /lib/init/ upstart- job, skip over it.
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/
The two tags you're trying to silence are: script- missing- lsb-section in-etc- init.d- not-registered- via-update- rc.d upstart- job.
* init.d-
* script-
when the file under scrutiny is a symlink to /lib/init/
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 $filename) ; upstart- job$,);
if ($filename =~ m,etc/init\.d/, && -l $filename) {
my $link = readlink(
next if ($link =~ m,lib/init/
}
Test linitan against a deb file exhibiting the problem. /edge.launchpad .net/ubuntu/ +archive/ primary/ +files/ eucalyptus- cc_1.6. 1~bzr1085- 0ubuntu4_ amd64.deb
wget https:/
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