Re: Bug#763685: apt-cacher-ng: FTBFS[!linux]: C++11 syntax error, systemd dependency
tags 763685 +pending
thanks
Hallo,
* Guillem Jover [Thu, Oct 02 2014, 05:23:09AM]:
> > @@ -22,8 +24,10 @@
> > override_dh_install:
> > dh_install $(shell test -e build/acngfs || echo -Xacngfs)
> > sed -e s,^Type=simple,Type=notify, < systemd/apt-cacher-ng.service > debian/apt-cacher-ng.service
> > -# make sure it has sd_notify support enabled
> > +ifeq ($(DEB_BUILD_ARCH_OS),linux)
>
> I think you want DEB_HOST_ARCH_OS here too.
>
> > + # on Linux, make sure it has sd_notify support enabled
> > grep -q libsystemd $(TGT)/usr/sbin/apt-cacher-ng
> > +endif
Yeah, thanks, at least the compiler error was already fixed in SCM.
The trick in debian/rules can actually be replaced with something
better: the package's own build system provides reliable information on
whether sd_notify was used or not.
Regards,
Eduard.
Reply to: