Source: libreswan
Version: 3.20-6
Severity: normal
Tags: patch

Hi,

ATM libreswan is not being built because it depends against
libcap-ng-dev that is only available on linux architectures.

Please disable libcap-ng support on non-linux arch.

Regards,

Laurent Bigonville

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru libreswan-3.20/debian/control libreswan-3.20/debian/control
--- libreswan-3.20/debian/control       2017-05-05 12:38:19.000000000 +0200
+++ libreswan-3.20/debian/control       2017-05-05 13:00:22.000000000 +0200
@@ -15,7 +15,7 @@
  flex,
  htmldoc,
  libaudit-dev [linux-any],
- libcap-ng-dev,
+ libcap-ng-dev [linux-any],
  libcurl4-nss-dev,
  libevent-dev,
  libkrb5-dev,
diff -Nru libreswan-3.20/debian/rules libreswan-3.20/debian/rules
--- libreswan-3.20/debian/rules 2017-05-05 12:38:23.000000000 +0200
+++ libreswan-3.20/debian/rules 2017-05-05 13:00:22.000000000 +0200
@@ -13,8 +13,10 @@
 
 ifeq ($(DEB_HOST_ARCH_OS),linux)
   ENABLE_SELINUX = USE_LABELED_IPSEC=true USE_LINUX_AUDIT=true
+  ENABLE_LIBCAP_NG = USE_LIBCAP_NG=true
 else
   ENABLE_SELINUX = USE_LABELED_IPSEC=false USE_LINUX_AUDIT=false
+  ENABLE_LIBCAP_NG = USE_LIBCAP_NG=false
 endif
 
 override_dh_auto_build:
@@ -28,7 +30,7 @@
                USE_LIBCURL=true \
                USE_XAUTHPAM=true \
                USE_FIPSCHECK=false \
-               USE_LIBCAP_NG=true \
+               $(ENABLE_LIBCAP_NG) \
                $(ENABLE_SELINUX) \
                USE_KLIPS=false \
                USE_DNSSEC=true

Reply via email to