mariadb: add libdbi-perl to RDEPENDS
v2 cover mariadb: add libdbi-perl to RDEPENDS
Changed in v2:
* Move libdbi-perl from meta-perl to meta-oe
* Add another dependency libdbd-mysql-perl
* Add new recipe libdbd-mysql-perl
* Add libmysqlclient to PROVIDES for mariadb as
libdbd-mysql-perl depends on libmysqlclient
PATCH v2 1/3 mariadb: add libdbi-perl to RDEPENDS
From: Zhixiong Chi <[email protected]>
The commands(mysql_convert_table_format and mysql_setpermission) need the supported API provided by the libdbi-perl package.
So add the libdbi-perl to the variable RDEPENDS of mariabdb-server.
Move libdbi-perl from meta-perl to meta-oe
--- meta-oe/recipes-devtools/perl/libdbi-perl_1.636.bb | 26 ++++++++++++++++++++++ meta-oe/recipes-support/mysql/mariadb.inc | 2 +- meta-perl/recipes-perl/libdb/libdbi-perl_1.636.bb | 26 ---------------------- 3 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 meta-oe/recipes-devtools/perl/libdbi-perl_1.636.bb delete mode 100644 meta-perl/recipes-perl/libdb/libdbi-perl_1.636.bb
meta-oe/recipes-devtools/perl/libdbi-perl_1.636.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "The Perl Database Interface" +DESCRIPTION = "DBI is a database access Application Programming Interface \ +(API) for the Perl Language. The DBI API Specification defines a set \ +of functions, variables and conventions that provide a consistent \ +database interface independent of the actual database being used. \ +" +HOMEPAGE = "http://search.cpan.org/dist/DBI/" +SECTION = "libs" +LICENSE = "Artistic-1.0 | GPL-1.0+" +RDEPENDS_${PN} = " perl-module-carp \ + perl-module-exporter \ + perl-module-exporter-heavy \ + perl-module-dynaloader \ +" + +LIC_FILES_CHKSUM = "file://DBI.pm;beginline=8147;endline=8151;md5=2e5f6cf47e5ad7b77dcb6172edc29292" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-${PV}.tar.gz" +SRC_URI[md5sum] = "60f291e5f015550dde71d1858dfe93ba" +SRC_URI[sha256sum] = "8f7ddce97c04b4b7a000e65e5d05f679c964d62c8b02c94c1a7d815bb2dd676c" + +S = "${WORKDIR}/DBI-${PV}" + +inherit cpan + +BBCLASSEXTEND = "native"
meta-oe/recipes-support/mysql/mariadb.inc +1 -1
@@ -169,7 +169,7 @@ RDEPENDS_${PN}-client = "perl perl-module-getopt-long perl-module-file-temp \ RDEPENDS_${PN}-server = "perl perl-module-getopt-long perl-module-data-dumper \ perl-module-file-basename perl-module-file-path perl-module-sys-hostname \ perl-module-file-copy perl-module-file-temp perl-module-posix \ - ${PN}-client" + ${PN}-client libdbi-perl" RDEPENDS_${PN}-leftovers = "perl perl-module-cwd perl-module-benchmark perl-module-getopt-long \ perl-module-posix perl-module-data-dumper perl-module-sigtrap perl-module-threads \ perl-module-threads-shared perl-module-io-socket perl-module-sys-hostname perl-module-file-copy \
meta-perl/recipes-perl/libdb/libdbi-perl_1.636.bb deleted +0 -26
@@ -1,26 +0,0 @@ -SUMMARY = "The Perl Database Interface" -DESCRIPTION = "DBI is a database access Application Programming Interface \ -(API) for the Perl Language. The DBI API Specification defines a set \ -of functions, variables and conventions that provide a consistent \ -database interface independent of the actual database being used. \ -" -HOMEPAGE = "http://search.cpan.org/dist/DBI/" -SECTION = "libs" -LICENSE = "Artistic-1.0 | GPL-1.0+" -RDEPENDS_${PN} = " perl-module-carp \ - perl-module-exporter \ - perl-module-exporter-heavy \ - perl-module-dynaloader \ -" - -LIC_FILES_CHKSUM = "file://DBI.pm;beginline=8147;endline=8151;md5=2e5f6cf47e5ad7b77dcb6172edc29292" - -SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-${PV}.tar.gz" -SRC_URI[md5sum] = "60f291e5f015550dde71d1858dfe93ba" -SRC_URI[sha256sum] = "8f7ddce97c04b4b7a000e65e5d05f679c964d62c8b02c94c1a7d815bb2dd676c" - -S = "${WORKDIR}/DBI-${PV}" - -inherit cpan - -BBCLASSEXTEND = "native"
Signature · 1 line
2.8.1
PATCH v2 2/3 mariadb: add libdbd-mysql-perl to RDEPENDS
In reply to [email protected]From: Mingli Yu <[email protected]>
* Add libdbd-mysql-perl to RDEPENDS as mysql_setpermission depends on DBD::mysql module
root@test:~# mysql_setpermission -h Option h is ambiguous (help, host) Password for user to connect to MySQL: install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: /etc/perl /usr/lib64/perl/site_perl/5.22.1/ /usr/lib64/perl/site_perl/5.22.1 /usr/lib64/perl/vendor_perl/5.22.1/ /usr/lib64/perl/vendor_perl/5.22.1 /usr/lib64/perl/5.22.1/ /usr/lib64/perl/5.22.1 /usr/local/lib/site_perl /usr/lib64/perl/5.22.1 .) at (eval 11) line 3, <STDIN> line 1. Perhaps the DBD::mysql perl module hasn't been fully installed, or perhaps the capitalisation of 'mysql' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge. at /usr/bin/mysql_setpermission line 90.
* Add libmysqlclient to Provides as libdbd-mysql-perl depend on it
--- meta-oe/recipes-support/mysql/mariadb.inc | 2 +- meta-oe/recipes-support/mysql/mariadb_5.5.50.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/mysql/mariadb.inc +1 -1
@@ -169,7 +169,7 @@ RDEPENDS_${PN}-client = "perl perl-module-getopt-long perl-module-file-temp \ RDEPENDS_${PN}-server = "perl perl-module-getopt-long perl-module-data-dumper \ perl-module-file-basename perl-module-file-path perl-module-sys-hostname \ perl-module-file-copy perl-module-file-temp perl-module-posix \ - ${PN}-client libdbi-perl" + ${PN}-client libdbi-perl libdbd-mysql-perl" RDEPENDS_${PN}-leftovers = "perl perl-module-cwd perl-module-benchmark perl-module-getopt-long \ perl-module-posix perl-module-data-dumper perl-module-sigtrap perl-module-threads \ perl-module-threads-shared perl-module-io-socket perl-module-sys-hostname perl-module-file-copy \
meta-oe/recipes-support/mysql/mariadb_5.5.50.bb +1 -1
@@ -4,7 +4,7 @@ EXTRA_OECMAKE += "-DSTACK_DIRECTION=-1" DEPENDS += "mariadb-native ncurses zlib readline libaio libevent" -PROVIDES += "mysql5" +PROVIDES += "mysql5 libmysqlclient" RPROVIDES_${PN} += "mysql5" RREPLACES_${PN} += "mysql5"
Signature · 1 line
2.8.1
PATCH v2 3/3 libdbd-mysql-perl: add new recipe
In reply to [email protected]From: Mingli Yu <[email protected]>
* Add new recipe libdbd-mysql-perl as mariadb-server rdepends on it
--- .../perl/libdbd-mysql-perl_4.036.bb | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.036.bb
meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.036.bb new file +25 -0
@@ -0,0 +1,25 @@ +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 = "http://search.cpan.org/~michielb/DBD-mysql-4.036/lib/DBD/mysql.pm" + +SECTION = "libs" +LICENSE = "Artistic-1.0 | GPL-1.0+" +DEPENDS += "libdbi-perl-native libmysqlclient" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=d0a06964340e5c0cde88b7af611f755c" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/DBD-mysql-${PV}.tar.gz \ +" + +SRC_URI[md5sum] = "fdee1d8dc4ae54bc6cb7cd5a3f3d3342" +SRC_URI[sha256sum] = "5c48a823f86b8110ccb6504c6176ca248b52f56829dd4548bc39c3509f4154cf" + +S = "${WORKDIR}/DBD-mysql-${PV}" + +inherit cpan
Signature · 1 line
2.8.1