Initial Commit
- initial default booting image
This commit is contained in:
45
package/libdbi-drivers/0001-libdbi-drivers-c99.patch
Normal file
45
package/libdbi-drivers/0001-libdbi-drivers-c99.patch
Normal file
@@ -0,0 +1,45 @@
|
||||
Fix type errors in the cgreen with constraints facility.
|
||||
|
||||
Upstream: https://sourceforge.net/p/libdbi-drivers/bugs/28/
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[Bernd: rebased for git tree used by buildroot]
|
||||
|
||||
diff --git a/tests/cgreen/src/constraint.c b/tests/cgreen/src/constraint.c
|
||||
index c19c0ddd41a7bfa7..95673dd3e222a3cf 100644
|
||||
--- a/tests/cgreen/src/constraint.c
|
||||
+++ b/tests/cgreen/src/constraint.c
|
||||
@@ -22,8 +22,7 @@ static double unbox_double(intptr_t box);
|
||||
static double as_double(intptr_t box);
|
||||
|
||||
static int compare_using_matcher(Constraint *constraint, intptr_t actual);
|
||||
-static void test_with_matcher(Constraint *constraint, const char *function, const char* matcher_name, intptr_t actual, const char *test_file, int test_line, TestReporter *reporter);
|
||||
-
|
||||
+static void test_with_matcher(Constraint *constraint, const char *function, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter);
|
||||
|
||||
void destroy_constraint(void *abstract) {
|
||||
Constraint *constraint = (Constraint *)abstract;
|
||||
@@ -164,11 +163,11 @@
|
||||
}
|
||||
|
||||
static int compare_using_matcher(Constraint *constraint, intptr_t actual) {
|
||||
- int (*matches)(const void*) = (void *)(intptr_t)constraint->expected;
|
||||
- return matches((void *)actual);
|
||||
+ int (*matches)(const void*) = (int (*)(const void*)) constraint->expected;
|
||||
+ return matches((const void *)actual);
|
||||
}
|
||||
|
||||
-static void test_with_matcher(Constraint *constraint, const char *function, const char* matcher_name, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter) {
|
||||
+static void test_with_matcher(Constraint *constraint, const char *function, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter) {
|
||||
(*reporter->assert_true)(
|
||||
reporter,
|
||||
test_file,
|
||||
@@ -176,7 +175,7 @@ static void test_with_matcher(Constraint *constraint, const char *function, cons
|
||||
(*constraint->compare)(constraint, matcher_function),
|
||||
"Wanted parameter [%s] to match [%s] in function [%s]",
|
||||
constraint->parameter,
|
||||
- matcher_name,
|
||||
+ constraint->name,
|
||||
function);
|
||||
}
|
||||
|
||||
12
package/libdbi-drivers/Config.in
Normal file
12
package/libdbi-drivers/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_LIBDBI_DRIVERS
|
||||
bool "libdbi-drivers"
|
||||
depends on !BR2_STATIC_LIBS # libdbi
|
||||
select BR2_PACKAGE_LIBDBI
|
||||
help
|
||||
The libdbi-drivers project provides the
|
||||
database-specific drivers for the libdbi framework.
|
||||
|
||||
http://libdbi-drivers.sourceforge.net
|
||||
|
||||
comment "libdbi-drivers needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
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 a1e9c65153141a8adf91e97e782a2d55b9641dec5a6440ffa82e3d7cee724ce2 libdbi-drivers-0bfae6c43134cf58dc89364328545982ca297abb-git4.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 = 0bfae6c43134cf58dc89364328545982ca297abb
|
||||
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_MARIADB),y)
|
||||
LIBDBI_DRIVERS_DEPENDENCIES += mariadb
|
||||
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))
|
||||
Reference in New Issue
Block a user