qt5base: add postgresql driver support
PATCH 1/1 qt5base: add postgresql driver support
Signed-off-by Floris Bos <[email protected]>
--- package/qt5/qt5base/Config.in | 12 ++++++++++++ package/qt5/qt5base/qt5base.mk | 9 +++++++++ 2 files changed, 21 insertions(+)
package/qt5/qt5base/Config.in +12 -0
@@ -62,6 +62,18 @@ config BR2_PACKAGE_QT5BASE_MYSQL help Build MySQL plugin If unsure, say n. + +config BR2_PACKAGE_QT5BASE_PSQL + bool "PostgreSQL Plugin" + select BR2_PACKAGE_POSTGRESQL + depends on BR2_TOOLCHAIN_USES_GLIBC + help + Build PostgreSQL plugin + If unsure, say n. + +comment "PostgreSQL needs an (e)glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBC + choice prompt "SQLite 3 support" default BR2_PACKAGE_QT5BASE_SQLITE_NONE
package/qt5/qt5base/qt5base.mk +9 -0
@@ -66,6 +66,14 @@ else QT5BASE_CONFIGURE_OPTS += -no-sql-mysql endif +ifeq ($(BR2_PACKAGE_QT5BASE_PSQL),y) +QT5BASE_CONFIGURE_OPTS += -plugin-sql-psql +QT5BASE_CONFIGURE_ENV += PSQL_LIBS=-L$(STAGING_DIR)/usr/lib +QT5BASE_DEPENDENCIES += postgresql +else +QT5BASE_CONFIGURE_OPTS += -no-sql-psql +endif + QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_QT),-plugin-sql-sqlite) QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),-system-sqlite) QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),sqlite)
@@ -170,6 +178,7 @@ define QT5BASE_CONFIGURE_CMDS PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \ PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \ MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" \ + $(QT5BASE_CONFIGURE_ENV) \ ./configure \ -v \ -prefix /usr \
Signature · 1 line
1.8.3.2
PATCH 1/1 qt: add postgresql driver support
Signed-off-by Floris Bos <[email protected]>
--- package/qt/Config.sql.in | 6 +++++- package/qt/qt.mk | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-)
package/qt/Config.sql.in +5 -1
@@ -30,11 +30,15 @@ config BR2_PACKAGE_QT_ODBC config BR2_PACKAGE_QT_PSQL bool "PostgreSQL Driver" - depends on BROKEN # libpgsql not in BR + select BR2_PACKAGE_POSTGRESQL + depends on BR2_TOOLCHAIN_USES_GLIBC help Build PostgreSQL driver If unsure, say n. +comment "PostgreSQL needs an (e)glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBC + choice prompt "SQLite 3 support" default BR2_PACKAGE_QT_SQLITE_NONE
package/qt/qt.mk +3 -0
@@ -343,6 +343,8 @@ QT_CONFIGURE_OPTS += -qt-sql-odbc endif ifeq ($(BR2_PACKAGE_QT_PSQL),y) QT_CONFIGURE_OPTS += -qt-sql-psql +QT_CONFIGURE_ENV += PSQL_LIBS=-L$(STAGING_DIR)/usr/lib +QT_DEPENDENCIES += postgresql endif ifeq ($(BR2_PACKAGE_QT_SQLITE_QT),y) QT_CONFIGURE_OPTS += -qt-sql-sqlite
@@ -503,6 +505,7 @@ define QT_CONFIGURE_CMDS PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \ + $(QT_CONFIGURE_ENV) \ MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" ./configure \ $(if $(VERBOSE),-verbose,-silent) \ -force-pkg-config \
Signature · 1 line
1.8.3.2
PATCH 1/1 qt: add postgresql driver support
Quoted 1 line · On Wednesday 13 August 2014 17:05:42 Floris Bos wrote:
Signed-off-by Floris Bos <[email protected]>
Reviewed-by Fatih A??c? <[email protected]>
Quoted 47 lines
--- package/qt/Config.sql.in | 6 +++++- package/qt/qt.mk | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-)package/qt/Config.sql.in +5
-1@@ -30,11 +30,15 @@ config BR2_PACKAGE_QT_ODBC config BR2_PACKAGE_QT_PSQL bool "PostgreSQL Driver" - depends on BROKEN # libpgsql not in BR + select BR2_PACKAGE_POSTGRESQL + depends on BR2_TOOLCHAIN_USES_GLIBC help Build PostgreSQL driver If unsure, say n. +comment "PostgreSQL needs an (e)glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBC + choice prompt "SQLite 3 support" default BR2_PACKAGE_QT_SQLITE_NONEpackage/qt/qt.mk +3
-0@@ -343,6 +343,8 @@ QT_CONFIGURE_OPTS += -qt-sql-odbc endif ifeq ($(BR2_PACKAGE_QT_PSQL),y) QT_CONFIGURE_OPTS += -qt-sql-psql +QT_CONFIGURE_ENV += PSQL_LIBS=-L$(STAGING_DIR)/usr/lib +QT_DEPENDENCIES += postgresql endif ifeq ($(BR2_PACKAGE_QT_SQLITE_QT),y) QT_CONFIGURE_OPTS += -qt-sql-sqlite@@ -503,6 +505,7 @@ define QT_CONFIGURE_CMDS PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \ + $(QT_CONFIGURE_ENV) \ MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" ./configure \ $(if $(VERBOSE),-verbose,-silent) \ -force-pkg-config \
PATCH 1/1 qt: add postgresql driver support
In reply to Floris BosQuoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Floris" == Floris Bos <[email protected]> writes:
Signed-off-by Floris Bos <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 qt5base: add postgresql driver support
In reply to Floris BosQuoted 1 line · On Wednesday 13 August 2014 17:05:41 Floris Bos wrote:
Signed-off-by Floris Bos <[email protected]>
Reviewed-by Fatih A??c? <[email protected]>
Quoted 57 lines
--- package/qt5/qt5base/Config.in | 12 ++++++++++++ package/qt5/qt5base/qt5base.mk | 9 +++++++++ 2 files changed, 21 insertions(+)package/qt5/qt5base/Config.in +12
-0@@ -62,6 +62,18 @@ config BR2_PACKAGE_QT5BASE_MYSQL help Build MySQL plugin If unsure, say n. + +config BR2_PACKAGE_QT5BASE_PSQL + bool "PostgreSQL Plugin" + select BR2_PACKAGE_POSTGRESQL + depends on BR2_TOOLCHAIN_USES_GLIBC + help + Build PostgreSQL plugin + If unsure, say n. + +comment "PostgreSQL needs an (e)glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBC + choice prompt "SQLite 3 support" default BR2_PACKAGE_QT5BASE_SQLITE_NONE(quoted diff) +0
-0
b/package/qt5/qt5base/qt5base.mkindex 712208f..88e86c4 100644package/qt5/qt5base/qt5base.mk +8
-0@@ -66,6 +66,14 @@ else QT5BASE_CONFIGURE_OPTS += -no-sql-mysql endif +ifeq ($(BR2_PACKAGE_QT5BASE_PSQL),y) +QT5BASE_CONFIGURE_OPTS += -plugin-sql-psql +QT5BASE_CONFIGURE_ENV += PSQL_LIBS=-L$(STAGING_DIR)/usr/lib +QT5BASE_DEPENDENCIES += postgresql +else +QT5BASE_CONFIGURE_OPTS += -no-sql-psql +endif + QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_QT),-plugin-sql-sqlite)
QT5BASE_CONFIGURE_OPTS+= $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),-system-sqlite)QT5BASE_DEPENDENCIES
+= $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),sqlite) @@ -170,6 +178,7 @@
defineQT5BASE_CONFIGURE_CMDSpackage/qt5/qt5base/qt5base.mk +1
-0PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \ PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \ MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" \ + $(QT5BASE_CONFIGURE_ENV) \ ./configure \ -v \ -prefix /usr \
PATCH 1/1 qt5base: add postgresql driver support
In reply to Floris BosQuoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Floris" == Floris Bos <[email protected]> writes:
Signed-off-by Floris Bos <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard