Skip to contentSkip to conversation

collectd: add configure hint for pg_config

PATCH New Peter Seiderer 2 participants 2 messages Mar 10, 2015 – Mar 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 collectd: add configure hint for pg_config

Fixes [1] in case postgresql-devel package is installed on the host:

libpq . . . . . . . . no (libpq-fe.h not found)
postgresql . . . . . no (dependency error)
configure: error: "Some plugins are missing dependencies - see the summary above for details"

Otherwise fixes the following configure warning:

configure: WARNING: pg_config returned with status 127

[1] http://autobuild.buildroot.net/results/336/336b3e932be245faa04969af960702af672916dc

---
 package/collectd/collectd.mk | 3 +++
 1 file changed, 3 insertions(+)
package/collectd/collectd.mk +3 -0
index d5802d6..a4b91d6 100644
@@ -139,6 +139,9 @@ endif
 ifeq ($(BR2_PACKAGE_NETSNMP),y)
 	COLLECTD_CONF_OPTS += --with-libnetsnmp=$(STAGING_DIR)/usr/bin/net-snmp-config
 endif
+ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
+	COLLECTD_CONF_OPTS += --with-libpq=$(STAGING_DIR)/usr/bin/pg_config
+endif
 ifeq ($(BR2_PACKAGE_YAJL),y)
 	COLLECTD_CONF_OPTS += --with-yajl=$(STAGING_DIR)/usr
 endif
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 collectd: add configure hint for pg_config

Dear Peter Seiderer,

Quoted 6 lines · Peter Seiderer

Fixes [1] in case postgresql-devel package is installed on the host:

libpq . . . . . . . . no (libpq-fe.h not found)
postgresql . . . . . no (dependency error)
configure: error: "Some plugins are missing dependencies - see the summary above for details"

Quoted 7 lines

Otherwise fixes the following configure warning:

configure: WARNING: pg_config returned with status 127

[1] http://autobuild.buildroot.net/results/336/336b3e932be245faa04969af960702af672916dc

Seems like it doesn't work:
http://autobuild.buildroot.org/results/926/926a43b8f635790d7e9abdc977ea803ddaf8a523/build-end.log.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com