Package: libreswan
Version: 3.27-6
Severity: normal

Hi Stephen,

Thanks.  that is a good step. It would be nice to remove the build time 
dependency too.

On Fedora we can do something like the following.

make UNITDIR=%{_unitdir} TMPFILESDIR=%{_tmpfilesdir} INITSYSTEM=systemd base

if there is Debian equivalent, to get UNITDIR, in "rules" we can drop build 
time dependency to systemd.

upstream export UNITDIR since
https://github.com/libreswan/libreswan/commit/8150294b4b51a9476a99a8d7a23b30b0e7d937ae

regards,
-antony



On Sun, Apr 19, 2020 at 08:59:26PM +0200, Stephen Kitt wrote:
> Hi Antony,
> 
> On Sun, 19 Apr 2020 18:21:23 +0200, Antony Antony <ant...@phenome.org> wrote:
> > I came across this bug report and thought add my comment.
> > 
> > systemd dependency was added due to a bug, reported at.
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875639 
> > 
> > which is cause by build time dependency
> > SYSTEMUNITDIR=$(shell pkg-config systemd --variable=systemdsystemunitdir) 
> > 
> > https://github.com/libreswan/libreswan/blob/7d9afc01c0d558f59103e56667cf9d227e12a28b/initsystems/systemd/Makefile#L5
> >  
> 
> Thanks for taking the time to reply. If the above is the reason that systemd
> was added, then the build-dependency is sufficient: the package needs systemd
> during the build, but not necessarily at runtime.
> 
> > to remove systemd dependency we may need a generic fix in upstream.
> 
> I think https://salsa.debian.org/debian/libreswan/-/merge_requests/1 should
> be sufficient...
> 
> Regards,
> 
> Stephen

Reply via email to