Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
From 9189ef77679c22de3bbd2142031858373236520b Mon Sep 17 00:00:00 2001
From: Michiel Beijen <michiel.beijen@gmail.com>
Date: Fri, 23 Feb 2018 07:52:33 +0000
Subject: [PATCH] Use net_buffer_length macro if available
Upstream: https://github.com/perl5-dbi/DBD-mysql/commit/0f0cebe87fab335873fd3701bc304922da826940
(cherry picked from commit 0f0cebe87fab335873fd3701bc304922da826940)
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
mysql.xs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/mysql.xs b/mysql.xs
index 8edee55..9b4d60f 100644
--- a/mysql.xs
+++ b/mysql.xs
@@ -819,15 +819,14 @@ dbd_mysql_get_info(dbh, sql_info_type)
retsv = newSVpvn("`", 1);
break;
case SQL_MAXIMUM_STATEMENT_LENGTH:
-#if !defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 50709
- /* MariaDB 10 is not MySQL source level compatible so this
- only applies to MySQL*/
- /* mysql_get_option() was added in mysql 5.7.3 */
- /* MYSQL_OPT_NET_BUFFER_LENGTH was added in mysql 5.7.9 */
+ /* net_buffer_length macro is not defined in MySQL 5.7 and some MariaDB
+ versions - if it is not available, use newer mysql_get_option */
+#if !defined(net_buffer_length)
+ ;
+ unsigned long buffer_len;
mysql_get_option(NULL, MYSQL_OPT_NET_BUFFER_LENGTH, &buffer_len);
retsv = newSViv(buffer_len);
#else
- /* before mysql 5.7.9 use net_buffer_length macro */
retsv = newSViv(net_buffer_length);
#endif
break;
--
2.44.0

View File

@@ -0,0 +1,20 @@
config BR2_PACKAGE_PERL_DBD_MYSQL
bool "perl-dbd-mysql"
depends on !BR2_STATIC_LIBS
depends on BR2_INSTALL_LIBSTDCPP # mariadb
depends on BR2_USE_MMU # mariadb
depends on BR2_TOOLCHAIN_HAS_THREADS # mariadb
depends on BR2_TOOLCHAIN_HAS_ATOMIC || BR2_TOOLCHAIN_HAS_SYNC_8 # mariadb
depends on BR2_USE_WCHAR # mariadb
select BR2_PACKAGE_MARIADB
select BR2_PACKAGE_PERL_DBI # runtime
help
A MySQL driver for the Perl5 Database Interface (DBI).
http://dbi.perl.org/
comment "perl-dbd-mysql needs a toolchain w/ dynamic library, wchar, C++, threads"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_ATOMIC || BR2_TOOLCHAIN_HAS_SYNC_8
depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR

View File

@@ -0,0 +1,6 @@
# retrieved by scancpan from http://cpan.metacpan.org/
md5 bdf4f4d899b8af29ebd8ebfb7438d05f DBD-mysql-4.046.tar.gz
sha256 6165652ec959d05b97f5413fa3dff014b78a44cf6de21ae87283b28378daf1f7 DBD-mysql-4.046.tar.gz
# computed by scancpan
sha256 7a9ba29702b957805cfa8aa63bca43175625824263232dbade0010d385ab888c LICENSE

View File

@@ -0,0 +1,19 @@
################################################################################
#
# perl-dbd-mysql
#
################################################################################
PERL_DBD_MYSQL_VERSION = 4.046
PERL_DBD_MYSQL_SOURCE = DBD-mysql-$(PERL_DBD_MYSQL_VERSION).tar.gz
PERL_DBD_MYSQL_SITE = $(BR2_CPAN_MIRROR)/authors/id/C/CA/CAPTTOFU
PERL_DBD_MYSQL_DEPENDENCIES = \
host-perl-dbi \
mariadb
PERL_DBD_MYSQL_LICENSE = Artistic or GPL-1.0+
PERL_DBD_MYSQL_LICENSE_FILES = LICENSE
PERL_DBD_MYSQL_DISTNAME = DBD-mysql
PERL_DBD_MYSQL_CONF_OPTS = --mysql_config=$(STAGING_DIR)/usr/bin/mysql_config
$(eval $(perl-package))