From 438d363331b110c06554bda630e2a2a3f7ab1739 Mon Sep 17 00:00:00 2001 From: Wenzong Fan Date: Tue, 8 Apr 2014 17:07:48 +0800 Subject: collectd: enable/disable libpq explicitly If '--with-libpq' is not included in configure options, the configure script will assume 'with-libpq=yes' and try to figure below variables out with 'pg_config': with_libpq_includedir, with_libpq_libdir This causes configure QA errors on some hosts that have 'pg_config' installed (which from postgresql-devel): * ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. Anyways the target package should not depend on any host headers/libs, we should enable/disable the libpq support explicitly according to if the postgresql feature was enabled. Signed-off-by: Wenzong Fan Signed-off-by: Jackie Huang Signed-off-by: Martin Jansa --- meta-oe/recipes-extended/collectd/collectd_5.2.2.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb b/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb index 25be1c4d16..4eed2b6e1e 100644 --- a/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb +++ b/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb @@ -23,7 +23,8 @@ PACKAGECONFIG ??= "" PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp --with-libnetsnmp=no,net-snmp" PACKAGECONFIG[libmemcached] = "--with-libmemcached,--without-libmemcached,libmemcached" PACKAGECONFIG[iptables] = "--enable-iptables,--disable-iptables,iptables" -PACKAGECONFIG[postgresql] = "--enable-postgresql,--disable-postgresql,postgresql" +PACKAGECONFIG[postgresql] = "--enable-postgresql --with-libpq=yes, \ + --disable-postgresql --with-libpq=no,postgresql" PACKAGECONFIG[dbi] = "--enable-dbi,--disable-dbi,libdbi" PACKAGECONFIG[modbus] = "--enable-modbus,--disable-modbus,libmodbus" PACKAGECONFIG[libowcapi] = "--with-libowcapi,--without-libowcapi,owfs" -- cgit 1.2.3-korg