[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debhelper-compat-version 11 and systemd

Tong Sun <pkgoyq.xpt@neverbox.com> writes:

> I have a d/rules file that uses systemd:

>     rules:  dh $@ --with systemd

> When setting debhelper-compat-version to 11 to fix the
> “package-uses-old-debhelper-compat-version” problem, I got:

>   dh: unable to load addon systemd: dh: The systemd-sequence is no
> longer provided in compat >= 11, please rely on dh_installsystemd
> instead
>   Compilation failed in require at (eval 10) line 1.

> I've searched for the solution but didn't find the answer.

> How to fix it?

Just omit the "--with systemd" part entirely.  From debhelper(7):

-       The dh_systemd_enable and dh_systemd_start helpers have
        been replaced by the new dh_installsystemd helper.  For the
        same reason, the systemd sequence for dh has also been
        removed.  If you need to disable the dh_installsystemd
        helper tool, please use an empty override target.

        Please note that the dh_installsystemd tool has a slightly
        different behaviour in some cases (e.g. when using the
        --name parameter).

You may want to read the dh_installsystemd(1) man page to see if any of
the changes affect your package.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: