From owner-svn-ports-all@freebsd.org Thu Jan 4 20:12:42 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28171EB39AB; Thu, 4 Jan 2018 20:12:42 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBEFD7E855; Thu, 4 Jan 2018 20:12:39 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w04KCcJL056295; Thu, 4 Jan 2018 20:12:38 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w04KCc56056293; Thu, 4 Jan 2018 20:12:38 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201801042012.w04KCc56056293@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Thu, 4 Jan 2018 20:12:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458079 - in head/databases/rubygem-mysql: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/databases/rubygem-mysql: . files X-SVN-Commit-Revision: 458079 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2018 20:12:42 -0000 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;