package/bind: fix python build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 27 Apr 2019 13:49:25 +0000 (15:49 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 29 Apr 2019 07:28:29 +0000 (09:28 +0200)
A check for python-ply has been added as this is a dependency of the
dnssec-keymgr script so install host-python-ply to avoid a build failure
if python-ply is not installed on host

Fixes:
 - http://autobuild.buildroot.org/results/96815b1300547c976443bf74b762febdfcc8d3ba

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/bind/bind.mk

index 356bc259b295b168df8812306a2b27bf534738ba..087ce941b02fd2aec7dbeb6faefc19d48448bf3f 100644 (file)
@@ -70,8 +70,11 @@ else
 BIND_CONF_OPTS += --with-openssl=no
 endif
 
-# Used by dnssec-checkds and dnssec-coverage
-ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),)
+# Used by dnssec-keymgr
+ifeq ($(BR2_PACKAGE_PYTHON_PLY),y)
+BIND_DEPENDENCIES += host-python-ply
+BIND_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python
+else
 BIND_CONF_OPTS += --with-python=no
 endif