summaryrefslogtreecommitdiffstats
path: root/package/qt5/qt5base/0007-configure-add-psql_config-option.patch
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2015-02-24 23:47:49 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-08 22:27:54 +0100
commitba6e085303f4368cbc2676061d87213752e19fb7 (patch)
tree12f15b69a87be291036085e588299524fe1f1d50 /package/qt5/qt5base/0007-configure-add-psql_config-option.patch
parentb93fae4ade8a6ec247d432e4979a5afeb4ba5f59 (diff)
downloadbuildroot-ba6e085303f4368cbc2676061d87213752e19fb7.tar.gz
buildroot-ba6e085303f4368cbc2676061d87213752e19fb7.zip
qt5base: fix the PostgreSQL detection patch
The PostgreSQL detection patch added in commit 1b54fbc925f419f740f4cbc8229cfbf40ce84895 ("qt5base: fix postgresql plugin compile") had a minor issue: it was still calling the host pg_config to decided whether or not PostgreSQL was available. [Thomas: improve commit log.] Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/qt5/qt5base/0007-configure-add-psql_config-option.patch')
-rw-r--r--package/qt5/qt5base/0007-configure-add-psql_config-option.patch11
1 files changed, 6 insertions, 5 deletions
diff --git a/package/qt5/qt5base/0007-configure-add-psql_config-option.patch b/package/qt5/qt5base/0007-configure-add-psql_config-option.patch
index 7561314432..8075fe4579 100644
--- a/package/qt5/qt5base/0007-configure-add-psql_config-option.patch
+++ b/package/qt5/qt5base/0007-configure-add-psql_config-option.patch
@@ -1,4 +1,4 @@
-From 95f2e4001f9c1721cbdb26d3f9c38511adae9c4b Mon Sep 17 00:00:00 2001
+From f23a18de3c398c908c92b8cf8f20edc12435b9d1 Mon Sep 17 00:00:00 2001
From: Peter Seiderer <ps.report@gmx.net>
Date: Thu, 19 Feb 2015 22:41:02 +0100
Subject: [PATCH] configure: add '-psql_config' option
@@ -8,11 +8,11 @@ the same as for mysql_config).
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
- configure | 10 ++++++++--
- 1 file changed, 8 insertions(+), 2 deletions(-)
+ configure | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
-index 0c66ecf..a832ae3 100755
+index 0c66ecf..491486a 100755
--- a/configure
+++ b/configure
@@ -578,6 +578,7 @@ CFG_WIDGETS=yes
@@ -47,9 +47,10 @@ index 0c66ecf..a832ae3 100755
if [ "$CFG_SQL_psql" != "no" ]; then
+ [ -z "$CFG_PSQL_CONFIG" ] && CFG_PSQL_CONFIG=`"$WHICH" pg_config`
# Be careful not to use native pg_config when cross building.
- if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then
+- if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then
- QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null | filterIncludePath`
- QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null | filterLibraryPath`
++ if [ "$XPLATFORM_MINGW" != "yes" ] && [ -x "$CFG_PSQL_CONFIG" ]; then
+ QT_CFLAGS_PSQL=`$CFG_PSQL_CONFIG --includedir 2>/dev/null | filterIncludePath`
+ QT_LFLAGS_PSQL=`$CFG_PSQL_CONFIG --libdir 2>/dev/null | filterLibraryPath`
fi
OpenPOWER on IntegriCloud