[debhelper-devel] Bug#800043: dh-systemd: add documentation for using dh-systemd

Matt Zagrabelny mzagrabe at d.umn.edu
Mon Apr 10 16:32:05 UTC 2017


On Mon, Apr 10, 2017 at 4:50 AM, Niels Thykier <niels at thykier.net> wrote:

>
> > When using tiny rules:
> >
> > %:
> >     dh $@
> >
> > and the package contains a systemd unit file, but no sysv init file,
> > lintian complains:
> >
> > W: fw-skel: init.d-script-not-marked-as-conffile etc/init.d/fw-skel
> > E: fw-skel: init.d-script-not-included-in-package etc/init.d/fw-skel
> >
> > [...]
>
> Aha.  I believe that is fixed in compat 11 (still WIP though).  In
> compat 11, dh_installinit will ignore systemd files and accordingly not
> assume it should do something.
>

Excellent!


> >
> > I don't know the best place to document this idea of telling debhelper to
> > not bother with the init script if it doesn't exist.
> >
>
>
> I have added a remark in the dh_installinit manpage about it might make
> sense to skip dh_installinit for packages in compat 10 and earlier, when
> they only skip systemd services and no sysvinit scripts.
>

Thanks!


> The actual text being (review welcome):
>
> """
> In compat 10 or earlier: If a package only ships a systemd service
> file and no sysvinit script is provided, you may want to exclude the
> call to dh_installinit for that package (e.g. via B<-N>).  Otherwise,
> you may get warnings from lintian about init.d scripts not being
> included in the package.
> """
>

Looks good to me.


>
> You already did. ;)  When dh-systemd was merged into debhelper, all of
> its outstanding bugs got reassigned to debhelper.
>


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.

So, thanks again!

Feel free to close this bug out, or I can.

Happy hacking and thanks for your contribution to Debian and free software.
:)

-m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170410/5fc35bbc/attachment-0002.html>


More information about the debhelper-devel mailing list