* [Buildroot] [PATCH v2 1/4] package/unixodbc: new package
@ 2015-03-06 16:49 Bernd Kuhls
2015-03-06 16:49 ` [Buildroot] [PATCH v2 2/4] package/qt: enable unixodbc support Bernd Kuhls
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Bernd Kuhls @ 2015-03-06 16:49 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: various changes suggested by Thomas
- added license stuff
- added --disable- options, removed indentions
- removed UNIXODBC_REMOVE_TARGET_BINS_FROM_STAGING
originally needed by apr-util because its configure script tries to
call bin/odbc_config from staging dir which fails because this file
is compiled for target. A fix was added to the apr-util package.
package/Config.in | 1 +
package/unixodbc/Config.in | 7 +++++++
package/unixodbc/unixodbc.hash | 2 ++
package/unixodbc/unixodbc.mk | 30 ++++++++++++++++++++++++++++++
4 files changed, 40 insertions(+)
create mode 100644 package/unixodbc/Config.in
create mode 100644 package/unixodbc/unixodbc.hash
create mode 100644 package/unixodbc/unixodbc.mk
diff --git a/package/Config.in b/package/Config.in
index 584887b..03edca9 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -672,6 +672,7 @@ menu "Database"
source "package/redis/Config.in"
source "package/sqlcipher/Config.in"
source "package/sqlite/Config.in"
+ source "package/unixodbc/Config.in"
endmenu
menu "Filesystem"
diff --git a/package/unixodbc/Config.in b/package/unixodbc/Config.in
new file mode 100644
index 0000000..c23e0a5
--- /dev/null
+++ b/package/unixodbc/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_UNIXODBC
+ bool "unixodbc"
+ help
+ The unixODBC Project goals are to develop and promote unixODBC
+ to be the definitive standard for ODBC on non MS Windows platforms.
+
+ http://www.unixodbc.org
diff --git a/package/unixodbc/unixodbc.hash b/package/unixodbc/unixodbc.hash
new file mode 100644
index 0000000..a5c2d11
--- /dev/null
+++ b/package/unixodbc/unixodbc.hash
@@ -0,0 +1,2 @@
+# From ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.2.tar.gz.md5
+md5 5e4528851eda5d3d4aed249b669bd05b unixODBC-2.3.2.tar.gz
diff --git a/package/unixodbc/unixodbc.mk b/package/unixodbc/unixodbc.mk
new file mode 100644
index 0000000..067c1ca
--- /dev/null
+++ b/package/unixodbc/unixodbc.mk
@@ -0,0 +1,30 @@
+################################################################################
+#
+# unixodbc
+#
+################################################################################
+
+UNIXODBC_VERSION = 2.3.2
+UNIXODBC_SOURCE = unixODBC-$(UNIXODBC_VERSION).tar.gz
+UNIXODBC_SITE = ftp://ftp.unixodbc.org/pub/unixODBC
+UNIXODBC_INSTALL_STAGING = YES
+UNIXODBC_LICENSE = LGPLv2.1+ (library), GPLv2+ (programs)
+UNIXODBC_LICENSE_FILES = COPYING exe/COPYING
+
+UNIXODBC_CONF_OPTS = --enable-drivers --enable-driver-conf
+
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+UNIXODBC_CONF_OPTS += --enable-iconv
+UNIXODBC_DEPENDENCIES += libiconv
+else
+UNIXODBC_CONF_OPTS += --disable-iconv
+endif
+
+ifeq ($(BR2_PACKAGE_READLINE),y)
+UNIXODBC_CONF_OPTS += --enable-readline
+UNIXODBC_DEPENDENCIES += readline
+else
+UNIXODBC_CONF_OPTS += --disable-readline
+endif
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 2/4] package/qt: enable unixodbc support
2015-03-06 16:49 [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Bernd Kuhls
@ 2015-03-06 16:49 ` Bernd Kuhls
2015-04-05 13:58 ` Thomas Petazzoni
2015-03-06 16:49 ` [Buildroot] [PATCH v2 3/4] package/php: add " Bernd Kuhls
` (2 subsequent siblings)
3 siblings, 1 reply; 9+ messages in thread
From: Bernd Kuhls @ 2015-03-06 16:49 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: no changes
package/qt/Config.sql.in | 2 +-
package/qt/qt.mk | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/qt/Config.sql.in b/package/qt/Config.sql.in
index fd62657..81337a1 100644
--- a/package/qt/Config.sql.in
+++ b/package/qt/Config.sql.in
@@ -23,7 +23,7 @@ config BR2_PACKAGE_QT_IBASE
config BR2_PACKAGE_QT_ODBC
bool "ODBC Driver"
- depends on BROKEN # libodbc not in BR
+ select BR2_PACKAGE_UNIXODBC
help
Build ODBC driver
If unsure, say n.
diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index 3fb557f..1612f5d 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -359,6 +359,7 @@ QT_DEPENDENCIES += mysql
endif
ifeq ($(BR2_PACKAGE_QT_ODBC),y)
QT_CONFIGURE_OPTS += -qt-sql-odbc
+QT_DEPENDENCIES += unixodbc
endif
ifeq ($(BR2_PACKAGE_QT_PSQL),y)
QT_CONFIGURE_OPTS += -qt-sql-psql
--
1.7.10.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 3/4] package/php: add unixodbc support
2015-03-06 16:49 [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Bernd Kuhls
2015-03-06 16:49 ` [Buildroot] [PATCH v2 2/4] package/qt: enable unixodbc support Bernd Kuhls
@ 2015-03-06 16:49 ` Bernd Kuhls
2015-04-05 14:12 ` Thomas Petazzoni
2015-03-06 16:49 ` [Buildroot] [PATCH v2 4/4] package/apr-util: add support for unixodbc Bernd Kuhls
2015-03-10 11:43 ` [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Gustavo Zacarias
3 siblings, 1 reply; 9+ messages in thread
From: Bernd Kuhls @ 2015-03-06 16:49 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: no changes
package/php/Config.ext | 6 ++++++
package/php/php.mk | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/package/php/Config.ext b/package/php/Config.ext
index daf16c7..c4181fd 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -156,6 +156,12 @@ config BR2_PACKAGE_PHP_EXT_PDO_SQLITE
help
SQLite3 driver for PDO
+config BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC
+ bool "unixODBC"
+ select BR2_PACKAGE_UNIXODBC
+ help
+ unixODBC driver for PDO
+
endif
comment "Human language and character encoding support"
diff --git a/package/php/php.mk b/package/php/php.mk
index dd52508..054fdc7 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -174,6 +174,10 @@ ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL),y)
PHP_CONF_OPTS += --with-pdo-pgsql=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += postgresql
endif
+ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC),y)
+ PHP_CONF_OPTS += --with-pdo-odbc=unixODBC,$(STAGING_DIR)/usr
+ PHP_DEPENDENCIES += unixodbc
+endif
endif
### Use external PCRE if it's available
--
1.7.10.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 4/4] package/apr-util: add support for unixodbc
2015-03-06 16:49 [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Bernd Kuhls
2015-03-06 16:49 ` [Buildroot] [PATCH v2 2/4] package/qt: enable unixodbc support Bernd Kuhls
2015-03-06 16:49 ` [Buildroot] [PATCH v2 3/4] package/php: add " Bernd Kuhls
@ 2015-03-06 16:49 ` Bernd Kuhls
2015-04-05 14:12 ` Thomas Petazzoni
2015-03-10 11:43 ` [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Gustavo Zacarias
3 siblings, 1 reply; 9+ messages in thread
From: Bernd Kuhls @ 2015-03-06 16:49 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: avoid picking up $(STAGING_DIR)/usr/bin/odbc_config, this file is
compiled for target and breaks unixodbc detection when used
package/apr-util/apr-util.mk | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/package/apr-util/apr-util.mk b/package/apr-util/apr-util.mk
index 3b0a71b..bc0572e 100644
--- a/package/apr-util/apr-util.mk
+++ b/package/apr-util/apr-util.mk
@@ -53,4 +53,13 @@ else
APR_UTIL_CONF_OPTS += --without-crypto
endif
+ifeq ($(BR2_PACKAGE_UNIXODBC),y)
+APR_UTIL_CONF_OPTS += --with-odbc="$(STAGING_DIR)/usr"
+# avoid using target binary $(STAGING_DIR)/usr/bin/odbc_config
+APR_UTIL_CONF_ENV += ac_cv_path_ODBC_CONFIG=""
+APR_UTIL_DEPENDENCIES += unixodbc
+else
+APR_UTIL_CONF_OPTS += --without-odbc
+endif
+
$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 1/4] package/unixodbc: new package
2015-03-06 16:49 [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Bernd Kuhls
` (2 preceding siblings ...)
2015-03-06 16:49 ` [Buildroot] [PATCH v2 4/4] package/apr-util: add support for unixodbc Bernd Kuhls
@ 2015-03-10 11:43 ` Gustavo Zacarias
2015-03-13 20:26 ` Bernd Kuhls
3 siblings, 1 reply; 9+ messages in thread
From: Gustavo Zacarias @ 2015-03-10 11:43 UTC (permalink / raw)
To: buildroot
On 03/06/2015 01:49 PM, Bernd Kuhls wrote:
> --- /dev/null
> +++ b/package/unixodbc/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_UNIXODBC
> + bool "unixodbc"
> + help
> + The unixODBC Project goals are to develop and promote unixODBC
> + to be the definitive standard for ODBC on non MS Windows platforms.
> +
> + http://www.unixodbc.org
Hi.
According to my tests it needs threads, you'll need to propagate that
dependency upwards to php-pdo-unixdobc as well.
Other than that it looks good.
Regards.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 1/4] package/unixodbc: new package
2015-03-10 11:43 ` [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Gustavo Zacarias
@ 2015-03-13 20:26 ` Bernd Kuhls
0 siblings, 0 replies; 9+ messages in thread
From: Bernd Kuhls @ 2015-03-13 20:26 UTC (permalink / raw)
To: buildroot
Gustavo Zacarias <gustavo@zacarias.com.ar> wrote in
news:54FED8D0.5020406 at zacarias.com.ar:
> According to my tests it needs threads
Hi Gustavo,
I managed to fix the compile error related to a wrong pthread detection
scheme: http://patchwork.ozlabs.org/patch/450089/
Regards, Bernd
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 2/4] package/qt: enable unixodbc support
2015-03-06 16:49 ` [Buildroot] [PATCH v2 2/4] package/qt: enable unixodbc support Bernd Kuhls
@ 2015-04-05 13:58 ` Thomas Petazzoni
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2015-04-05 13:58 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Fri, 6 Mar 2015 17:49:42 +0100, Bernd Kuhls wrote:
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: no changes
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 3/4] package/php: add unixodbc support
2015-03-06 16:49 ` [Buildroot] [PATCH v2 3/4] package/php: add " Bernd Kuhls
@ 2015-04-05 14:12 ` Thomas Petazzoni
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2015-04-05 14:12 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Fri, 6 Mar 2015 17:49:43 +0100, Bernd Kuhls wrote:
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: no changes
>
> package/php/Config.ext | 6 ++++++
> package/php/php.mk | 4 ++++
> 2 files changed, 10 insertions(+)
Applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH v2 4/4] package/apr-util: add support for unixodbc
2015-03-06 16:49 ` [Buildroot] [PATCH v2 4/4] package/apr-util: add support for unixodbc Bernd Kuhls
@ 2015-04-05 14:12 ` Thomas Petazzoni
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2015-04-05 14:12 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Fri, 6 Mar 2015 17:49:44 +0100, Bernd Kuhls wrote:
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: avoid picking up $(STAGING_DIR)/usr/bin/odbc_config, this file is
> compiled for target and breaks unixodbc detection when used
Applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-04-05 14:12 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 16:49 [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Bernd Kuhls
2015-03-06 16:49 ` [Buildroot] [PATCH v2 2/4] package/qt: enable unixodbc support Bernd Kuhls
2015-04-05 13:58 ` Thomas Petazzoni
2015-03-06 16:49 ` [Buildroot] [PATCH v2 3/4] package/php: add " Bernd Kuhls
2015-04-05 14:12 ` Thomas Petazzoni
2015-03-06 16:49 ` [Buildroot] [PATCH v2 4/4] package/apr-util: add support for unixodbc Bernd Kuhls
2015-04-05 14:12 ` Thomas Petazzoni
2015-03-10 11:43 ` [Buildroot] [PATCH v2 1/4] package/unixodbc: new package Gustavo Zacarias
2015-03-13 20:26 ` Bernd Kuhls
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox