Index: head/databases/ruby-bdb/Makefile =================================================================== --- head/databases/ruby-bdb/Makefile (revision 457453) +++ head/databases/ruby-bdb/Makefile (revision 457454) @@ -1,90 +1,78 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= bdb PORTVERSION= 0.6.6 PORTREVISION= 5 CATEGORIES= databases ruby MASTER_SITES= ftp://ftp.idaemons.org/pub/distfiles/ruby/ \ http://idaemons.org/distfiles/ruby/ \ LOCAL/knu PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} PKGNAMESUFFIX= ${WITH_BDB_VER} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org COMMENT= Ruby interface to Oracle Berkeley DB revision 2 or later LICENSE= RUBY OPTIONS_DEFINE= DOCS EXAMPLES USE_RUBY= yes USE_RUBY_EXTCONF= yes MAKE_ENV+= RUBY_RDOC=${LOCALBASE}/bin/rdoc ALL_TARGET= all rdoc CONFIGURE_ARGS= --with-db-include=${BDB_INCLUDE_DIR} \ --with-db-lib=${BDB_LIB_DIR} INSTALL_TARGET= site-install DOCS= Changes README.en bdb.rd docs/*.rd DOCSDIR= ${RUBY_MODDOCDIR} EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR} SHAREMODE= 0644 PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so PORTDOCS= * PORTEXAMPLES= * USES= bdb shebangfix tar:bzip2 SHEBANG_FILES= examples/record.rb \ examples/recno.rb \ examples/zeroc.rb \ examples/txn.rb \ examples/queue.rb \ examples/cats.rb \ examples/log.rb \ examples/cursor.rb \ examples/func.rb \ examples/replication/mgr/b.rb \ examples/replication/base/op.rb \ examples/replication/base/cl.rb \ examples/replication/base/b.rb \ examples/replication/base/ma.rb \ examples/replication/base/mc.rb \ examples/join.rb \ examples/basic.rb \ examples/lock.rb -.include - -.if ${RUBY_VER} == 2.1 -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-common.c-21 -.endif - -.if ${RUBY_VER} >= 2.2 -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-common.c-22 \ - ${FILESDIR}/extra-patch-src-recnum.c-22 \ - ${FILESDIR}/extra-patch-src-cursor.c-22 -.endif - post-patch: @${RM} ${WRKSRC}/docs/*.orig post-install: ${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/bdb.so post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}/doc (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/doc) post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -empty") regression-test: build @${MKDIR} ${BUILD_WRKSRC}/tmp (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) -.include +.include Index: head/databases/ruby-bdb/files/extra-patch-src-common.c-21 =================================================================== --- head/databases/ruby-bdb/files/extra-patch-src-common.c-21 (revision 457453) +++ head/databases/ruby-bdb/files/extra-patch-src-common.c-21 (nonexistent) @@ -1,72 +0,0 @@ ---- src/common.c.orig 2011-04-06 19:35:39.000000000 +0000 -+++ src/common.c 2015-01-22 17:06:38.000000000 +0000 -@@ -1570,10 +1570,10 @@ - #endif - switch(dbst->type) { - case DB_BTREE: -- RBASIC(obj)->klass = bdb_cBtree; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cBtree); - break; - case DB_HASH: -- RBASIC(obj)->klass = bdb_cHash; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cHash); - break; - case DB_RECNO: - { -@@ -1581,17 +1581,17 @@ - - rb_warning("It's hard to distinguish Recnum with Recno for all versions of Berkeley DB"); - if ((count = bdb_is_recnum(dbst->dbp)) != -1) { -- RBASIC(obj)->klass = bdb_cRecnum; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cRecnum); - dbst->len = count; - } - else { -- RBASIC(obj)->klass = bdb_cRecno; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cRecno); - } - break; - } - #if HAVE_CONST_DB_QUEUE - case DB_QUEUE: -- RBASIC(obj)->klass = bdb_cQueue; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cQueue); - break; - #endif - default: -@@ -1635,29 +1635,29 @@ - dbst->options = BDB_NOT_OPEN; - cl = obj; - while (cl) { -- if (cl == bdb_cBtree || RCLASS(cl)->m_tbl == RCLASS(bdb_cBtree)->m_tbl) { -+ if (cl == bdb_cBtree || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cBtree)) { - dbst->type = DB_BTREE; - break; - } -- if (cl == bdb_cRecnum || RCLASS(cl)->m_tbl == RCLASS(bdb_cRecnum)->m_tbl) { -+ if (cl == bdb_cRecnum || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cRecnum)) { - dbst->type = DB_RECNO; - break; - } -- else if (cl == bdb_cHash || RCLASS(cl)->m_tbl == RCLASS(bdb_cHash)->m_tbl) { -+ else if (cl == bdb_cHash || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cHash)) { - dbst->type = DB_HASH; - break; - } -- else if (cl == bdb_cRecno || RCLASS(cl)->m_tbl == RCLASS(bdb_cRecno)->m_tbl) { -+ else if (cl == bdb_cRecno || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cRecno)) { - dbst->type = DB_RECNO; - break; - } - #if HAVE_CONST_DB_QUEUE -- else if (cl == bdb_cQueue || RCLASS(cl)->m_tbl == RCLASS(bdb_cQueue)->m_tbl) { -+ else if (cl == bdb_cQueue || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cQueue)) { - dbst->type = DB_QUEUE; - break; - } - #endif -- else if (cl == bdb_cUnknown || RCLASS(cl)->m_tbl == RCLASS(bdb_cUnknown)->m_tbl) { -+ else if (cl == bdb_cUnknown || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cUnknown)) { - dbst->type = DB_UNKNOWN; - break; - } Property changes on: head/databases/ruby-bdb/files/extra-patch-src-common.c-21 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/ruby-bdb/files/extra-patch-src-common.c-22 =================================================================== --- head/databases/ruby-bdb/files/extra-patch-src-common.c-22 (revision 457453) +++ head/databases/ruby-bdb/files/extra-patch-src-common.c-22 (nonexistent) @@ -1,137 +0,0 @@ ---- src/common.c.orig 2011-04-06 19:35:39.000000000 +0000 -+++ src/common.c 2015-01-22 17:10:32.000000000 +0000 -@@ -1229,7 +1229,7 @@ - if (argc && TYPE(argv[argc - 1]) == T_HASH) { - VALUE v, f = argv[argc - 1]; - -- if ((v = rb_hash_aref(f, rb_str_new2("txn"))) != RHASH(f)->ifnone) { -+ if ((v = rb_hash_aref(f, rb_str_new2("txn"))) != rb_hash_ifnone(f)) { - if (!rb_obj_is_kind_of(v, bdb_cTxn)) { - rb_raise(bdb_eFatal, "argument of txn must be a transaction"); - } -@@ -1241,7 +1241,7 @@ - dbst->options |= envst->options & BDB_NO_THREAD; - dbst->marshal = txnst->marshal; - } -- else if ((v = rb_hash_aref(f, rb_str_new2("env"))) != RHASH(f)->ifnone) { -+ else if ((v = rb_hash_aref(f, rb_str_new2("env"))) != rb_hash_ifnone(f)) { - if (!rb_obj_is_kind_of(v, bdb_cEnv)) { - rb_raise(bdb_eFatal, "argument of env must be an environnement"); - } -@@ -1254,11 +1254,11 @@ - #if HAVE_CONST_DB_ENCRYPT - if (envst && (envst->options & BDB_ENV_ENCRYPT)) { - VALUE tmp = rb_str_new2("set_flags"); -- if ((v = rb_hash_aref(f, rb_intern("set_flags"))) != RHASH(f)->ifnone) { -+ if ((v = rb_hash_aref(f, rb_intern("set_flags"))) != rb_hash_ifnone(f)) { - rb_hash_aset(f, rb_intern("set_flags"), - INT2NUM(NUM2INT(v) | DB_ENCRYPT)); - } -- else if ((v = rb_hash_aref(f, tmp)) != RHASH(f)->ifnone) { -+ else if ((v = rb_hash_aref(f, tmp)) != rb_hash_ifnone(f)) { - rb_hash_aset(f, tmp, INT2NUM(NUM2INT(v) | DB_ENCRYPT)); - } - else { -@@ -1570,10 +1570,10 @@ - #endif - switch(dbst->type) { - case DB_BTREE: -- RBASIC(obj)->klass = bdb_cBtree; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cBtree); - break; - case DB_HASH: -- RBASIC(obj)->klass = bdb_cHash; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cHash); - break; - case DB_RECNO: - { -@@ -1581,17 +1581,17 @@ - - rb_warning("It's hard to distinguish Recnum with Recno for all versions of Berkeley DB"); - if ((count = bdb_is_recnum(dbst->dbp)) != -1) { -- RBASIC(obj)->klass = bdb_cRecnum; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cRecnum); - dbst->len = count; - } - else { -- RBASIC(obj)->klass = bdb_cRecno; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cRecno); - } - break; - } - #if HAVE_CONST_DB_QUEUE - case DB_QUEUE: -- RBASIC(obj)->klass = bdb_cQueue; -+ RBASIC_SET_CLASS_RAW(obj, bdb_cQueue); - break; - #endif - default: -@@ -1635,29 +1635,29 @@ - dbst->options = BDB_NOT_OPEN; - cl = obj; - while (cl) { -- if (cl == bdb_cBtree || RCLASS(cl)->m_tbl == RCLASS(bdb_cBtree)->m_tbl) { -+ if (cl == bdb_cBtree || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cBtree)) { - dbst->type = DB_BTREE; - break; - } -- if (cl == bdb_cRecnum || RCLASS(cl)->m_tbl == RCLASS(bdb_cRecnum)->m_tbl) { -+ if (cl == bdb_cRecnum || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cRecnum)) { - dbst->type = DB_RECNO; - break; - } -- else if (cl == bdb_cHash || RCLASS(cl)->m_tbl == RCLASS(bdb_cHash)->m_tbl) { -+ else if (cl == bdb_cHash || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cHash)) { - dbst->type = DB_HASH; - break; - } -- else if (cl == bdb_cRecno || RCLASS(cl)->m_tbl == RCLASS(bdb_cRecno)->m_tbl) { -+ else if (cl == bdb_cRecno || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cRecno)) { - dbst->type = DB_RECNO; - break; - } - #if HAVE_CONST_DB_QUEUE -- else if (cl == bdb_cQueue || RCLASS(cl)->m_tbl == RCLASS(bdb_cQueue)->m_tbl) { -+ else if (cl == bdb_cQueue || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cQueue)) { - dbst->type = DB_QUEUE; - break; - } - #endif -- else if (cl == bdb_cUnknown || RCLASS(cl)->m_tbl == RCLASS(bdb_cUnknown)->m_tbl) { -+ else if (cl == bdb_cUnknown || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cUnknown)) { - dbst->type = DB_UNKNOWN; - break; - } -@@ -3004,8 +3004,8 @@ - - if (argc && TYPE(argv[argc - 1]) == T_HASH) { - VALUE g, f = argv[argc - 1]; -- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || -- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { -+ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || -+ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { - flags = NUM2INT(g); - } - argc--; -@@ -3323,8 +3323,8 @@ - flags = 0; - if (argc && TYPE(argv[argc - 1]) == T_HASH) { - VALUE g, f = argv[argc - 1]; -- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || -- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { -+ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || -+ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { - flags = NUM2INT(g); - } - argc--; -@@ -3348,8 +3348,8 @@ - flags = 0; - if (TYPE(argv[argc - 1]) == T_HASH) { - VALUE f = argv[argc - 1]; -- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || -- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { -+ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || -+ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { - flags = NUM2INT(g); - } - argc--; Property changes on: head/databases/ruby-bdb/files/extra-patch-src-common.c-22 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/ruby-bdb/files/extra-patch-src-recnum.c-22 =================================================================== --- head/databases/ruby-bdb/files/extra-patch-src-recnum.c-22 (revision 457453) +++ head/databases/ruby-bdb/files/extra-patch-src-recnum.c-22 (nonexistent) @@ -1,22 +0,0 @@ ---- src/recnum.c.orig 2011-04-06 19:35:39.000000000 +0000 -+++ src/recnum.c 2015-01-22 17:16:32.000000000 +0000 -@@ -17,7 +17,7 @@ - argc++; - } - rb_hash_aset(argv[argc - 1], array, INT2FIX(0)); -- if (rb_hash_aref(argv[argc - 1], sarray) != RHASH(argv[argc - 1])->ifnone) { -+ if (rb_hash_aref(argv[argc - 1], sarray) != rb_hash_ifnone(argv[argc - 1])) { - rb_hash_aset(argv[argc - 1], sarray, INT2FIX(0)); - } - rb_hash_aset(argv[argc - 1], rb_str_new2("set_flags"), INT2FIX(DB_RENUMBER)); -@@ -697,8 +697,8 @@ - - if (argc && TYPE(argv[argc - 1]) == T_HASH) { - VALUE f = argv[argc - 1]; -- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || -- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { -+ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || -+ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { - flags = NUM2INT(g); - } - argc--; Property changes on: head/databases/ruby-bdb/files/extra-patch-src-recnum.c-22 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/ruby-bdb/files/extra-patch-src-cursor.c-22 =================================================================== --- head/databases/ruby-bdb/files/extra-patch-src-cursor.c-22 (revision 457453) +++ head/databases/ruby-bdb/files/extra-patch-src-cursor.c-22 (nonexistent) @@ -1,13 +0,0 @@ ---- src/cursor.c.orig 2015-01-22 17:37:51.000000000 +0000 -+++ src/cursor.c 2015-01-22 17:38:17.000000000 +0000 -@@ -29,8 +29,8 @@ - flags = 0; - if (argc && TYPE(argv[argc - 1]) == T_HASH) { - VALUE g, f = argv[argc - 1]; -- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || -- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { -+ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || -+ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { - flags = NUM2INT(g); - } - argc--; Property changes on: head/databases/ruby-bdb/files/extra-patch-src-cursor.c-22 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/ruby-bdb/files/patch-src-common.c =================================================================== --- head/databases/ruby-bdb/files/patch-src-common.c (nonexistent) +++ head/databases/ruby-bdb/files/patch-src-common.c (revision 457454) @@ -0,0 +1,137 @@ +--- src/common.c.orig 2011-04-06 19:35:39.000000000 +0000 ++++ src/common.c 2015-01-22 17:10:32.000000000 +0000 +@@ -1229,7 +1229,7 @@ + if (argc && TYPE(argv[argc - 1]) == T_HASH) { + VALUE v, f = argv[argc - 1]; + +- if ((v = rb_hash_aref(f, rb_str_new2("txn"))) != RHASH(f)->ifnone) { ++ if ((v = rb_hash_aref(f, rb_str_new2("txn"))) != rb_hash_ifnone(f)) { + if (!rb_obj_is_kind_of(v, bdb_cTxn)) { + rb_raise(bdb_eFatal, "argument of txn must be a transaction"); + } +@@ -1241,7 +1241,7 @@ + dbst->options |= envst->options & BDB_NO_THREAD; + dbst->marshal = txnst->marshal; + } +- else if ((v = rb_hash_aref(f, rb_str_new2("env"))) != RHASH(f)->ifnone) { ++ else if ((v = rb_hash_aref(f, rb_str_new2("env"))) != rb_hash_ifnone(f)) { + if (!rb_obj_is_kind_of(v, bdb_cEnv)) { + rb_raise(bdb_eFatal, "argument of env must be an environnement"); + } +@@ -1254,11 +1254,11 @@ + #if HAVE_CONST_DB_ENCRYPT + if (envst && (envst->options & BDB_ENV_ENCRYPT)) { + VALUE tmp = rb_str_new2("set_flags"); +- if ((v = rb_hash_aref(f, rb_intern("set_flags"))) != RHASH(f)->ifnone) { ++ if ((v = rb_hash_aref(f, rb_intern("set_flags"))) != rb_hash_ifnone(f)) { + rb_hash_aset(f, rb_intern("set_flags"), + INT2NUM(NUM2INT(v) | DB_ENCRYPT)); + } +- else if ((v = rb_hash_aref(f, tmp)) != RHASH(f)->ifnone) { ++ else if ((v = rb_hash_aref(f, tmp)) != rb_hash_ifnone(f)) { + rb_hash_aset(f, tmp, INT2NUM(NUM2INT(v) | DB_ENCRYPT)); + } + else { +@@ -1570,10 +1570,10 @@ + #endif + switch(dbst->type) { + case DB_BTREE: +- RBASIC(obj)->klass = bdb_cBtree; ++ RBASIC_SET_CLASS_RAW(obj, bdb_cBtree); + break; + case DB_HASH: +- RBASIC(obj)->klass = bdb_cHash; ++ RBASIC_SET_CLASS_RAW(obj, bdb_cHash); + break; + case DB_RECNO: + { +@@ -1581,17 +1581,17 @@ + + rb_warning("It's hard to distinguish Recnum with Recno for all versions of Berkeley DB"); + if ((count = bdb_is_recnum(dbst->dbp)) != -1) { +- RBASIC(obj)->klass = bdb_cRecnum; ++ RBASIC_SET_CLASS_RAW(obj, bdb_cRecnum); + dbst->len = count; + } + else { +- RBASIC(obj)->klass = bdb_cRecno; ++ RBASIC_SET_CLASS_RAW(obj, bdb_cRecno); + } + break; + } + #if HAVE_CONST_DB_QUEUE + case DB_QUEUE: +- RBASIC(obj)->klass = bdb_cQueue; ++ RBASIC_SET_CLASS_RAW(obj, bdb_cQueue); + break; + #endif + default: +@@ -1635,29 +1635,29 @@ + dbst->options = BDB_NOT_OPEN; + cl = obj; + while (cl) { +- if (cl == bdb_cBtree || RCLASS(cl)->m_tbl == RCLASS(bdb_cBtree)->m_tbl) { ++ if (cl == bdb_cBtree || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cBtree)) { + dbst->type = DB_BTREE; + break; + } +- if (cl == bdb_cRecnum || RCLASS(cl)->m_tbl == RCLASS(bdb_cRecnum)->m_tbl) { ++ if (cl == bdb_cRecnum || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cRecnum)) { + dbst->type = DB_RECNO; + break; + } +- else if (cl == bdb_cHash || RCLASS(cl)->m_tbl == RCLASS(bdb_cHash)->m_tbl) { ++ else if (cl == bdb_cHash || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cHash)) { + dbst->type = DB_HASH; + break; + } +- else if (cl == bdb_cRecno || RCLASS(cl)->m_tbl == RCLASS(bdb_cRecno)->m_tbl) { ++ else if (cl == bdb_cRecno || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cRecno)) { + dbst->type = DB_RECNO; + break; + } + #if HAVE_CONST_DB_QUEUE +- else if (cl == bdb_cQueue || RCLASS(cl)->m_tbl == RCLASS(bdb_cQueue)->m_tbl) { ++ else if (cl == bdb_cQueue || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cQueue)) { + dbst->type = DB_QUEUE; + break; + } + #endif +- else if (cl == bdb_cUnknown || RCLASS(cl)->m_tbl == RCLASS(bdb_cUnknown)->m_tbl) { ++ else if (cl == bdb_cUnknown || RCLASS_M_TBL(cl) == RCLASS_M_TBL(bdb_cUnknown)) { + dbst->type = DB_UNKNOWN; + break; + } +@@ -3004,8 +3004,8 @@ + + if (argc && TYPE(argv[argc - 1]) == T_HASH) { + VALUE g, f = argv[argc - 1]; +- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || +- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { ++ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || ++ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { + flags = NUM2INT(g); + } + argc--; +@@ -3323,8 +3323,8 @@ + flags = 0; + if (argc && TYPE(argv[argc - 1]) == T_HASH) { + VALUE g, f = argv[argc - 1]; +- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || +- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { ++ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || ++ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { + flags = NUM2INT(g); + } + argc--; +@@ -3348,8 +3348,8 @@ + flags = 0; + if (TYPE(argv[argc - 1]) == T_HASH) { + VALUE f = argv[argc - 1]; +- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || +- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { ++ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || ++ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { + flags = NUM2INT(g); + } + argc--; Property changes on: head/databases/ruby-bdb/files/patch-src-common.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/databases/ruby-bdb/files/patch-src-cursor.c =================================================================== --- head/databases/ruby-bdb/files/patch-src-cursor.c (nonexistent) +++ head/databases/ruby-bdb/files/patch-src-cursor.c (revision 457454) @@ -0,0 +1,13 @@ +--- src/cursor.c.orig 2015-01-22 17:37:51.000000000 +0000 ++++ src/cursor.c 2015-01-22 17:38:17.000000000 +0000 +@@ -29,8 +29,8 @@ + flags = 0; + if (argc && TYPE(argv[argc - 1]) == T_HASH) { + VALUE g, f = argv[argc - 1]; +- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || +- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { ++ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || ++ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { + flags = NUM2INT(g); + } + argc--; Property changes on: head/databases/ruby-bdb/files/patch-src-cursor.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/databases/ruby-bdb/files/patch-src-recnum.c =================================================================== --- head/databases/ruby-bdb/files/patch-src-recnum.c (nonexistent) +++ head/databases/ruby-bdb/files/patch-src-recnum.c (revision 457454) @@ -0,0 +1,22 @@ +--- src/recnum.c.orig 2011-04-06 19:35:39.000000000 +0000 ++++ src/recnum.c 2015-01-22 17:16:32.000000000 +0000 +@@ -17,7 +17,7 @@ + argc++; + } + rb_hash_aset(argv[argc - 1], array, INT2FIX(0)); +- if (rb_hash_aref(argv[argc - 1], sarray) != RHASH(argv[argc - 1])->ifnone) { ++ if (rb_hash_aref(argv[argc - 1], sarray) != rb_hash_ifnone(argv[argc - 1])) { + rb_hash_aset(argv[argc - 1], sarray, INT2FIX(0)); + } + rb_hash_aset(argv[argc - 1], rb_str_new2("set_flags"), INT2FIX(DB_RENUMBER)); +@@ -697,8 +697,8 @@ + + if (argc && TYPE(argv[argc - 1]) == T_HASH) { + VALUE f = argv[argc - 1]; +- if ((g = rb_hash_aref(f, rb_intern("flags"))) != RHASH(f)->ifnone || +- (g = rb_hash_aref(f, rb_str_new2("flags"))) != RHASH(f)->ifnone) { ++ if ((g = rb_hash_aref(f, rb_intern("flags"))) != rb_hash_ifnone(f) || ++ (g = rb_hash_aref(f, rb_str_new2("flags"))) != rb_hash_ifnone(f)) { + flags = NUM2INT(g); + } + argc--; Property changes on: head/databases/ruby-bdb/files/patch-src-recnum.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property