Package: sslh Version: 1.16-1 Severity: important Tags: patch Hi,
Since libcap-dev now only builds on linux, sslh cannot be built on non-linux architectures. I have attached a patch which disables support for libcap on non-linux architectures allowing sslh to build there again. James -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (100, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u -r a/debian/control b/debian/control --- a/debian/control 2014-08-30 21:43:22.384412587 +0100 +++ b/debian/control 2014-08-31 11:44:21.636534259 +0100 @@ -3,7 +3,7 @@ Priority: extra Maintainer: Guillaume Delacour <g...@iroqwa.org> Build-Depends: debhelper (>= 9.0.0), libwrap0-dev, binutils, po-debconf, - libio-socket-inet6-perl, libconfig-dev, libcap-dev, + libio-socket-inet6-perl, libconfig-dev, libcap-dev [linux-any], psmisc, lcov, dh-systemd (>= 1.5) Standards-Version: 3.9.5 Homepage: http://www.rutschle.net/tech/sslh.shtml diff -u -r a/debian/rules b/debian/rules --- a/debian/rules 2014-08-30 21:43:22.388412611 +0100 +++ b/debian/rules 2014-08-31 11:44:06.896449252 +0100 @@ -9,8 +9,15 @@ MAKEFLAGS += -j$(NUMJOBS) endif +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) +ifeq ($(DEB_HOST_ARCH_OS),linux) + EXTRA_OPTIONS := USELIBCAP=1 +else + EXTRA_OPTIONS := +endif + override_dh_auto_build: - dh_auto_build --parallel -- USELIBWRAP=1 USELIBCAP=1 + dh_auto_build --parallel -- USELIBWRAP=1 $(EXTRA_OPTIONS) override_dh_auto_install: # auto install fork version, see debian/install for select version