Bug#763685: apt-cacher-ng: FTBFS[!linux]: C++11 syntax error, systemd dependency
Package: apt-cacher-ng
Version: 0.8.0~rc3-1
Severity: serious
Hi,
apt-cacher-ng FTBFS on non-Linux architectures. Firstly, this line of
code seems to be incorrect syntax in C++11, I guess because of the new
initialiser list feature:
--- include/dlcon.h.orig 2014-09-20 11:52:07.000000000 +0100
+++ include/dlcon.h 2014-10-01 21:01:18.170747446 +0100
@@ -51,7 +51,7 @@
#define fdWakeRead m_wakeventfd
#define fdWakeWrite m_wakeventfd
#else
- int m_wakepipe[] = {-1, -1};
+ int m_wakepipe[2] = {-1, -1};
#define fdWakeRead m_wakepipe[0]
#define fdWakeWrite m_wakepipe[1]
#endif
Secondly, there is a dependency on libsystemd-daemon-dev which is
[linux-any]
Finally the dh_install step does some systemd-specific things which fail
on non-Linux:
| dh_install
| sed -e s,^Type=simple,Type=notify, < systemd/apt-cacher-ng.service > debian/apt-cacher-ng.service
| grep -q libsystemd /home/steven/apt-cacher-ng-0.8.0~rc3/debian/apt-cacher-ng/usr/sbin/apt-cacher-ng
| make[1]: *** [override_dh_install] Error 1
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Reply to: