Index: Makefile =================================================================== --- Makefile (revision 336847) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= bdb PORTVERSION= 0.6.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases ruby MASTER_SITES= ftp://ftp.idaemons.org/pub/distfiles/ruby/ \ http://idaemons.org/distfiles/ruby/ \ Index: files/patch-bdbxml1__bdbxml.cc =================================================================== --- files/patch-bdbxml1__bdbxml.cc (revision 0) +++ files/patch-bdbxml1__bdbxml.cc (working copy) @@ -0,0 +1,48 @@ +--- ./bdbxml1/bdbxml.cc.orig 2011-04-06 19:35:39.000000000 +0000 ++++ ./bdbxml1/bdbxml.cc 2013-12-18 19:00:54.663254132 +0000 +@@ -2316,7 +2316,7 @@ + + void Init_bdbxml() + { +- int major, minor, patch; ++ int major, minor; + VALUE version; + #ifdef BDB_LINK_OBJ + extern void Init_bdb(); +@@ -2339,19 +2339,16 @@ + xb_mDb = rb_const_get(rb_cObject, rb_intern("BDB")); + major = NUM2INT(rb_const_get(xb_mDb, rb_intern("VERSION_MAJOR"))); + minor = NUM2INT(rb_const_get(xb_mDb, rb_intern("VERSION_MINOR"))); +- patch = NUM2INT(rb_const_get(xb_mDb, rb_intern("VERSION_PATCH"))); +- if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR +- || patch != DB_VERSION_PATCH) { +- rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of BDB\n\tyou have BDB::XML version %d.%d.%d and BDB version %d.%d.%d\n", +- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, +- major, minor, patch); ++ if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR) { ++ rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of BDB\n\tyou have BDB::XML version %d.%d and BDB version %d.%d\n", ++ DB_VERSION_MAJOR, DB_VERSION_MINOR, ++ major, minor); + } +- version = rb_tainted_str_new2(dbxml_version(&major, &minor, &patch)); +- if (major != DBXML_VERSION_MAJOR || minor != DBXML_VERSION_MINOR +- || patch != DBXML_VERSION_PATCH) { +- rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of DbXml\n\tyou have DbXml.hpp version %d.%d.%d and libdbxml version %d.%d.%d\n", +- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, +- major, minor, patch); ++ version = rb_tainted_str_new2(dbxml_version(&major, &minor)); ++ if (major != DBXML_VERSION_MAJOR || minor != DBXML_VERSION_MINOR) { ++ rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of DbXml\n\tyou have DbXml.hpp version %d.%d and libdbxml version %d.%d\n", ++ DB_VERSION_MAJOR, DB_VERSION_MINOR, ++ major, minor); + } + + xb_eFatal = rb_const_get(xb_mDb, rb_intern("Fatal")); +@@ -2374,7 +2371,6 @@ + rb_define_const(xb_mXML, "VERSION", version); + rb_define_const(xb_mXML, "VERSION_MAJOR", INT2FIX(major)); + rb_define_const(xb_mXML, "VERSION_MINOR", INT2FIX(minor)); +- rb_define_const(xb_mXML, "VERSION_PATCH", INT2FIX(patch)); + #ifdef DBXML_CHKSUM_SHA1 + rb_define_const(xb_mXML, "CHKSUM_SHA1", INT2NUM(DBXML_CHKSUM_SHA1)); + #endif Property changes on: files/patch-bdbxml1__bdbxml.cc ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property 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 Index: files/patch-bdbxml2__bdbxml.cc =================================================================== --- files/patch-bdbxml2__bdbxml.cc (revision 0) +++ files/patch-bdbxml2__bdbxml.cc (working copy) @@ -0,0 +1,48 @@ +--- ./bdbxml2/bdbxml.cc.orig 2011-04-06 19:35:39.000000000 +0000 ++++ ./bdbxml2/bdbxml.cc 2013-12-18 19:00:54.677253900 +0000 +@@ -5510,7 +5510,7 @@ + + void Init_bdbxml() + { +- int major, minor, patch; ++ int major, minor; + VALUE version; + #ifdef BDB_LINK_OBJ + extern void Init_bdb(); +@@ -5535,19 +5535,16 @@ + xb_mDb = rb_const_get(rb_cObject, rb_intern("BDB")); + major = NUM2INT(rb_const_get(xb_mDb, rb_intern("VERSION_MAJOR"))); + minor = NUM2INT(rb_const_get(xb_mDb, rb_intern("VERSION_MINOR"))); +- patch = NUM2INT(rb_const_get(xb_mDb, rb_intern("VERSION_PATCH"))); +- if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR +- || patch != DB_VERSION_PATCH) { +- rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of BDB\n\tyou have BDB::XML version %d.%d.%d and BDB version %d.%d.%d\n", +- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, +- major, minor, patch); ++ if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR) { ++ rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of BDB\n\tyou have BDB::XML version %d.%d and BDB version %d.%d\n", ++ DB_VERSION_MAJOR, DB_VERSION_MINOR, ++ major, minor); + } +- version = rb_tainted_str_new2(dbxml_version(&major, &minor, &patch)); +- if (major != DBXML_VERSION_MAJOR || minor != DBXML_VERSION_MINOR +- || patch != DBXML_VERSION_PATCH) { +- rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of DbXml\n\tyou have DbXml.hpp version %d.%d.%d and libdbxml version %d.%d.%d\n", +- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, +- major, minor, patch); ++ version = rb_tainted_str_new2(dbxml_version(&major, &minor)); ++ if (major != DBXML_VERSION_MAJOR || minor != DBXML_VERSION_MINOR) { ++ rb_raise(rb_eNotImpError, "\nBDB::XML needs compatible versions of DbXml\n\tyou have DbXml.hpp version %d.%d and libdbxml version %d.%d\n", ++ DB_VERSION_MAJOR, DB_VERSION_MINOR, ++ major, minor); + } + + xb_mObs = rb_const_get(rb_cObject, rb_intern("ObjectSpace")); +@@ -5604,7 +5601,6 @@ + rb_define_const(xb_mXML, "VERSION", version); + rb_define_const(xb_mXML, "VERSION_MAJOR", INT2FIX(major)); + rb_define_const(xb_mXML, "VERSION_MINOR", INT2FIX(minor)); +- rb_define_const(xb_mXML, "VERSION_PATCH", INT2FIX(patch)); + #if HAVE_DBXML_CONST_DBXML_ADOPT_DBENV + rb_define_const(xb_mXML, "ADOPT_DBENV", INT2NUM(DBXML_ADOPT_DBENV)); + #endif Property changes on: files/patch-bdbxml2__bdbxml.cc ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property 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 Index: files/patch-extconf.rb =================================================================== --- files/patch-extconf.rb (revision 336847) +++ files/patch-extconf.rb (working copy) @@ -1,5 +1,5 @@ ---- extconf.rb.orig 2011-08-22 22:53:57.000000000 -0700 -+++ extconf.rb 2011-08-22 22:54:10.000000000 -0700 +--- ./extconf.rb.orig 2011-04-06 19:35:39.000000000 +0000 ++++ ./extconf.rb 2013-12-18 19:00:54.688254572 +0000 @@ -50,7 +50,7 @@ rdoc: docs/doc/index.html Index: files/patch-src__bdb.c =================================================================== --- files/patch-src__bdb.c (revision 0) +++ files/patch-src__bdb.c (working copy) @@ -0,0 +1,26 @@ +--- ./src/bdb.c.orig 2011-04-06 19:35:39.000000000 +0000 ++++ ./src/bdb.c 2013-12-18 19:04:39.134238326 +0000 +@@ -166,11 +166,10 @@ + rb_raise(rb_eNameError, "module already defined"); + } + version = rb_tainted_str_new2(db_version(&major, &minor, &patch)); +- if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR +- || patch != DB_VERSION_PATCH) { +- rb_raise(rb_eNotImpError, "\nBDB needs compatible versions of libdb & db.h\n\tyou have db.h version %d.%d.%d and libdb version %d.%d.%d\n", +- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, +- major, minor, patch); ++ if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR) { ++ rb_raise(rb_eNotImpError, "\nBDB needs compatible versions of libdb & db.h\n\tyou have db.h version %d.%d and libdb version %d.%d\n", ++ DB_VERSION_MAJOR, DB_VERSION_MINOR, ++ major, minor); + } + bdb_mMarshal = rb_const_get(rb_cObject, rb_intern("Marshal")); + bdb_id_current_db = rb_intern("__bdb_current_db__"); +@@ -189,7 +188,6 @@ + rb_define_const(bdb_mDb, "VERSION", version); + rb_define_const(bdb_mDb, "VERSION_MAJOR", INT2FIX(major)); + rb_define_const(bdb_mDb, "VERSION_MINOR", INT2FIX(minor)); +- rb_define_const(bdb_mDb, "VERSION_PATCH", INT2FIX(patch)); + rb_define_const(bdb_mDb, "VERSION_NUMBER", INT2NUM(BDB_VERSION)); + #if HAVE_CONST_DB_BTREE + rb_define_const(bdb_mDb, "BTREE", INT2FIX(DB_BTREE)); Property changes on: files/patch-src__bdb.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property 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 Index: files/patch-src__bdb.h =================================================================== --- files/patch-src__bdb.h (revision 0) +++ files/patch-src__bdb.h (working copy) @@ -0,0 +1,11 @@ +--- ./src/bdb.h.orig 2011-04-06 19:35:39.000000000 +0000 ++++ ./src/bdb.h 2013-12-18 19:00:54.751254058 +0000 +@@ -69,7 +69,7 @@ + #define DB_NEXT_DUP 0 + #endif + +-#define BDB_VERSION (10000*DB_VERSION_MAJOR+100*DB_VERSION_MINOR+DB_VERSION_PATCH) ++#define BDB_VERSION (10000*DB_VERSION_MAJOR+100*DB_VERSION_MINOR) + + #define BDB_MARSHAL (1<<0) + #define BDB_NOT_OPEN (1<<1) Property changes on: files/patch-src__bdb.h ___________________________________________________________________ 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