aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2014-01-03 04:12:09 +0800
committerswills <swills@FreeBSD.org>2014-01-03 04:12:09 +0800
commitbfc828828cec5c92b79514d06f5cdddc4af58ac2 (patch)
tree3fb91396257b6cd922284f44536e6f3907979546 /databases
parent599d23e1d0bdbdd4de25d21dee3e30bc9ea47ef3 (diff)
downloadfreebsd-ports-gnome-bfc828828cec5c92b79514d06f5cdddc4af58ac2.tar.gz
freebsd-ports-gnome-bfc828828cec5c92b79514d06f5cdddc4af58ac2.tar.zst
freebsd-ports-gnome-bfc828828cec5c92b79514d06f5cdddc4af58ac2.zip
- Make check for bdb version ignore the patch level
PR: ports/184921
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-bdb/Makefile2
-rw-r--r--databases/ruby-bdb/files/patch-bdbxml1__bdbxml.cc48
-rw-r--r--databases/ruby-bdb/files/patch-bdbxml2__bdbxml.cc48
-rw-r--r--databases/ruby-bdb/files/patch-extconf.rb4
-rw-r--r--databases/ruby-bdb/files/patch-src__bdb.c26
5 files changed, 125 insertions, 3 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile
index 4b4942ae4a9f..2d9a601cee1d 100644
--- a/databases/ruby-bdb/Makefile
+++ b/databases/ruby-bdb/Makefile
@@ -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/ \
diff --git a/databases/ruby-bdb/files/patch-bdbxml1__bdbxml.cc b/databases/ruby-bdb/files/patch-bdbxml1__bdbxml.cc
new file mode 100644
index 000000000000..7ec4721e5d6a
--- /dev/null
+++ b/databases/ruby-bdb/files/patch-bdbxml1__bdbxml.cc
@@ -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
diff --git a/databases/ruby-bdb/files/patch-bdbxml2__bdbxml.cc b/databases/ruby-bdb/files/patch-bdbxml2__bdbxml.cc
new file mode 100644
index 000000000000..915d9e3c758b
--- /dev/null
+++ b/databases/ruby-bdb/files/patch-bdbxml2__bdbxml.cc
@@ -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
diff --git a/databases/ruby-bdb/files/patch-extconf.rb b/databases/ruby-bdb/files/patch-extconf.rb
index 082235a18894..d5896a60a8df 100644
--- a/databases/ruby-bdb/files/patch-extconf.rb
+++ b/databases/ruby-bdb/files/patch-extconf.rb
@@ -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
diff --git a/databases/ruby-bdb/files/patch-src__bdb.c b/databases/ruby-bdb/files/patch-src__bdb.c
new file mode 100644
index 000000000000..d8c655af9215
--- /dev/null
+++ b/databases/ruby-bdb/files/patch-src__bdb.c
@@ -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));