summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-02-20 05:06:21 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-02-20 05:06:21 +0000
commit714747d291df5e60f4dd711a2f4b1f0defa9256e (patch)
tree28e1f6b3f4f2a2523d30ec1170874a0e10af1ed9 /databases
parentUpdate ruby-amstd to 2.0.0. (diff)
Add a patch to fix a bug where the open mode 'r+' doesn't work as
expected, which has already been submitted to the author. Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=54940
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-bdb1/Makefile1
-rw-r--r--databases/ruby-bdb1/files/patch-openmode33
2 files changed, 34 insertions, 0 deletions
diff --git a/databases/ruby-bdb1/Makefile b/databases/ruby-bdb1/Makefile
index 0ac878e1ea1e..7c58c4dae6ee 100644
--- a/databases/ruby-bdb1/Makefile
+++ b/databases/ruby-bdb1/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bdb1
PORTVERSION= 0.1.4
+PORTREVISION= 1
CATEGORIES= databases ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
diff --git a/databases/ruby-bdb1/files/patch-openmode b/databases/ruby-bdb1/files/patch-openmode
new file mode 100644
index 000000000000..4557b9be21a7
--- /dev/null
+++ b/databases/ruby-bdb1/files/patch-openmode
@@ -0,0 +1,33 @@
+--- docs/hashlike1.rd.orig Mon Nov 26 22:56:37 2001
++++ docs/hashlike1.rd Wed Feb 20 13:17:39 2002
+@@ -56,6 +56,10 @@
+ and it is an error to specify it in a transaction
+ protected environment.
+
++ : ((|BDB1::WRITE|))
++ Open the database for writing. Without this, any attempt to
++ modify items in the database will fail.
++
+ : ((|options for all classes|))
+ Hash, Possible options are
+
+diff -ru bdb1-0.1.4.orig/src/bdb1.c bdb1-0.1.4/src/bdb1.c
+--- src/bdb1.c.orig Mon Jan 14 00:18:01 2002
++++ src/bdb1.c Wed Feb 20 13:12:40 2002
+@@ -449,7 +449,7 @@
+ if (strcmp(RSTRING(c)->ptr, "r") == 0)
+ oflags = DB_RDONLY;
+ else if (strcmp(RSTRING(c)->ptr, "r+") == 0)
+- oflags = 0;
++ oflags = DB_WRITE;
+ else if (strcmp(RSTRING(c)->ptr, "w") == 0 ||
+ strcmp(RSTRING(c)->ptr, "w+") == 0)
+ oflags = DB_CREATE | DB_TRUNCATE | DB_WRITE;
+@@ -1320,6 +1320,7 @@
+ rb_define_const(bdb1_mDb, "RDONLY", INT2FIX(DB_RDONLY));
+ rb_define_const(bdb1_mDb, "SET_RANGE", INT2FIX(DB_SET_RANGE));
+ rb_define_const(bdb1_mDb, "TRUNCATE", INT2FIX(DB_TRUNCATE));
++ rb_define_const(bdb1_mDb, "WRITE", INT2FIX(DB_WRITE));
+ rb_define_const(bdb1_mDb, "NOOVERWRITE", INT2FIX(DB_NOOVERWRITE));
+ /* DATABASE */
+ bdb1_cCommon = rb_define_class_under(bdb1_mDb, "Common", rb_cObject);