Bugfix update for mysql2, changes include: * change mysql error detection strategy from using mysql_field_count to the more explicit mysql_errno * bugfix to avoid race condition with active connections that error out * revert back to using xmalloc/xfree for allocations * avoid potentially unsafe Ruby C API usage w/o GVL * reacquire GVL before retrying on EINTR on connect
Tested on i386, compiles fine on amd64. Will be committing next week unless I hear objections. Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/databases/ruby-mysql2/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- Makefile 13 Dec 2011 18:06:20 -0000 1.7 +++ Makefile 1 Jun 2012 21:37:25 -0000 @@ -2,7 +2,7 @@ COMMENT= modern, simple and very fast Mysql library for Ruby -DISTNAME= mysql2-0.3.10 +DISTNAME= mysql2-0.3.11 CATEGORIES= databases HOMEPAGE= http://github.com/brianmario/mysql2 Index: distinfo =================================================================== RCS file: /cvs/ports/databases/ruby-mysql2/distinfo,v retrieving revision 1.3 diff -u -p -r1.3 distinfo --- distinfo 13 Dec 2011 18:06:20 -0000 1.3 +++ distinfo 1 Jun 2012 21:37:33 -0000 @@ -1,5 +1,5 @@ -MD5 (mysql2-0.3.10.gem) = b27Mtp/silVnTqH8Jf/LVg== -RMD160 (mysql2-0.3.10.gem) = 2F27KQykso56T0j/s7eFFj5xe9I= -SHA1 (mysql2-0.3.10.gem) = XeCvKFS44+BK0DIHeYnjeenDtgM= -SHA256 (mysql2-0.3.10.gem) = RhYZ6Q8+w5wFDQzlTj8k5M3kejq0c4zoYbRi2a/INGo= -SIZE (mysql2-0.3.10.gem) = 41984 +MD5 (mysql2-0.3.11.gem) = ZxVBzs9XXO+2hresSdMr1A== +RMD160 (mysql2-0.3.11.gem) = ayObNrkfxDaVs9pAmNyJWfvSWKo= +SHA1 (mysql2-0.3.11.gem) = BleTNYHhUaCE88BzmP0A7LRvAUQ= +SHA256 (mysql2-0.3.11.gem) = E0+EjpHWB1YIOHO2b8RxoCm131HDWFLvWjoPn3pJZkE= +SIZE (mysql2-0.3.11.gem) = 41984
