Is it possible to mix systemd and non-systemd in a rules file?

Alex Nelson alex.nelson at editshare.com
Wed Nov 4 23:33:29 GMT 2020


The subject may be clear enough, but if you want more information:

I have one git repo that generates one debian package -- no systemd
service here.
I have a second git repo that generates one debian package;  this
package does generate a service using "--with systemd" in the rules
file.

I would like to merge the two repos and have that one repo generate
two packages, one package will have a service in it, and the other
will not.

I tried the experiment, but the generated debian package for the
python module that doesn't need or want to know anything about systemd
now has (dh generated) references to systemd.

Maybe there is a way to say for target module `my_module_one', use

      dh $@ --with python3 --buildsystem=pybuild

and for my other module `my_module_two' use

      dh $@ --with python3,systemd --buildsystem=pybuild



More information about the Pkg-systemd-maintainers mailing list