pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/ruby-mysql28 databases/ruby-mysql28: fix bui...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8a3286d96f13
branches: trunk
changeset: 446932:8a3286d96f13
user: taca <taca%pkgsrc.org@localhost>
date: Sun Feb 14 14:55:42 2021 +0000
description:
databases/ruby-mysql28: fix build with Ruby 3.0
diffstat:
databases/ruby-mysql28/distinfo | 4 ++--
databases/ruby-mysql28/patches/patch-mysql.c | 19 +++++++++++++++++--
2 files changed, 19 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r cb090076bee4 -r 8a3286d96f13 databases/ruby-mysql28/distinfo
--- a/databases/ruby-mysql28/distinfo Sun Feb 14 14:53:56 2021 +0000
+++ b/databases/ruby-mysql28/distinfo Sun Feb 14 14:55:42 2021 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2017/10/13 16:07:51 taca Exp $
+$NetBSD: distinfo,v 1.3 2021/02/14 14:55:42 taca Exp $
SHA1 (mysql-ruby-2.8.2.tar.gz) = c20ec0f41f19f11270963d9c9e0d5a2bba27801e
RMD160 (mysql-ruby-2.8.2.tar.gz) = 0cd9a6071f0878a5ab4b47d9a023066f5ae39955
SHA512 (mysql-ruby-2.8.2.tar.gz) = f39bba5679031bab2d78bc5cb44bb00e7818c1f94e20af374e7b843ced85981e82f185f7442962728165abf9afa9f4d384e3ff6ca22c32320cf4bfa3af84c0e6
Size (mysql-ruby-2.8.2.tar.gz) = 32710 bytes
SHA1 (patch-extconf.rb) = 339b618a3057a3868448f971932b9231fd059404
-SHA1 (patch-mysql.c) = 5072b514a748845a279539b5b526c66ae052b1ca
+SHA1 (patch-mysql.c) = 33283b67e5beae587577a45a5cc4466962ded6c2
diff -r cb090076bee4 -r 8a3286d96f13 databases/ruby-mysql28/patches/patch-mysql.c
--- a/databases/ruby-mysql28/patches/patch-mysql.c Sun Feb 14 14:53:56 2021 +0000
+++ b/databases/ruby-mysql28/patches/patch-mysql.c Sun Feb 14 14:55:42 2021 +0000
@@ -1,9 +1,24 @@
-$NetBSD: patch-mysql.c,v 1.1 2017/10/13 16:07:51 taca Exp $
+$NetBSD: patch-mysql.c,v 1.2 2021/02/14 14:55:42 taca Exp $
-* Fix build with ruby24.
+* Fix build with ruby24 and ruby30.
--- mysql.c.orig 2010-02-11 10:42:54.000000000 +0000
+++ mysql.c
+@@ -875,12 +875,12 @@ static VALUE stmt_init(VALUE obj)
+ MYSQL *m = GetHandler(obj);
+ MYSQL_STMT *s;
+ struct mysql_stmt* stmt;
+- my_bool true = 1;
++ my_bool my_true = 1;
+ VALUE st_obj;
+
+ if ((s = mysql_stmt_init(m)) == NULL)
+ mysql_raise(m);
+- if (mysql_stmt_attr_set(s, STMT_ATTR_UPDATE_MAX_LENGTH, &true))
++ if (mysql_stmt_attr_set(s, STMT_ATTR_UPDATE_MAX_LENGTH, &my_true))
+ rb_raise(rb_eArgError, "mysql_stmt_attr_set() failed");
+ st_obj = Data_Make_Struct(cMysqlStmt, struct mysql_stmt, 0, free_mysqlstmt, stmt);
+ memset(stmt, 0, sizeof(*stmt));
@@ -1317,7 +1317,11 @@ static VALUE stmt_bind_result(int argc,
}
else if (argv[i] == rb_cString)
Home |
Main Index |
Thread Index |
Old Index