mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
- Pet portlint: fix diff header of patch files - Convert to options target helper With hat: ruby
29 lines
1.6 KiB
C++
29 lines
1.6 KiB
C++
--- bdbxml1/bdbxml.cc.orig 2011-04-06 19:35:39 UTC
|
|
+++ bdbxml1/bdbxml.cc
|
|
@@ -2340,18 +2340,16 @@
|
|
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);
|
|
+ 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"));
|