diff mbox series

bind: Fix build with the `httpstats` package config enabled

Message ID 20240911062647.3653902-1-alban.bedel@aerq.com
State New
Headers show
Series bind: Fix build with the `httpstats` package config enabled | expand

Commit Message

Alban Bedel Sept. 11, 2024, 6:26 a.m. UTC
When the `httpstats` package config is enabled configure fails with
the error:

> configure: error: Specifying libxml2 installation path is not
> supported, adjust PKG_CONFIG_PATH instead

Drop the explicit path from `--with-libxml2` to solve this issue.

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
---

The relevant change in bind9 (commit 0771dd3be "Make the usage of
libxml2 opaque to the caller") was introduced in 9.15.2 so scarthgap
and kirkstone are also affected. Do I need to send dedicated patches
or is there some other way to get the patch picked up for these
branches?
---
 meta/recipes-connectivity/bind/bind_9.20.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/bind/bind_9.20.1.bb b/meta/recipes-connectivity/bind/bind_9.20.1.bb
index 71d2324b841b..9c68c918e405 100644
--- a/meta/recipes-connectivity/bind/bind_9.20.1.bb
+++ b/meta/recipes-connectivity/bind/bind_9.20.1.bb
@@ -34,7 +34,7 @@  inherit autotools update-rc.d systemd useradd pkgconfig multilib_header update-a
 
 # PACKAGECONFIGs readline and libedit should NOT be set at same time
 PACKAGECONFIG ?= "readline"
-PACKAGECONFIG[httpstats] = "--with-libxml2=${STAGING_DIR_HOST}${prefix},--without-libxml2,libxml2"
+PACKAGECONFIG[httpstats] = "--with-libxml2,--without-libxml2,libxml2"
 PACKAGECONFIG[readline] = "--with-readline=readline,,readline"
 PACKAGECONFIG[libedit] = "--with-readline=libedit,,libedit"
 PACKAGECONFIG[dns-over-http] = "--enable-doh,--disable-doh,nghttp2"