nmap: make ndiff conditional on python2
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 17 Apr 2014 20:25:10 +0000 (17:25 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Apr 2014 19:40:40 +0000 (21:40 +0200)
ndiff only works when target python2 is available, so disable it
completely when it's not. Fixes:
http://autobuild.buildroot.net/results/402/40269fd96a3b62fa187e9b26e5ab4ce4e7711f95/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nmap/nmap.mk

index 4ed39bf7b4764758e724380026966de7d8942c4f..c7e222587381f0fab37b0ed07110bfcbd2033be2 100644 (file)
@@ -21,4 +21,11 @@ else
 NMAP_CONF_OPT += --without-openssl
 endif
 
+# ndiff only works with python2.x
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+NMAP_DEPENDENCIES += python
+else
+NMAP_CONF_OPT += --without-ndiff
+endif
+
 $(eval $(autotools-package))