Rodrigo, I have tried to make it work using --with-systemd flag passed in d/rules, but every time I make a fix something else backfires. I doubt it has ever been used before.
As a sidenote: we are lagging a lot behind upstream (they're at 2.4.4 already, we're at 1.3.4 and so is Debian). But we can't fix this for f anymore.
I discussed this with ddstreet and we need to get Debian opinion on this. What could be tried is one of the following (for example):
1) debian/nfs-kernel-server.install should install from debian/tmp/lib/system/systemd-generators, and systemd/Makefile.am should pull genexec_PROGRAM Sout of INSTALL_SYSTEMD and also change /usr/lib/systemd/systemd-generators to /lib/...
or
2) use the build location to install from in nfs-kernel-server.install, and update systemd/Makefile.am to only build (not install) the generator, like:
Rodrigo, I have tried to make it work using --with-systemd flag passed in d/rules, but every time I make a fix something else backfires. I doubt it has ever been used before.
As a sidenote: we are lagging a lot behind upstream (they're at 2.4.4 already, we're at 1.3.4 and so is Debian). But we can't fix this for f anymore.
I discussed this with ddstreet and we need to get Debian opinion on this. What could be tried is one of the following (for example): nfs-kernel- server. install should install from debian/ tmp/lib/ system/ systemd- generators, and systemd/Makefile.am should pull genexec_PROGRAM Sout of INSTALL_SYSTEMD and also change /usr/lib/ systemd/ systemd- generators to /lib/... server. install, and update systemd/Makefile.am to only build (not install) the generator, like:
1) debian/
or
2) use the build location to install from in nfs-kernel-
if INSTALL_SYSTEMD generator /$(unitdir) /$(unitdir) generator
+genexec_PROGRAMS = nfs-server-
install-data-hook: $(unit_files)
mkdir -p $(DESTDIR)
cp $(unit_files) $(DESTDIR)
+else
+noinst_PROGRAMS = nfs-server-
endif
I'm going to offer a MR to Debian and see what they say about it.