blob: 49b0a5eea1eeb0e40accd1085b08d4eea2a99a21 [file] [log] [blame]
Patrick Williams43a6b7c2025-02-13 15:13:32 -05001From 9a06dbf831f012c6019237527d2bf1aa7a3a543a Mon Sep 17 00:00:00 2001
Andrew Geissler9aee5002022-03-30 16:27:02 +00002From: Paul Gortmaker <paul.gortmaker@windriver.com>
3Date: Tue, 9 Jun 2015 11:22:00 -0400
4Subject: [PATCH] bind: ensure searching for json headers searches sysroot
5
6Bind can fail configure by detecting headers w/o libs[1], or
7it can fail the host contamination check as per below:
8
9ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
10Rerun configure task after fixing this. The path was 'build/tmp/work/core2-64-poky-linux/bind/9.10.2-r1/build'
11ERROR: Function failed: do_qa_configure
12ERROR: Logfile of failure stored in: build/tmp/work/core2-64-poky-linux/bind/9.10.2-r1/temp/log.do_configure.5242
13ERROR: Task 5 (meta/recipes-connectivity/bind/bind_9.10.2.bb, do_configure) failed with exit code '1'
14NOTE: Tasks Summary: Attempted 773 tasks of which 768 didn't need to be rerun and 1 failed.
15No currently running tasks (773 of 781)
16
17Summary: 1 task failed:
18 /meta/recipes-connectivity/bind/bind_9.10.2.bb, do_configure
19
20One way to fix it would be to unconditionally disable json in bind
21configure[2] but here we fix it by using the path to where we would
22put the header if we had json in the sysroot, in case someone wants
23to make use of the combination some day.
24
25[1] https://trac.macports.org/ticket/45305
26[2] https://trac.macports.org/changeset/126406
27
28Upstream-Status: Inappropriate [OE Specific]
29Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Andrew Geissler9aee5002022-03-30 16:27:02 +000030---
31 configure.ac | 2 +-
32 1 file changed, 1 insertion(+), 1 deletion(-)
33
34diff --git a/configure.ac b/configure.ac
Patrick Williams43a6b7c2025-02-13 15:13:32 -050035index 168a77a..13f9d7f 100644
Andrew Geissler9aee5002022-03-30 16:27:02 +000036--- a/configure.ac
37+++ b/configure.ac
Patrick Williams96e4b4e2025-02-03 15:49:15 -050038@@ -863,7 +863,7 @@ AS_CASE([$with_lmdb],
Andrew Geissler9aee5002022-03-30 16:27:02 +000039 [no],[],
40 [auto|yes], [PKG_CHECK_MODULES([LMDB], [lmdb],
41 [ac_lib_lmdb_found=yes],
42- [for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do
43+ [for ac_lib_lmdb_path in "${STAGING_INCDIR}"; do
44 AX_LIB_LMDB([$ac_lib_lmdb_path],
45 [ac_lib_lmdb_found=yes
46 break])