From f5e4bb185a2694c180ba1c51efab4e5a6c8b3975 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 23 Apr 2022 19:48:58 +0200 Subject: [PATCH] package/clamav: fix libxml2 build Pass ac_cv_path_xmlconfig to fix the following build failure with libxml2 raised since bump to version 0.102.0 in commit 007f49962a961f96ff87795217758ec3786d03ac and https://github.com/Cisco-Talos/clamav/commit/083ca38727b0ebd3979cf1ebc7b31148f6d5e7f7: aarch64-none-linux-gnu-gcc: WARNING: unsafe header/library path used in cross-compilation: '-I/usr/include/libxml2' In file included from /usr/include/libxml2/libxml/parser.h:810, from others.c:62: /usr/include/libxml2/libxml/encoding.h:31:10: fatal error: unicode/ucnv.h: No such file or directory 31 | #include | ^~~~~~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/5bb3bea6d13ac8d497f6862374d65a59bea7ed09 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/clamav/clamav.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/clamav/clamav.mk b/package/clamav/clamav.mk index cd2d06e6b3..e2ee99d02b 100644 --- a/package/clamav/clamav.mk +++ b/package/clamav/clamav.mk @@ -69,6 +69,7 @@ CLAMAV_CONF_OPTS += --without-libjson endif ifeq ($(BR2_PACKAGE_LIBXML2),y) +CLAMAV_CONF_ENV += ac_cv_path_xmlconfig=$(STAGING_DIR)/usr/bin/xml2-config CLAMAV_CONF_OPTS += --with-xml=$(STAGING_DIR)/usr CLAMAV_DEPENDENCIES += libxml2 else