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

Matt Zagrabelny mzagrabe at d.umn.edu
Fri Apr 7 15:33:51 UTC 2017


On Fri, Apr 7, 2017 at 8:31 AM, Niels Thykier <niels at thykier.net> wrote:

> Control: tags -1 moreinfo
>
> On Fri, 25 Sep 2015 14:32:28 -0500 Matt Zagrabelny <mzagrabe at d.umn.edu>
> wrote:
> > Package: dh-systemd
> > Version: 1.23
> > Severity: wishlist
> >
> > Dear Maintainer,
> >
> > Please consider adding a documentation file such as HOWTO or USAGE:
> >
> > <<__EOF__
> > A minimalistic debian/rules file would be:
> >
> > ---{begin}---
> > #!/usr/bin/make -f
> >
> > %:
> >     dh $@ --with systemd
> >
> >     override_dh_installinit:
> >         dh_installinit --noscripts
> > ---{end}---
> >
> > You will also need to add dh-systemd to your Build-Depends. Such as:
> >
> > Build-Depends: debhelper (>= 9), dh-systemd
> > __EOF__
> >
> > Thanks for your consideration!
> >
> > -m
> >
> > [...]
>
> Hi Matt,
>
> Thanks for the report.
>
> Things have changed quite a bit in the past 1½-2 years and now
> dh-systemd has been included into debhelper.  It is enabled by default
> in compat 10, so I suspect most of this proposal has been obsoleted by
> migration.
>

Agreed. I just set the compat to 10, updated the cowbuilder base, removed
the build-depends on dh-systemd, and removed the --with systemd option for
dh. It built okay.

There is one point that might be useful - either in the package or in a
wiki.


>
> What is your view?  Are you still missing something from the
> documentation on the systemd helpers?
>

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

and there is unnecessary cruft in the pre/post scripts.

When I add:

override_dh_installinit:
        dh_installinit --no-scripts

to debian/rules

I get a clean lintian and the pre/post scripts don't reference nonexistent
init scripts.

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.

Perhaps I should file a bug against debhelper.

Thanks!

-m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170407/c6508b86/attachment-0003.html>


More information about the debhelper-devel mailing list