[arch-commits] Commit in perl-dbd-mysql/repos/staging-x86_64 (4 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 1 12:55:46 UTC 2019


    Date: Saturday, June 1, 2019 @ 12:55:45
  Author: foutrelis
Revision: 354674

archrelease: copy trunk to staging-x86_64

Added:
  perl-dbd-mysql/repos/staging-x86_64/PKGBUILD
    (from rev 354673, perl-dbd-mysql/trunk/PKGBUILD)
  perl-dbd-mysql/repos/staging-x86_64/mariadb-10.3.13-zerofill.patch
    (from rev 354673, perl-dbd-mysql/trunk/mariadb-10.3.13-zerofill.patch)
Deleted:
  perl-dbd-mysql/repos/staging-x86_64/PKGBUILD
  perl-dbd-mysql/repos/staging-x86_64/mariadb-10.3.13-zerofill.patch

--------------------------------+
 PKGBUILD                       |  106 +++++++++++++++++++--------------------
 mariadb-10.3.13-zerofill.patch |   58 ++++++++++-----------
 2 files changed, 82 insertions(+), 82 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-01 12:55:41 UTC (rev 354673)
+++ PKGBUILD	2019-06-01 12:55:45 UTC (rev 354674)
@@ -1,53 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-# Contributor: kevin <kevin at archlinux.org>
-# Contributor: Eric Johnson <eric at coding-zone.com>
-
-pkgname=perl-dbd-mysql
-pkgver=4.050
-pkgrel=3
-pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD'
-arch=('x86_64')
-license=('GPL' 'PerlArtistic')
-url="http://search.cpan.org/dist/DBD-mysql/"
-depends=('mariadb-libs' 'perl-dbi')
-makedepends=('perl-devel-checklib')
-checkdepends=('mariadb' 'perl-test-deep')
-options=('!emptydirs')
-source=(https://search.cpan.org/CPAN/authors/id/D/DV/DVEEDEN/DBD-mysql-${pkgver}.tar.gz
-        mariadb-10.3.13-zerofill.patch)
-sha512sums=('910f5b4ba7a7890d50a79f37d04ec8971a4f62acd0fe30bf3ab634f66e3128f0cd6513e5c9da8c807a0f4477d0cc766682ea8dd0d8072d02821b78df51f37879'
-            '090039d383d05958c5d0cf23f13b8062ba89158583ca6dad9ce7c72b28bc3eccc039d4f815aef13592ea35a57662c80156b25aaa04ace171d64a15f5ac489a09')
-
-prepare() {
-  cd DBD-mysql-$pkgver
-
-  # https://github.com/perl5-dbi/DBD-mysql/issues/304
-  patch -Np1 -i ../mariadb-10.3.13-zerofill.patch
-}
-
-build() {
-  cd DBD-mysql-$pkgver
-  perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
-  make
-}
-
-check() {
-  cd DBD-mysql-$pkgver
-  mkdir -p /tmp/mysql_test
-  mysql_install_db \
-     --basedir=/usr \
-     --datadir=/tmp/mysql_test
-  mysqld -P 17999 \
-     --socket=/tmp/socket.mysql \
-     --datadir=/tmp/mysql_test &
-  sleep 10
-  DAEMON_PORT=$!
-  make test
-  kill -9 $DAEMON_PORT
-}
-
-package() {
-  cd DBD-mysql-$pkgver
-  make install DESTDIR="$pkgdir"
-}

Copied: perl-dbd-mysql/repos/staging-x86_64/PKGBUILD (from rev 354673, perl-dbd-mysql/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-01 12:55:45 UTC (rev 354674)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+# Contributor: Eric Johnson <eric at coding-zone.com>
+
+pkgname=perl-dbd-mysql
+pkgver=4.050
+pkgrel=4
+pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD'
+arch=('x86_64')
+license=('GPL' 'PerlArtistic')
+url="http://search.cpan.org/dist/DBD-mysql/"
+depends=('mariadb-libs' 'perl-dbi')
+makedepends=('perl-devel-checklib')
+checkdepends=('mariadb' 'perl-test-deep')
+options=('!emptydirs')
+source=(https://search.cpan.org/CPAN/authors/id/D/DV/DVEEDEN/DBD-mysql-${pkgver}.tar.gz
+        mariadb-10.3.13-zerofill.patch)
+sha512sums=('910f5b4ba7a7890d50a79f37d04ec8971a4f62acd0fe30bf3ab634f66e3128f0cd6513e5c9da8c807a0f4477d0cc766682ea8dd0d8072d02821b78df51f37879'
+            '090039d383d05958c5d0cf23f13b8062ba89158583ca6dad9ce7c72b28bc3eccc039d4f815aef13592ea35a57662c80156b25aaa04ace171d64a15f5ac489a09')
+
+prepare() {
+  cd DBD-mysql-$pkgver
+
+  # https://github.com/perl5-dbi/DBD-mysql/issues/304
+  patch -Np1 -i ../mariadb-10.3.13-zerofill.patch
+}
+
+build() {
+  cd DBD-mysql-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
+  make
+}
+
+check() {
+  cd DBD-mysql-$pkgver
+  mkdir -p /tmp/mysql_test
+  mysql_install_db \
+     --basedir=/usr \
+     --datadir=/tmp/mysql_test
+  mysqld -P 17999 \
+     --socket=/tmp/socket.mysql \
+     --datadir=/tmp/mysql_test &
+  sleep 10
+  DAEMON_PORT=$!
+  make test
+  kill -9 $DAEMON_PORT
+}
+
+package() {
+  cd DBD-mysql-$pkgver
+  make install DESTDIR="$pkgdir"
+}

Deleted: mariadb-10.3.13-zerofill.patch
===================================================================
--- mariadb-10.3.13-zerofill.patch	2019-06-01 12:55:41 UTC (rev 354673)
+++ mariadb-10.3.13-zerofill.patch	2019-06-01 12:55:45 UTC (rev 354674)
@@ -1,29 +0,0 @@
-From 19734814ed4beeebd48180ad4c123047e3743ff2 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= <git at myname.nl>
-Date: Tue, 5 Mar 2019 16:24:17 +0100
-Subject: [PATCH] Fix for MariaDB 10.3.13 with zerofil
-
-Issue: #304
----
- dbdimp.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/dbdimp.c b/dbdimp.c
-index a9c37cf..0cea5c8 100644
---- a/dbdimp.c
-+++ b/dbdimp.c
-@@ -4055,9 +4055,13 @@ int dbd_describe(SV* sth, imp_sth_t* imp_sth)
-         break;
- 
-       default:
--#if MYSQL_VERSION_ID > 100300
-+#if (MYSQL_VERSION_ID > 100300) && (MYSQL_VERSION_ID < 10313)
-         // https://jira.mariadb.org/browse/MDEV-18143
-         buffer->buffer_length= fields[i].max_length ? fields[i].max_length : 2;
-+#elif MYSQL_VERSION_ID > 100312
-+        // https://jira.mariadb.org/browse/MDEV-18823
-+        buffer->buffer_length= fields[i].max_length ? fields[i].max_length + 1 : 2;
-+        buffer->buffer_length= fields[i].length > fields[i].max_length ? fields[i].length + 1 : 2;
- #else
-         buffer->buffer_length= fields[i].max_length ? fields[i].max_length : 1;
- #endif

Copied: perl-dbd-mysql/repos/staging-x86_64/mariadb-10.3.13-zerofill.patch (from rev 354673, perl-dbd-mysql/trunk/mariadb-10.3.13-zerofill.patch)
===================================================================
--- mariadb-10.3.13-zerofill.patch	                        (rev 0)
+++ mariadb-10.3.13-zerofill.patch	2019-06-01 12:55:45 UTC (rev 354674)
@@ -0,0 +1,29 @@
+From 19734814ed4beeebd48180ad4c123047e3743ff2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= <git at myname.nl>
+Date: Tue, 5 Mar 2019 16:24:17 +0100
+Subject: [PATCH] Fix for MariaDB 10.3.13 with zerofil
+
+Issue: #304
+---
+ dbdimp.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/dbdimp.c b/dbdimp.c
+index a9c37cf..0cea5c8 100644
+--- a/dbdimp.c
++++ b/dbdimp.c
+@@ -4055,9 +4055,13 @@ int dbd_describe(SV* sth, imp_sth_t* imp_sth)
+         break;
+ 
+       default:
+-#if MYSQL_VERSION_ID > 100300
++#if (MYSQL_VERSION_ID > 100300) && (MYSQL_VERSION_ID < 10313)
+         // https://jira.mariadb.org/browse/MDEV-18143
+         buffer->buffer_length= fields[i].max_length ? fields[i].max_length : 2;
++#elif MYSQL_VERSION_ID > 100312
++        // https://jira.mariadb.org/browse/MDEV-18823
++        buffer->buffer_length= fields[i].max_length ? fields[i].max_length + 1 : 2;
++        buffer->buffer_length= fields[i].length > fields[i].max_length ? fields[i].length + 1 : 2;
+ #else
+         buffer->buffer_length= fields[i].max_length ? fields[i].max_length : 1;
+ #endif



More information about the arch-commits mailing list