Skip to contentSkip to conversation

motion: fix postgresql support

PATCH New Peter Seiderer 2 participants 2 messages Oct 17, 2016 – Oct 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 motion: fix postgresql support

The commandline paramter to enable/disable postgresql support is called '--with-pgsql/--without-pgsql' and not '--with-postgresql/ --without-postgresql'.

Fixes [1] in case postgresql development files are installed on the host:

checking for PostgreSQL... testing
checking autodect pgsql headers... yes /usr/include/postgresql checking autodect pgsql libs... /usr/lib64
checking for PQconnectStart in -lpq... no
configure: error: PostgreSQL support can't build without PostgreSQL libraries

[1] http://autobuild.buildroot.net/results/749/7497730da2affffe0e5b9b790081de10c269f416

---
 package/motion/motion.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/motion/motion.mk +2 -2
index de29a2a..1b80561 100644
@@ -44,11 +44,11 @@ endif
 ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
 MOTION_DEPENDENCIES += postgresql
 MOTION_CONF_OPTS += \
-	--with-postgresql \
+	--with-pgsql \
 	--with-pgsql-include=$(STAGING_DIR)/usr/include \
 	--with-pgsql-lib=$(STAGING_DIR)/usr/lib
 else
-MOTION_CONF_OPTS += --without-postgresql
+MOTION_CONF_OPTS += --without-pgsql
 endif
 
 ifeq ($(BR2_PACKAGE_SDL),y)
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 motion: fix postgresql support

Hello,

Quoted 12 lines · Peter Seiderer

The commandline paramter to enable/disable postgresql support is called '--with-pgsql/--without-pgsql' and not '--with-postgresql/ --without-postgresql'.

Fixes [1] in case postgresql development files are installed on the host:

checking for PostgreSQL... testing
checking autodect pgsql headers... yes /usr/include/postgresql checking autodect pgsql libs... /usr/lib64
checking for PQconnectStart in -lpq... no
configure: error: PostgreSQL support can't build without PostgreSQL libraries

Quoted 6 lines

[1] http://autobuild.buildroot.net/results/749/7497730da2affffe0e5b9b790081de10c269f416

---
 package/motion/motion.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

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