svn commit: r406632 - in head/databases/rubygem-bdb1: . files
Dirk Meyer
dinoex at FreeBSD.org
Tue Jan 19 04:50:38 UTC 2016
Author: dinoex
Date: Tue Jan 19 04:50:37 2016
New Revision: 406632
URL: https://svnweb.freebsd.org/changeset/ports/406632
Log:
- fix build with ruby-2.1
Added:
head/databases/rubygem-bdb1/files/
head/databases/rubygem-bdb1/files/patch-ext_bdb1_bdb1.c (contents, props changed)
Modified:
head/databases/rubygem-bdb1/Makefile
Modified: head/databases/rubygem-bdb1/Makefile
==============================================================================
--- head/databases/rubygem-bdb1/Makefile Tue Jan 19 03:10:32 2016 (r406631)
+++ head/databases/rubygem-bdb1/Makefile Tue Jan 19 04:50:37 2016 (r406632)
@@ -11,7 +11,6 @@ COMMENT= Ruby interface to Berkeley DB r
LICENSE= BSD2CLAUSE RUBY
LICENSE_COMB= dual
-BROKEN_RUBY21= yes
BROKEN_RUBY22= yes
BROKEN_RUBY23= yes
Added: head/databases/rubygem-bdb1/files/patch-ext_bdb1_bdb1.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/rubygem-bdb1/files/patch-ext_bdb1_bdb1.c Tue Jan 19 04:50:37 2016 (r406632)
@@ -0,0 +1,21 @@
+--- ext/bdb1/bdb1.c.orig 2016-01-18 21:34:35 UTC
++++ ext/bdb1/bdb1.c
+@@ -752,15 +752,15 @@ bdb1_s_alloc(VALUE obj)
+ dbst->options |= BDB1_NOT_OPEN;
+ cl = obj;
+ while (cl) {
+- if (cl == bdb1_cBtree || RCLASS(cl)->m_tbl == RCLASS(bdb1_cBtree)->m_tbl) {
++ if (cl == bdb1_cBtree || rb_obj_classname(cl) == rb_class2name(bdb1_cBtree)) {
+ dbst->type = DB_BTREE;
+ break;
+ }
+- else if (cl == bdb1_cHash || RCLASS(cl)->m_tbl == RCLASS(bdb1_cHash)->m_tbl) {
++ else if (cl == bdb1_cHash || rb_obj_classname(cl) == rb_class2name(bdb1_cHash)) {
+ dbst->type = DB_HASH;
+ break;
+ }
+- else if (cl == bdb1_cRecnum || RCLASS(cl)->m_tbl == RCLASS(bdb1_cRecnum)->m_tbl) {
++ else if (cl == bdb1_cRecnum || rb_obj_classname(cl) == rb_class2name(bdb1_cRecnum)) {
+ dbst->type = DB_RECNO;
+ break;
+ }
More information about the svn-ports-head
mailing list