Author: aitor Date: To: dng Subject: Re: [DNG] Avoid systemd as build dependency
Hi again, Yevgeny:
On 19/4/20 22:56, aitor wrote: >
> Hi Yevgeny,
> On 19/4/20 21:41, Yevgeny Kosarzhevsky wrote:
>> Hi Aitor,
>> I've been able to build base package already (3.31) after removing
>> systemd dependencies with `sed -i '/systemd/d'
>> I've run `make deb` and it's built deb package successfully on beowulf.
>> The only thing I needed is to manually add init script.
> Here you are my packaging for devuan beowulf:
> pay attention to the attached libreswan.build file, and look at the
> warnings and errors thrown by lintian. Most of them related with all
> the content located in /usr/local. If i didn't override dh_usrlocal, i
> an error while packaging the manpages. I can replace "programs" by
> "base" in mk/targets.mk, but there are more files located in /usr/local,
> as you can see in the messages thrown by lintian.
>> I am wondering what is the proper way of removing systemd dependency
>> from base source as upstream adds it by some needs. Do you think
>> making pre-install hook is the best way to do init system checks
>> instead of running systemd things at a build time? Or is there any
>> other better way to remove*systemd* from build-deps?
> You must replace "dh $@ --with systemd" by "dh $@" in debian/rules.
> This is my first attempt, and hope this helps :)
> This is the result defining a new target in mk/targets.mk like:
and replacing "$(MAKE) programs [...]" by "$(MAKE) minimal [...]" in the
"override_dh_auto-build" target of debian/rules.