svn commit: r458079 - in head/databases/rubygem-mysql: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Jan 4 20:12:42 UTC 2018
Author: sunpoet
Date: Thu Jan 4 20:12:38 2018
New Revision: 458079
URL: https://svnweb.freebsd.org/changeset/ports/458079
Log:
Fix build with Ruby 2.4+ and unbreak this port
MFH: 2018Q1
Added:
head/databases/rubygem-mysql/files/
head/databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c (contents, props changed)
Modified:
head/databases/rubygem-mysql/Makefile
Modified: head/databases/rubygem-mysql/Makefile
==============================================================================
--- head/databases/rubygem-mysql/Makefile Thu Jan 4 20:12:33 2018 (r458078)
+++ head/databases/rubygem-mysql/Makefile Thu Jan 4 20:12:38 2018 (r458079)
@@ -12,8 +12,6 @@ COMMENT= MySQL API module for Ruby
LICENSE= GPLv2 RUBY
LICENSE_COMB= dual
-BROKEN_RUBY24= yes
-
USE_RUBY= yes
USES= gem mysql
Added: head/databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c Thu Jan 4 20:12:38 2018 (r458079)
@@ -0,0 +1,11 @@
+--- ext/mysql_api/mysql.c.orig 2018-01-03 15:47:52 UTC
++++ ext/mysql_api/mysql.c
+@@ -1317,7 +1317,7 @@ static VALUE stmt_bind_result(int argc,
+ }
+ else if (argv[i] == rb_cString)
+ s->result.bind[i].buffer_type = MYSQL_TYPE_STRING;
+- else if (argv[i] == rb_cNumeric || argv[i] == rb_cInteger || argv[i] == rb_cFixnum)
++ else if (argv[i] == rb_cNumeric || argv[i] == rb_cInteger || argv[i] == rb_cInteger)
+ s->result.bind[i].buffer_type = MYSQL_TYPE_LONGLONG;
+ else if (argv[i] == rb_cFloat)
+ s->result.bind[i].buffer_type = MYSQL_TYPE_DOUBLE;
More information about the svn-ports-all
mailing list