[arch-commits] Commit in perl-dbd-mysql/trunk (PKGBUILD mariadb-fix.patch)
Felix Yan
felixonmars at archlinux.org
Mon Sep 17 09:32:01 UTC 2018
Date: Monday, September 17, 2018 @ 09:32:00
Author: felixonmars
Revision: 334679
upgpkg: perl-dbd-mysql 4.048-1
Added:
perl-dbd-mysql/trunk/mariadb-fix.patch
Modified:
perl-dbd-mysql/trunk/PKGBUILD
-------------------+
PKGBUILD | 16 ++++++++++++----
mariadb-fix.patch | 19 +++++++++++++++++++
2 files changed, 31 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-17 08:52:42 UTC (rev 334678)
+++ PKGBUILD 2018-09-17 09:32:00 UTC (rev 334679)
@@ -4,8 +4,8 @@
# Contributor: Eric Johnson <eric at coding-zone.com>
pkgname=perl-dbd-mysql
-pkgver=4.046
-pkgrel=2
+pkgver=4.048
+pkgrel=1
pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD'
arch=('x86_64')
license=('GPL' 'PerlArtistic')
@@ -14,9 +14,17 @@
makedepends=('perl-devel-checklib')
checkdepends=('mariadb' 'perl-test-deep')
options=('!emptydirs')
-source=(http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-${pkgver}.tar.gz)
-sha512sums=('57b3243a724ac21a11b6eea10aa1cfc821f295cb5bf44f9eaabeb979d3f8e1f7f5e00d40b144a16688d0a358c82c2bb00f630e925e176f29a9ca84b8ee7fb9cc')
+source=(http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/DBD-mysql-${pkgver}.tar.gz
+ mariadb-fix.patch)
+sha512sums=('30a3c9d38f9331a20e2c4c65bfbb547443d888afb35c7fd42c8220797d8ecf79640d95736a6fb3ebc4df71c25366e93c19ba37b258aa17e7c5623a1404607e62'
+ '12a54c184240babe3d35391122dbdd37de34f673cf411ddaeb89d1d2eb4e5edf3c2a3b3bd01e79da8f11b90a8b77102f52505683eea293ff4b0b764ee427bcc3')
+prepare() {
+ cd DBD-mysql-$pkgver
+ # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231271
+ patch -p0 -i ../mariadb-fix.patch
+}
+
build() {
cd DBD-mysql-$pkgver
perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
Added: mariadb-fix.patch
===================================================================
--- mariadb-fix.patch (rev 0)
+++ mariadb-fix.patch 2018-09-17 09:32:00 UTC (rev 334679)
@@ -0,0 +1,19 @@
+--- dbdimp.c.orig 2018-09-08 20:02:03 UTC
++++ dbdimp.c
+@@ -1907,14 +1907,14 @@ MYSQL *mysql_dr_connect(
+ (SvTRUE(*svp) ? "utf8" : "latin1"));
+ }
+
+-#if (MYSQL_VERSION_ID >= 50723) && (MYSQL_VERSION_ID < MARIADB_BASE_VERSION)
++#if (MYSQL_VERSION_ID >= 50723) && (MYSQL_VERSION_ID < MARIADB_VERSION_ID)
+ if ((svp = hv_fetch(hv, "mysql_get_server_pubkey", 23, FALSE)) && *svp && SvTRUE(*svp)) {
+ my_bool server_get_pubkey = 1;
+ mysql_options(sock, MYSQL_OPT_GET_SERVER_PUBLIC_KEY, &server_get_pubkey);
+ }
+ #endif
+
+-#if (MYSQL_VERSION_ID >= 50600) && (MYSQL_VERSION_ID < MARIADB_BASE_VERSION)
++#if (MYSQL_VERSION_ID >= 50600) && (MYSQL_VERSION_ID < MARIADB_VERSION_ID)
+ if ((svp = hv_fetch(hv, "mysql_server_pubkey", 19, FALSE)) && *svp) {
+ STRLEN plen;
+ char *server_pubkey = SvPV(*svp, plen);
\ No newline at end of file
More information about the arch-commits
mailing list