[DRE-commits] [ruby-bdb] 01/12: Add patch 'fix-inheritance'
David Suárez
deiv-guest at moszumanska.debian.org
Wed Mar 12 20:40:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
deiv-guest pushed a commit to branch master
in repository ruby-bdb.
commit 7241cc839a9619f789c4a73f166bd3b73d4783c9
Author: David Suárez <david.sephirot at gmail.com>
Date: Wed Mar 12 20:18:37 2014 +0100
Add patch 'fix-inheritance'
---
debian/patches/fix-inheritance | 28 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 29 insertions(+)
diff --git a/debian/patches/fix-inheritance b/debian/patches/fix-inheritance
new file mode 100644
index 0000000..cc6e396
--- /dev/null
+++ b/debian/patches/fix-inheritance
@@ -0,0 +1,28 @@
+Description: Fix inheritance of some helper methods
+
+Author: David Suárez <david.sephirot at gmail.com>
+Last-Update: 2014-03-12
+
+--- ruby-bdb-0.6.6.orig/src/common.c
++++ ruby-bdb-0.6.6/src/common.c
+@@ -1277,16 +1277,16 @@ bdb_s_new(int argc, VALUE *argv, VALUE o
+ dbst->marshal = obj;
+ dbst->options |= BDB_MARSHAL;
+ }
+- if (rb_method_boundp(obj, rb_intern("bdb_store_key"), 0) == Qtrue) {
++ if (rb_method_boundp(obj, rb_intern("bdb_store_key"), 0) == 1) {
+ dbst->filter[FILTER_KEY] = INT2FIX(rb_intern("bdb_store_key"));
+ }
+- if (rb_method_boundp(obj, rb_intern("bdb_fetch_key"), 0) == Qtrue) {
++ if (rb_method_boundp(obj, rb_intern("bdb_fetch_key"), 0) == 1) {
+ dbst->filter[2 + FILTER_KEY] = INT2FIX(rb_intern("bdb_fetch_key"));
+ }
+- if (rb_method_boundp(obj, rb_intern("bdb_store_value"), 0) == Qtrue) {
++ if (rb_method_boundp(obj, rb_intern("bdb_store_value"), 0) == 1) {
+ dbst->filter[FILTER_VALUE] = INT2FIX(rb_intern("bdb_store_value"));
+ }
+- if (rb_method_boundp(obj, rb_intern("bdb_fetch_value"), 0) == Qtrue) {
++ if (rb_method_boundp(obj, rb_intern("bdb_fetch_value"), 0) == 1) {
+ dbst->filter[2 + FILTER_VALUE] = INT2FIX(rb_intern("bdb_fetch_value"));
+ }
+ rb_obj_call_init(res, argc, argv);
diff --git a/debian/patches/series b/debian/patches/series
index 858da5c..dfd0ad0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ dont-check-patch-level.patch
fail-make-test-if-tests-fail.patch
add-support-for-libdb_version_5_and_higher.patch
remove_constants_safely
+fix-inheritance
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-bdb.git
More information about the Pkg-ruby-extras-commits
mailing list