1*4882a593SmuzhiyunFrom 246087f89e9434b726c7884e4c0964f71084f091 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Paul Gortmaker <paul.gortmaker@windriver.com>
3*4882a593SmuzhiyunDate: Tue, 9 Jun 2015 11:22:00 -0400
4*4882a593SmuzhiyunSubject: [PATCH] bind: ensure searching for json headers searches sysroot
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunBind can fail configure by detecting headers w/o libs[1], or
7*4882a593Smuzhiyunit can fail the host contamination check as per below:
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
10*4882a593SmuzhiyunRerun configure task after fixing this. The path was 'build/tmp/work/core2-64-poky-linux/bind/9.10.2-r1/build'
11*4882a593SmuzhiyunERROR: Function failed: do_qa_configure
12*4882a593SmuzhiyunERROR: Logfile of failure stored in: build/tmp/work/core2-64-poky-linux/bind/9.10.2-r1/temp/log.do_configure.5242
13*4882a593SmuzhiyunERROR: Task 5 (meta/recipes-connectivity/bind/bind_9.10.2.bb, do_configure) failed with exit code '1'
14*4882a593SmuzhiyunNOTE: Tasks Summary: Attempted 773 tasks of which 768 didn't need to be rerun and 1 failed.
15*4882a593SmuzhiyunNo currently running tasks (773 of 781)
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunSummary: 1 task failed:
18*4882a593Smuzhiyun  /meta/recipes-connectivity/bind/bind_9.10.2.bb, do_configure
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunOne way to fix it would be to unconditionally disable json in bind
21*4882a593Smuzhiyunconfigure[2] but here we fix it by using the path to where we would
22*4882a593Smuzhiyunput the header if we had json in the sysroot, in case someone wants
23*4882a593Smuzhiyunto make use of the combination some day.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun[1] https://trac.macports.org/ticket/45305
26*4882a593Smuzhiyun[2] https://trac.macports.org/changeset/126406
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunUpstream-Status: Inappropriate [OE Specific]
29*4882a593SmuzhiyunSigned-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun---
32*4882a593Smuzhiyun configure.ac | 2 +-
33*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
34*4882a593Smuzhiyun
35*4882a593Smuzhiyundiff --git a/configure.ac b/configure.ac
36*4882a593Smuzhiyunindex 10e8bf6..bf20690 100644
37*4882a593Smuzhiyun--- a/configure.ac
38*4882a593Smuzhiyun+++ b/configure.ac
39*4882a593Smuzhiyun@@ -814,7 +814,7 @@ AS_CASE([$with_lmdb],
40*4882a593Smuzhiyun 	[no],[],
41*4882a593Smuzhiyun 	[auto|yes], [PKG_CHECK_MODULES([LMDB], [lmdb],
42*4882a593Smuzhiyun 				       [ac_lib_lmdb_found=yes],
43*4882a593Smuzhiyun-				       [for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do
44*4882a593Smuzhiyun+				       [for ac_lib_lmdb_path in "${STAGING_INCDIR}"; do
45*4882a593Smuzhiyun 						AX_LIB_LMDB([$ac_lib_lmdb_path],
46*4882a593Smuzhiyun 							    [ac_lib_lmdb_found=yes
47*4882a593Smuzhiyun 							     break])
48