On Wed, Jan 09, 2019 at 09:16:51AM +0100, Giovanni Bechis wrote:
> Update to latest version with a fix to handle
> type conversions in amavisd.
> Comments ? ok ?
>  Cheers
>   Giovanni
New diff to update to 4.050
 Cheers
  Giovanni
Index: Makefile
===================================================================
RCS file: /var/cvs/ports/databases/p5-DBD-mysql/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- Makefile    17 May 2018 09:20:07 -0000      1.53
+++ Makefile    18 Jan 2019 07:31:52 -0000
@@ -1,15 +1,14 @@
 # $OpenBSD: Makefile,v 1.53 2018/05/17 09:20:07 espie Exp $
 
 COMMENT=               MySQL drivers for the Perl DBI
-DISTNAME=              DBD-mysql-4.042
-REVISION =             0
+DISTNAME=              DBD-mysql-4.050
 
 CATEGORIES=            databases
 
 MAINTAINER=            Giovanni Bechis <giova...@openbsd.org>
 
 MODULES=               cpan databases/mariadb
-CPAN_AUTHOR=           MICHIELB
+CPAN_AUTHOR=           DVEEDEN
 
 # Perl
 PERMIT_PACKAGE_CDROM=  Yes
Index: distinfo
===================================================================
RCS file: /var/cvs/ports/databases/p5-DBD-mysql/distinfo,v
retrieving revision 1.28
diff -u -p -r1.28 distinfo
--- distinfo    20 Mar 2017 14:06:35 -0000      1.28
+++ distinfo    18 Jan 2019 07:31:56 -0000
@@ -1,2 +1,2 @@
-SHA256 (DBD-mysql-4.042.tar.gz) = 2ttohHiNw/30CxO3LYxg1ag2gMwq7sdRXD5ZmeBktFU=
-SIZE (DBD-mysql-4.042.tar.gz) = 160028
+SHA256 (DBD-mysql-4.050.tar.gz) = T0hUH/FaCnQF92rcEPgWJ8M5lvv1bJXCbAlERMCSjXg=
+SIZE (DBD-mysql-4.050.tar.gz) = 161579
Index: patches/patch-dbdimp_c
===================================================================
RCS file: patches/patch-dbdimp_c
diff -N patches/patch-dbdimp_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-dbdimp_c      18 Jan 2019 07:33:46 -0000
@@ -0,0 +1,34 @@
+$OpenBSD$
+
+backport fix for issue 
+https://github.com/perl5-dbi/DBD-mysql/issues/78
+
+Index: dbdimp.c
+--- dbdimp.c.orig
++++ dbdimp.c
+@@ -4447,8 +4447,7 @@ process:
+           if (!(fields[i].flags & ZEROFILL_FLAG))
+           {
+             /* Coerce to double and set scalar as NV */
+-            (void) SvNV(sv);
+-            SvNOK_only(sv);
++            sv_setnv(sv, SvNV(sv));
+           }
+           break;
+ 
+@@ -4459,13 +4458,11 @@ process:
+             /* Coerce to integer and set scalar as UV resp. IV */
+             if (fields[i].flags & UNSIGNED_FLAG)
+             {
+-              (void) SvUV(sv);
+-              SvIOK_only_UV(sv);
++              sv_setuv(sv, SvUV(sv));
+             }
+             else
+             {
+-              (void) SvIV(sv);
+-              SvIOK_only(sv);
++              sv_setiv(sv, SvIV(sv));
+             }
+           }
+           break;

Reply via email to