package/libdbi-drivers: new package
The libdbi-drivers project provides the database-specific drivers for the libdbi framework http://libdbi-drivers.sourceforge.net/ Based on initial work from Nicolas Carrier <nicolas.carrier@orolia.com> Signed-off-by: Herve Codina <herve.codina@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
c6aac6ebdb
commit
ddc6f1199a
@ -1152,6 +1152,7 @@ F: package/json-glib/
|
||||
N: Hervé Codina <herve.codina@bootlin.com>
|
||||
F: package/dtbocfg/
|
||||
F: package/libdbi/
|
||||
F: package/libdbi-drivers/
|
||||
F: package/lua-augeas/
|
||||
F: support/testing/tests/package/test_dtbocfg.py
|
||||
F: support/testing/tests/package/test_lua_augeas.py
|
||||
@ -1990,6 +1991,7 @@ F: configs/galileo_defconfig
|
||||
N: Nicolas Carrier <nicolas.carrier@orolia.com>
|
||||
F: package/bmap-tools/
|
||||
F: package/libdbi/
|
||||
F: package/libdbi-drivers/
|
||||
F: package/lua-augeas/
|
||||
F: package/php-xdebug/
|
||||
F: package/python-augeas/
|
||||
|
@ -1416,6 +1416,7 @@ menu "Database"
|
||||
source "package/kompexsqlite/Config.in"
|
||||
source "package/leveldb/Config.in"
|
||||
source "package/libdbi/Config.in"
|
||||
source "package/libdbi-drivers/Config.in"
|
||||
source "package/libgit2/Config.in"
|
||||
source "package/libmdbx/Config.in"
|
||||
source "package/libodb/Config.in"
|
||||
|
@ -0,0 +1,47 @@
|
||||
From bc966656d8598a6d87c901a67ecdb91c436f4939 Mon Sep 17 00:00:00 2001
|
||||
From: Herve Codina <herve.codina@bootlin.com>
|
||||
Date: Wed, 29 Sep 2021 15:08:33 +0200
|
||||
Subject: [PATCH] build: Use MYSQL_CONFIG variable instead of
|
||||
'mysql_config'
|
||||
|
||||
The MYSQL_CONFIG variable is used to check 'mysql_config' prog.
|
||||
This variable can be override by the user but was not used for
|
||||
retrieving MYSQL_INCLUDE, MYSQL_LIBS, ...
|
||||
|
||||
This commit replaces the hardcoded usage of 'mysql_config' by
|
||||
the use of MYSQL_CONFIG variable.
|
||||
|
||||
This lead to 'MYSQL_CONFIG=/some/where/mysql_config ./configure'
|
||||
command to work properly.
|
||||
|
||||
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
|
||||
---
|
||||
acinclude.m4 | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index e99318f..9dd2b0f 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -116,15 +116,15 @@ if test "$ac_mysql" = "yes"; then
|
||||
fi
|
||||
|
||||
if test "$ac_mysql_incdir" = "no"; then
|
||||
- MYSQL_INCLUDE=`mysql_config --include`
|
||||
+ MYSQL_INCLUDE=`$MYSQL_CONFIG --include`
|
||||
else
|
||||
MYSQL_INCLUDE=-I$ac_mysql_incdir
|
||||
fi
|
||||
if test "$ac_mysql_libdir" = "no"; then
|
||||
if test "$ac_mysql_threadsafe" = "YES"; then
|
||||
- MYSQL_LIBS=`mysql_config --libs_r`
|
||||
+ MYSQL_LIBS=`$MYSQL_CONFIG --libs_r`
|
||||
else
|
||||
- MYSQL_LIBS=`mysql_config --libs`
|
||||
+ MYSQL_LIBS=`$MYSQL_CONFIG --libs`
|
||||
fi
|
||||
else
|
||||
if test "$ac_mysql_threadsafe" = "YES"; then
|
||||
--
|
||||
2.31.1
|
||||
|
8
package/libdbi-drivers/Config.in
Normal file
8
package/libdbi-drivers/Config.in
Normal file
@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_LIBDBI_DRIVERS
|
||||
bool "libdbi-drivers"
|
||||
select BR2_PACKAGE_LIBDBI
|
||||
help
|
||||
The libdbi-drivers project provides the
|
||||
database-specific drivers for the libdbi framework.
|
||||
|
||||
http://libdbi-drivers.sourceforge.net
|
3
package/libdbi-drivers/libdbi-drivers.hash
Normal file
3
package/libdbi-drivers/libdbi-drivers.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 0237c8006cefd6873f0b43d9676b14d5674270adf5e7501cd0e3423ff5b41549 libdbi-drivers-7a8e24ec1cf763226f4be31ba1018d888d4989f3-br1.tar.gz
|
||||
sha256 5bbcbb737e60fe9deba08ecbd00920cfcc3403ba2e534c64fdeea49d6bb87509 COPYING
|
48
package/libdbi-drivers/libdbi-drivers.mk
Normal file
48
package/libdbi-drivers/libdbi-drivers.mk
Normal file
@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
#
|
||||
# libdbi-drivers
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBDBI_DRIVERS_VERSION = 7a8e24ec1cf763226f4be31ba1018d888d4989f3
|
||||
LIBDBI_DRIVERS_SITE = https://git.code.sf.net/p/libdbi-drivers/libdbi-drivers
|
||||
LIBDBI_DRIVERS_SITE_METHOD = git
|
||||
LIBDBI_DRIVERS_LICENSE = LGPL-2.1+
|
||||
LIBDBI_DRIVERS_LICENSE_FILES = COPYING
|
||||
LIBDBI_DRIVERS_INSTALL_STAGING = YES
|
||||
LIBDBI_DRIVERS_DEPENDENCIES = libdbi host-pkgconf
|
||||
LIBDBI_DRIVERS_AUTORECONF = YES
|
||||
|
||||
LIBDBI_DRIVERS_CONF_OPTS = --with-dbi-libdir=$(STAGING_DIR)/usr/lib
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
||||
LIBDBI_DRIVERS_DEPENDENCIES += mysql
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --with-mysql
|
||||
LIBDBI_DRIVERS_CONF_ENV += MYSQL_CONFIG="$(STAGING_DIR)/usr/bin/mysql_config"
|
||||
else
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-mysql
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
||||
LIBDBI_DRIVERS_DEPENDENCIES += postgresql
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --with-pgsql
|
||||
else
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-pgsql
|
||||
endif
|
||||
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-sqlite
|
||||
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
||||
LIBDBI_DRIVERS_DEPENDENCIES += sqlite
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --with-sqlite3
|
||||
else
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-sqlite3
|
||||
endif
|
||||
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-msql # MiniSQL
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-oracle # Oracle OCI
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-firebird # Firebird/Interbase
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-freetds # Freetds
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-ingres # Ingres
|
||||
LIBDBI_DRIVERS_CONF_OPTS += --without-db2 # IBM DB2
|
||||
|
||||
$(eval $(autotools-package))
|
Loading…
Reference in New Issue
Block a user