<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 7, 2017 at 8:31 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Control: tags -1 moreinfo<br>
<br>
On Fri, 25 Sep 2015 14:32:28 -0500 Matt Zagrabelny <<a href="mailto:mzagrabe@d.umn.edu">mzagrabe@d.umn.edu</a>><br>
wrote:<br>
> Package: dh-systemd<br>
> Version: 1.23<br>
> Severity: wishlist<br>
><br>
> Dear Maintainer,<br>
><br>
> Please consider adding a documentation file such as HOWTO or USAGE:<br>
><br>
> <<__EOF__<br>
> A minimalistic debian/rules file would be:<br>
><br>
> ---{begin}---<br>
> #!/usr/bin/make -f<br>
><br>
> %:<br>
>     dh $@ --with systemd<br>
><br>
>     override_dh_installinit:<br>
>         dh_installinit --noscripts<br>
> ---{end}---<br>
><br>
> You will also need to add dh-systemd to your Build-Depends. Such as:<br>
><br>
> Build-Depends: debhelper (>= 9), dh-systemd<br>
> __EOF__<br>
><br>
> Thanks for your consideration!<br>
><br>
> -m<br>
><br>
> [...]<br>
<br>
Hi Matt,<br>
<br>
Thanks for the report.<br>
<br>
Things have changed quite a bit in the past 1½-2 years and now<br>
dh-systemd has been included into debhelper.  It is enabled by default<br>
in compat 10, so I suspect most of this proposal has been obsoleted by<br>
migration.<br></blockquote><div><br></div><div>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.<br><br></div><div>There is one point that might be useful - either in the package or in a wiki.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
What is your view?  Are you still missing something from the<br>
documentation on the systemd helpers?<br></blockquote><div><br></div><div>When using tiny rules:<br><br>%:<br></div><div>    dh $@<br><br></div><div>and the package contains a systemd unit file, but no sysv init file, lintian complains:<br><br>W: fw-skel: init.d-script-not-marked-as-conffile etc/init.d/fw-skel<br>E: fw-skel: init.d-script-not-included-in-package etc/init.d/fw-skel<br><br></div><div>and there is unnecessary cruft in the pre/post scripts.<br><br></div><div>When I add:<br><br>override_dh_installinit:<br>        dh_installinit --no-scripts<br><br></div><div>to debian/rules<br><br></div><div>I get a clean lintian and the pre/post scripts don't reference nonexistent init scripts.<br></div><br></div><div class="gmail_quote">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.<br><br></div><div class="gmail_quote">Perhaps I should file a bug against debhelper.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks!<br><br></div><div class="gmail_quote">-m<br></div></div></div>