<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 10, 2017 at 4:50 AM, Niels Thykier <span dir="ltr"><<a href="mailto:niels@thykier.net" target="_blank">niels@thykier.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> When using tiny rules:<br>
><br>
> %:<br>
>     dh $@<br>
><br>
> and the package contains a systemd unit file, but no sysv init file,<br>
> lintian complains:<br>
><br>
> W: fw-skel: init.d-script-not-marked-as-<wbr>conffile etc/init.d/fw-skel<br>
> E: fw-skel: init.d-script-not-included-in-<wbr>package etc/init.d/fw-skel<br>
><br>
> [...]<br>
<br>
Aha.  I believe that is fixed in compat 11 (still WIP though).  In<br>
compat 11, dh_installinit will ignore systemd files and accordingly not<br>
assume it should do something.<br></blockquote><div><br></div><div>Excellent!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
><br>
> I don't know the best place to document this idea of telling debhelper to<br>
> not bother with the init script if it doesn't exist.<br>
><br>
<br>
<br>
I have added a remark in the dh_installinit manpage about it might make<br>
sense to skip dh_installinit for packages in compat 10 and earlier, when<br>
they only skip systemd services and no sysvinit scripts.<br>
</blockquote><div><br></div><div>Thanks!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The actual text being (review welcome):<br>
<br>
"""<br>
In compat 10 or earlier: If a package only ships a systemd service<br>
file and no sysvinit script is provided, you may want to exclude the<br>
call to dh_installinit for that package (e.g. via B<-N>).  Otherwise,<br>
you may get warnings from lintian about init.d scripts not being<br>
included in the package.<br>
"""<br>
</blockquote><div><br></div><div>Looks good to me.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
You already did. ;)  When dh-systemd was merged into debhelper, all of<br>
its outstanding bugs got reassigned to debhelper.<br> </blockquote><div><br></div><div>Heh. I realized that I wasn't very descriptive with my comment about filing a report against debhelper. I knew the bug was reassigned from dh-systemd to debhelper, but I was thinking more along the lines of filing a bug against dh_installinit to "do the right thing" because of the lintian error and warning. Which is all moot because of your fix for compat 11 mentioned above.<br><br></div><div>So, thanks again!<br><br></div><div>Feel free to close this bug out, or I can.<br><br></div><div>Happy hacking and thanks for your contribution to Debian and free software. :)<br></div><div><br></div><div>-m<br></div></div></div></div>