replace libdbd-mysql-perl with dbd-mariadb

libdbd-mysql-perl is broken with mariadb/gcc14 and upstream does not support mariadb.
[https://github.com/perl5-dbi/DBD-mysql/issues/430]

Use the perl database driver that is provided by the mariadb project instead.
[https://mariadb.com/kb/en/perl-dbi]

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk
2024-06-10 11:36:56 +02:00
committed by Khem Raj
parent d40a28da04
commit 0ec2b7aab2
3 changed files with 21 additions and 25 deletions
@@ -0,0 +1,20 @@
DESPCRIPTION = "DBD::MariaDB is the Perl5 Database Interface driver for MariaDB and MySQL databases."
HOMEPAGE = "https://metacpan.org/dist/DBD-MariaDB"
LICENSE = "GPL-1.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d0a06964340e5c0cde88b7af611f755c"
DEPENDS = "libdbi-perl-native libdev-checklib-perl-native libmysqlclient"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PA/PALI/DBD-MariaDB-${PV}.tar.gz"
SRC_URI[sha256sum] = "0d0c76c660ddd55570e48f3e2fdea8f621a69ac0ed48190e8cfcafcb5e9b859d"
RDEPENDS:${PN} = "libdbi-perl"
S = "${WORKDIR}/DBD-MariaDB-${PV}"
inherit cpan
RDEPENDS:${PN}-ptest += " \
libtest-warnings-perl \
perl-module-test-more \
"
@@ -1,24 +0,0 @@
SUMMARY = "A Perl DBI driver for MySQL"
DESCRIPTION = "DBD::mysql is the Perl5 Database Interface driver for \
the MySQL database. In other words: DBD::mysql is an interface between \
the Perl programming language and the MySQL programming API that comes \
with the MySQL relational database management system. Most functions \
provided by this programming API are supported. Some rarely used \
functions are missing, mainly because no-one ever requested them. \
"
HOMEPAGE = "https://github.com/perl5-dbi/DBD-mysql"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
DEPENDS += "libdev-checklib-perl-native libdbi-perl-native libmysqlclient"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d0a06964340e5c0cde88b7af611f755c"
SRCREV = "9b5b70ea372f49fe9bc9e592dae3870596d1e3d6"
SRC_URI = "git://github.com/perl5-dbi/DBD-mysql.git;protocol=https;branch=master"
S = "${WORKDIR}/git"
inherit cpan
EXTRA_OEMAKE = ' CC="${CC} -Wno-incompatible-pointer-types"'