Facing issue with bind package dependency with libuv package

Hi,

  1. Tried to enable openssl cmpv2 package in test repository for validating Public Key Infrastructure (PKI), we are facing issue with libuv error as below only after commiting the changes to git.

  2. libuv package is enabled in .config. And also in bind Makefile added libuv as dependency. Eventhough facing libuv issue after commit. If we touch “qca/feeds/packages/net/bind/Makefile” libuv error is not seen and compilation was successfull. If we push the changes to git repo and clone new repo and start compilation, facing this libuv error.

Error logs:

checking for libuv... checking for LIBUV... no

configure: error: libuv not found

Makefile:209: recipe for target '/root/Jul28/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk/build_dir/target-aarch64_cortex-a53_musl-1.1.16/bind-9.16.30/.configured_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy' failed

make[3]: *** [/root/test/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk/build_dir/target-aarch64_cortex-a53_musl-1.1.16/bind-9.16.30/.configured_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy] Error 1

make[3]: Leaving directory '/root/Jul28_test/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk/qca/feeds/packages/net/bind'

package/Makefile:197: recipe for target 'package/feeds/packages/bind/compile' failed

make[2]: *** [package/feeds/packages/bind/compile] Error 2

make[2]: Leaving directory '/root/Jul28_test/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk'

package/Makefile:194: recipe for target '/root/Jul28_test/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/stamp/.package_compile' failed

make[1]: *** [/root/Jul28_test/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/stamp/.package_compile] Error 2

make[1]: Leaving directory '/root/Jul28_test/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk'

/root/Jul28_test/test_11_2/qca-networking-2020-spf-11-2_qca_oem-master/qsdk/include/toplevel.mk:186: recipe for target 'world' failed

make: *** [world] Error 2

Can you please help here. Attached bind Makefile.

#
# Copyright (C) 2006-2012 OpenWrt.org
#               2014 Noah Meyerhans <frodo@morgul.net>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=bind
#PKG_VERSION:=9.9.8-P3
#PKG_VERSION:=9.18.4
PKG_VERSION:=9.16.30
PKG_RELEASE:=1
USERID:=bind=57:bind=57

PKG_MAINTAINER := Noah Meyerhans <frodo@morgul.net>
PKG_LICENSE := BSD-3-Clause

#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:= \
	ftp://ftp.isc.org/isc/bind9/$(PKG_VERSION) \
	http://www.mirrorservice.org/sites/ftp.isc.org/isc/bind9/$(PKG_VERSION)
#PKG_MD5SUM:=30b9bf88a78eee783d3fef5257445788
#PKG_MD5SUM:=2f65f53ad0eab3701138332282b9b526
#PKG_MD5SUM:=b12d6b53d30792121214ead260ac3d79
PKG_MD5SUM:=598ab6354709e0d36de2bd02c05e8119

PKG_FIXUP:=autoreconf
PKG_REMOVE_FILES:=aclocal.m4 libtool.m4

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

#define Package/bind/Default
#  SECTION:=net
#  CATEGORY:=Network
#  DEPENDS:=+bind-libs
#  TITLE:=bind
#  URL:=https://www.isc.org/software/bind
#  SUBMENU:=IP Addresses and Names
#endef

define Package/bind-libs
  SECTION:=libs
  CATEGORY:=Libraries
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c
  TITLE:=bind
  URL:=https://www.isc.org/software/bind
  SUBMENU:=IP Addresses and Names
endef

define Package/bind-server
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= DNS server
endef

define Package/bind-client
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= dynamic DNS client
endef

define Package/bind-tools
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= administration tools (all)
endef

define Package/bind-rndc
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= administration tools (rndc and rndc-confgen only)
endef

define Package/bind-check
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= administration tools (named-checkconf and named-checkzone only)
endef

define Package/bind-dnssec
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= administration tools (dnssec-keygen and dnssec-signzone only)
endef

define Package/bind-host
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= simple DNS client
endef

define Package/bind-dig
  $(call Package/bind/bind-libs)
  DEPENDS:=+libuv +libopenssl +zlib +libjson-c +bind-libs
  TITLE+= DNS excavation tool
endef

export BUILD_CC="$(TARGET_CC)"

CONFIGURE_ARGS += \
	--enable-shared \
	--with-randomdev="/dev/urandom" \
	--disable-threads \
	--disable-linux-caps \
	--with-openssl="$(STAGING_DIR)/usr" \
	--with-libtool \
	--with-libxml2=no \
	--enable-epoll=yes \
	--with-gost=no \
	--with-gssapi=no \
	--with-ecdsa=no \
	--with-readline=no \
	--sysconfdir=/etc/bind \
	--without-python

CONFIGURE_VARS += \
	BUILD_CC="$(TARGET_CC)" \

TARGET_CFLAGS += -std=gnu99
#TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
#TARGET_LDFLAGS += "-all-static"

#CFLAGS += -fPIC

define Build/Compile
	$(MAKE) -C $(PKG_BUILD_DIR)/lib/dns \
		BUILD_CC="$(HOSTCC)" \
		CC="$(HOSTCC)" \
		CFLAGS="-O2" \
		LIBS="" \
		gen
	$(call Build/Compile/Default)
endef

define Package/bind-libs/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
endef

define Package/bind-server/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named $(1)/usr/sbin/
	$(INSTALL_DIR) $(1)/etc/bind
	$(CP) \
		./files/bind/db.0 \
		./files/bind/db.127 \
		./files/bind/db.255 \
		./files/bind/db.local \
		./files/bind/db.root \
		$(1)/etc/bind/
	$(CP) ./files/bind/named.conf.example $(1)/etc/bind/named.conf
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/named.init $(1)/etc/init.d/named
	find $(1)/etc/bind/ -name ".svn" | xargs rm -rf
endef

define Package/bind-server/conffiles
/etc/bind/db.0
/etc/bind/db.127
/etc/bind/db.255
/etc/bind/db.local
/etc/bind/db.root
/etc/bind/named.conf
endef

define Package/bind-client/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(1)/usr/bin/
endef

define Package/bind-tools/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dig $(1)/usr/bin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/host $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(1)/usr/sbin/
endef

define Package/bind-rndc/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rndc-confgen $(1)/usr/sbin/
endef

define Package/bind-check/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkconf $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named-checkzone $(1)/usr/sbin/
endef

define Package/bind-dnssec/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-keygen $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnssec-signzone $(1)/usr/sbin/
endef

define Package/bind-host/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/host $(1)/usr/bin/
endef

define Package/bind-dig/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dig $(1)/usr/bin/
endef

$(eval $(call BuildPackage,bind-libs))
$(eval $(call BuildPackage,bind-server))
$(eval $(call BuildPackage,bind-client))
$(eval $(call BuildPackage,bind-tools))
$(eval $(call BuildPackage,bind-rndc))
$(eval $(call BuildPackage,bind-check))
$(eval $(call BuildPackage,bind-dnssec))
$(eval $(call BuildPackage,bind-host))
$(eval $(call BuildPackage,bind-dig))
````Preformatted text`