Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2024 10:44:27 GMT
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 00ad632b72a8 - main - databases/rubygem-mysql: fix runtime warnings with ruby 3.2
Message-ID:  <202403111044.42BAiRU4042521@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00ad632b72a81128edc28a91b3a93307e8a511e7

commit 00ad632b72a81128edc28a91b3a93307e8a511e7
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-03-11 10:44:18 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-03-11 10:44:18 +0000

    databases/rubygem-mysql: fix runtime warnings with ruby 3.2
---
 databases/rubygem-mysql/Makefile                          | 2 +-
 databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/databases/rubygem-mysql/Makefile b/databases/rubygem-mysql/Makefile
index a70a4cb701ce..41655af7f89c 100644
--- a/databases/rubygem-mysql/Makefile
+++ b/databases/rubygem-mysql/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mysql
 PORTVERSION=	2.9.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	databases rubygems
 MASTER_SITES=	RG
 
diff --git a/databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c b/databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c
index 8c149b217372..c7d41962b868 100644
--- a/databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c
+++ b/databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c
@@ -1,4 +1,4 @@
---- ext/mysql_api/mysql.c.orig	2024-03-11 10:13:55 UTC
+--- ext/mysql_api/mysql.c.orig	2024-03-11 10:33:12 UTC
 +++ ext/mysql_api/mysql.c
 @@ -170,7 +170,7 @@ static void mysql_raise(MYSQL* m)
      VALUE e = rb_exc_new2(eMysql, mysql_error(m));
@@ -241,11 +241,16 @@
      int i;
      int dots = 0;
      const char *lib = mysql_get_client_info();
-@@ -1898,6 +1913,7 @@ void Init_mysql_api(void)
+@@ -1898,9 +1913,12 @@ void Init_mysql_api(void)
              return;
          }
      }
 +#endif
  
      cMysql = rb_define_class("Mysql", rb_cObject);
++    rb_undef_alloc_func(cMysql);
      cMysqlRes = rb_define_class_under(cMysql, "Result", rb_cObject);
++    rb_undef_alloc_func(cMysqlRes);
+     cMysqlField = rb_define_class_under(cMysql, "Field", rb_cObject);
+ #if MYSQL_VERSION_ID >= 40102
+     cMysqlStmt = rb_define_class_under(cMysql, "Stmt", rb_cObject);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403111044.42BAiRU4042521>