summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2012-10-28 07:53:43 +0000
committerAkinori Hattori <hattya@gentoo.org>2012-10-28 07:53:43 +0000
commita0aa0a10659a2c50e56cdf6c365d9375db48c683 (patch)
tree6ceb80c991d91dcae5a1c97a2ee2bec8601fc1fb /dev-db
parentAdd missing unistd include in test/unit/TestUtils.cpp for bug #439784. (diff)
downloadhistorical-a0aa0a10659a2c50e56cdf6c365d9375db48c683.tar.gz
historical-a0aa0a10659a2c50e56cdf6c365d9375db48c683.tar.bz2
historical-a0aa0a10659a2c50e56cdf6c365d9375db48c683.zip
add patch to fix compilation error with Ruby 1.9 wrt bug #439622
Package-Manager: portage-2.1.11.9/cvs/Linux i686
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/qdbm/ChangeLog7
-rw-r--r--dev-db/qdbm/Manifest13
-rw-r--r--dev-db/qdbm/files/qdbm-ruby19.diff363
-rw-r--r--dev-db/qdbm/qdbm-1.8.78-r1.ebuild3
4 files changed, 377 insertions, 9 deletions
diff --git a/dev-db/qdbm/ChangeLog b/dev-db/qdbm/ChangeLog
index 01e07c2de6c7..f82ec5901d59 100644
--- a/dev-db/qdbm/ChangeLog
+++ b/dev-db/qdbm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-db/qdbm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.141 2012/07/07 12:51:46 hattya Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.142 2012/10/28 07:53:43 hattya Exp $
+
+ 28 Oct 2012; Akinori Hattori <hattya@gentoo.org> +files/qdbm-ruby19.diff,
+ qdbm-1.8.78-r1.ebuild:
+ add patch to fix compilation error with Ruby 1.9 wrt bug #439622
07 Jul 2012; Akinori Hattori <hattya@gentoo.org> -qdbm-1.8.77.ebuild:
remove old ebuild.
@@ -502,4 +506,3 @@
+qdbm-1.8.13.ebuild:
Initial revision. Based on the ebuild from Atzm Watanabe
<sitosito@p.chan.ne.jp> in bug #55574, and modified by me.
-
diff --git a/dev-db/qdbm/Manifest b/dev-db/qdbm/Manifest
index 5eab05faf6df..3e7c1defacc9 100644
--- a/dev-db/qdbm/Manifest
+++ b/dev-db/qdbm/Manifest
@@ -1,16 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
AUX qdbm-perl-runpath-vendor.diff 1054 SHA256 e1e0b6bbe6089b8d1c7c80a5040a5102e8b09a1db05a3c9e7d4749dfdd88ffc0 SHA512 c192ba0d143b10c1e5eedaacd1ffce59fea4681012e2a0006ae70c6eee0edd76e0cfa319e004d9808069de65f6107f911af5d3769f322331e0f680d87c2be54e WHIRLPOOL 63f9c64d52f2e8e3029445b5d9f0a148cc263e5b48a7a5925cc9b46eb78f1d8863e97ff4bbd0887da16dc3e1fb5a2c48a699bc1ffdc18f366643fe975645de86
+AUX qdbm-ruby19.diff 10055 SHA256 7998d35b945cba9213f4d39a82864d2042ee77e75d295317bc50c417fe3e7031 SHA512 c6a4c6bf27b63388a9c2570c1671fcd2ab5b3c89ab31d90e366e55640921ed8987827a27b3bf6d645539425f38c6641cb649544912f8796ff491277909a95bbe WHIRLPOOL fe35ca861f74eecf7f5e64fc69e1fdd1831d208b7eb9bff971ba91f22ac4dc80c525a7184ef04adeb4f6b217ee555e481973c3dc8d377bf9d6033efb1b79f167
AUX qdbm-runpath.diff 1585 SHA256 d3e70c6b172fc5c379ede598b793bd1262a6209e99653af929e8c633ffebccf4 SHA512 4268d643fc4dd73d80cad5b0178ec9db700777a25d9b689a18abd8d5d136cf4630710e19f9062a9130680ff63a93f0ef6b16425bbbb439b190d3c3509631c47a WHIRLPOOL a5e6369414ea2a80e8e796801d0a935c8840bc996f697820230fdd9c24573d1b659d051d7749b07bba25a0414e0cfec817971518007f4ded1e5d78a2e4dd5dfe
DIST qdbm-1.8.78.tar.gz 1015429 SHA256 b466fe730d751e4bfc5900d1f37b0fb955f2826ac456e70012785e012cdcb73e SHA512 480549c56071bf82edf714a611aef863599c858ed63702820ae0890fd2c0029d1a231ed94a8090c74420dd648bd3625d270a5c078b113cbb86a12ef509e19037 WHIRLPOOL a42d2c981bf28e5b4619bf166177449abba02ef774a783c33feb7be04ef558cbec4b7e2ea4db85782eb59f57bdebeb0eb8170455e480cc5b578f7a6e0e3a39da
-EBUILD qdbm-1.8.78-r1.ebuild 2281 SHA256 244e253e9f9816292011c3a703f50e4f1fcf56dc9ada93a8892aa84df2939b62 SHA512 e9272533eac5435ff5ef1e50a822a4c2f48f0423161d0a2074f130557dbda6daff7624b2dfa03528c5304e41360b34d35817ae083db654eff9a9d642614427d0 WHIRLPOOL e3208a339878cc10c460606580953c154a8eaf7f8dc49f4a24a643033087d455da3910602e5f25db180ef10badf8c6b1de11754af3545f971a0b476794e0c2a3
-MISC ChangeLog 16048 SHA256 6e6b0433f4e8efcd4ce3e782531ea364448225ad984c99159c0ecab5d280ab83 SHA512 22e82a75cac9f5117a3a21f91aa52c5447fcfbe5189a73a7cd4c71026cdb94430db6ce26ff73aeeabd44b742c85d184393605458d352b0805aa4e9fad45412bd WHIRLPOOL 2dcbf64c5da9f460485fb0414587992b4e56a2e18599640f061062ec75a502531095dfc59b4d9ecac5cf3550b2d35393c052a7fbfa8778136a5bbf924538af0d
+EBUILD qdbm-1.8.78-r1.ebuild 2321 SHA256 49a146f35b99f23ea7de4982500f4d2a0c9c55b161ee1a0dd3f8c0e7f526ca3e SHA512 24eb7d4c6bb5da0ba72327a1ff073c825608c39de927a313bf77b0f2e3a32e8132e4f1cb3dbcb5c15220eaf85df73477c3270330d242f22ebd369c6ef32c1a2e WHIRLPOOL 55dd836f1b3570f012f40b73fdef276087dfcc8af156c3a132172c535f060181bc529f3d7a5bfe9ad3a0bc088d6290429125ab1a3d8bd5849c4927769107fd0d
+MISC ChangeLog 16216 SHA256 af0adf744d656cb4e3548eeaa3bb514e92d06cb3cf9d3a4599871aaae57a11b7 SHA512 6364974bfa2a2c365149df9fda5ad5304589415f6d2463ff2d62b77cd2608f6fc3787fca0978f7310580f73251bbb46b285bc285277c2f15d9c6d11176fe2d67 WHIRLPOOL 280b2489bdcf3e038a9b3aa4f75b0b520775cba4e9c15918264dda454df11a659089de7b74cdd9f9fde3055c8f1dd7cff6a7b91612672a0f8f4440a0208badaa
MISC metadata.xml 207 SHA256 131271f902267c3eb067a7b0316b1e2598d5cc32a4528edb37d50ea2f4b262e0 SHA512 5a94c029f35e9fe05a2ce6678db9a67aa9c0f78ed03b48e267b53db983c8bdc8f8cf2d5001e3c4074ddbe04526547f38576981f660d165c1a7908fa5eeaa20c6 WHIRLPOOL 8928372826be281072bdd0c064b1da6f8f10c220972343090083285052fd64608239840ec7ba9a313c7c5cf3309619fdd023a6fa49fbaf97311b5b6333e93b5a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEARECAAYFAk/4MOgACgkQL46suuyRem04hgCgoSwBtle60GRIxtjAiokJ72tp
-y9cAn010nuufi4yfdewNlsPtJjzAHyy3
-=sTVn
+iEYEAREIAAYFAlCM5IoACgkQL46suuyRem3TNQCgorwlYlh6V4GI3wHdJj/E8DDp
+M58AniFrlgo5XCVo0v9AdnuSHlP3RCR4
+=aUnn
-----END PGP SIGNATURE-----
diff --git a/dev-db/qdbm/files/qdbm-ruby19.diff b/dev-db/qdbm/files/qdbm-ruby19.diff
new file mode 100644
index 000000000000..51c2800e74d7
--- /dev/null
+++ b/dev-db/qdbm/files/qdbm-ruby19.diff
@@ -0,0 +1,363 @@
+--- qdbm-1.8.78.orig/ruby/Makefile.in
++++ qdbm-1.8.78/ruby/Makefile.in
+@@ -85,27 +85,27 @@
+ sync ; sync
+ cd depot && rm -rf casket
+ cd depot && \
+- $(RUNENV) ruby -w -Ilib rbdptest write casket 10000 1000
++ $(RUNENV) ruby -w -Ilib -I. rbdptest write casket 10000 1000
+ cd depot && \
+- $(RUNENV) ruby -w -Ilib rbdptest read casket
++ $(RUNENV) ruby -w -Ilib -I. rbdptest read casket
+ cd depot && \
+- $(RUNENV) ruby -w -Ilib rbdptest misc casket
++ $(RUNENV) ruby -w -Ilib -I. rbdptest misc casket
+ cd depot && rm -rf casket
+ cd curia && rm -rf casket
+ cd curia && \
+- $(RUNENV) ruby -w -Ilib rbcrtest write casket 10000 1000 10
++ $(RUNENV) ruby -w -Ilib -I. rbcrtest write casket 10000 1000 10
+ cd curia && \
+- $(RUNENV) ruby -w -Ilib rbcrtest read casket
++ $(RUNENV) ruby -w -Ilib -I. rbcrtest read casket
+ cd curia && \
+- $(RUNENV) ruby -w -Ilib rbcrtest misc casket
++ $(RUNENV) ruby -w -Ilib -I. rbcrtest misc casket
+ cd curia && rm -rf casket
+ cd villa && rm -rf casket
+ cd villa && \
+- $(RUNENV) ruby -w -Ilib rbvltest write casket 10000
++ $(RUNENV) ruby -w -Ilib -I. rbvltest write casket 10000
+ cd villa && \
+- $(RUNENV) ruby -w -Ilib rbvltest read casket
++ $(RUNENV) ruby -w -Ilib -I. rbvltest read casket
+ cd villa && \
+- $(RUNENV) ruby -w -Ilib rbvltest misc casket
++ $(RUNENV) ruby -w -Ilib -I. rbvltest misc casket
+ cd villa && rm -rf casket
+ @printf '\n'
+ @printf '#================================================================\n'
+--- qdbm-1.8.78.orig/ruby/curia/mod_curia.c
++++ qdbm-1.8.78/ruby/curia/mod_curia.c
+@@ -24,6 +24,13 @@
+
+ #define MAXOPEN 1024
+
++#ifndef StringValuePtr
++# define StringValuePtr(v) STR2CSTR(v)
++#endif
++#ifndef RSTRING_LEN
++# define RSTRING_LEN(s) (RSTRING(s)->len)
++#endif
++
+
+ VALUE ccuriaerror;
+ VALUE ccuriaerror_ENOERR;
+@@ -233,7 +240,7 @@
+ const char *name;
+ int index, omode, bnum, dnum;
+ if((index = getnewindex()) == -1) myerror(DP_EMISC);
+- name = STR2CSTR(vname);
++ name = StringValuePtr(vname);
+ FIXNUM_P(vomode);
+ omode = FIX2INT(vomode);
+ FIXNUM_P(vbnum);
+@@ -276,10 +283,10 @@
+ int index, ksiz, vsiz, dmode;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
+- vbuf = STR2CSTR(vval);
+- vsiz = RSTRING(vval)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
++ vbuf = StringValuePtr(vval);
++ vsiz = RSTRING_LEN(vval);
+ FIXNUM_P(vdmode);
+ dmode = FIX2INT(vdmode);
+ curia = crtable[index];
+@@ -297,8 +304,8 @@
+ int index, ksiz;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ curia = crtable[index];
+ if(!crout(curia, kbuf, ksiz)){
+ if(crsltable[index] && dpecode == DP_ENOITEM) return Qfalse;
+@@ -316,8 +323,8 @@
+ VALUE vval;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ FIXNUM_P(vstart);
+ start = FIX2INT(vstart);
+ FIXNUM_P(vmax);
+@@ -339,8 +346,8 @@
+ int index, ksiz, vsiz;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ curia = crtable[index];
+ if((vsiz = crvsiz(curia, kbuf, ksiz)) == -1){
+ if(crsltable[index] && dpecode == DP_ENOITEM) return INT2FIX(-1);
+--- qdbm-1.8.78.orig/ruby/curia/rbcrtest
++++ qdbm-1.8.78/ruby/curia/rbcrtest
+@@ -21,7 +21,7 @@
+
+ # main routine
+ def main()
+- $0.gsub!(/.*\//, "")
++ $0 = $0.gsub(/.*\//, "")
+ (ARGV.length >= 1) || usage()
+ if(ARGV[0] == "write")
+ rv = runwrite()
+@@ -283,7 +283,7 @@
+
+
+ # execute main
+-$0.gsub!(/.*\//, "")
++$0 = $0.gsub(/.*\//, "")
+ exit(main())
+
+
+Only in qdbm-1.8.78/ruby/depot: mkmf.log
+--- qdbm-1.8.78.orig/ruby/depot/mod_depot.c
++++ qdbm-1.8.78/ruby/depot/mod_depot.c
+@@ -23,6 +23,13 @@
+
+ #define MAXOPEN 1024
+
++#ifndef StringValuePtr
++# define StringValuePtr(v) STR2CSTR(v)
++#endif
++#ifndef RSTRING_LEN
++# define RSTRING_LEN(s) (RSTRING(s)->len)
++#endif
++
+
+ VALUE cdepoterror;
+ VALUE cdepoterror_ENOERR;
+@@ -232,7 +239,7 @@
+ const char *name;
+ int index, omode, bnum;
+ if((index = getnewindex()) == -1) myerror(DP_EMISC);
+- name = STR2CSTR(vname);
++ name = StringValuePtr(vname);
+ FIXNUM_P(vomode);
+ omode = FIX2INT(vomode);
+ FIXNUM_P(vbnum);
+@@ -273,10 +280,10 @@
+ int index, ksiz, vsiz, dmode;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
+- vbuf = STR2CSTR(vval);
+- vsiz = RSTRING(vval)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
++ vbuf = StringValuePtr(vval);
++ vsiz = RSTRING_LEN(vval);
+ FIXNUM_P(vdmode);
+ dmode = FIX2INT(vdmode);
+ depot = dptable[index];
+@@ -294,8 +301,8 @@
+ int index, ksiz;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ depot = dptable[index];
+ if(!dpout(depot, kbuf, ksiz)){
+ if(dpsltable[index] && dpecode == DP_ENOITEM) return Qfalse;
+@@ -313,8 +320,8 @@
+ VALUE vval;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ FIXNUM_P(vstart);
+ start = FIX2INT(vstart);
+ FIXNUM_P(vmax);
+@@ -336,8 +343,8 @@
+ int index, ksiz, vsiz;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ depot = dptable[index];
+ if((vsiz = dpvsiz(depot, kbuf, ksiz)) == -1){
+ if(dpsltable[index] && dpecode == DP_ENOITEM) return INT2FIX(-1);
+--- qdbm-1.8.78.orig/ruby/depot/rbdptest
++++ qdbm-1.8.78/ruby/depot/rbdptest
+@@ -21,7 +21,7 @@
+
+ # main routine
+ def main()
+- $0.gsub!(/.*\//, "")
++ $0 = $0.gsub(/.*\//, "")
+ (ARGV.length >= 1) || usage()
+ if(ARGV[0] == "write")
+ rv = runwrite()
+@@ -278,7 +278,7 @@
+
+
+ # execute main
+-$0.gsub!(/.*\//, "")
++$0 = $0.gsub(/.*\//, "")
+ exit(main())
+
+
+--- qdbm-1.8.78.orig/ruby/myrbdoc
++++ qdbm-1.8.78/ruby/myrbdoc
+@@ -186,7 +186,7 @@
+
+
+ # execute main
+-#$0.gsub!(/.*\//, "")
++#$0 = $0.gsub(/.*\//, "")
+ exit(main())
+
+
+--- qdbm-1.8.78.orig/ruby/villa/mod_villa.c
++++ qdbm-1.8.78/ruby/villa/mod_villa.c
+@@ -25,6 +25,13 @@
+
+ #define MAXOPEN 1024
+
++#ifndef StringValuePtr
++# define StringValuePtr(v) STR2CSTR(v)
++#endif
++#ifndef RSTRING_LEN
++# define RSTRING_LEN(s) (RSTRING(s)->len)
++#endif
++
+
+ VALUE cvillaerror;
+ VALUE cvillaerror_ENOERR;
+@@ -304,7 +311,7 @@
+ int index, omode, cmode;
+ VLCFUNC cmp;
+ if((index = getnewindex()) == -1) myerror(DP_EMISC);
+- name = STR2CSTR(vname);
++ name = StringValuePtr(vname);
+ FIXNUM_P(vomode);
+ omode = FIX2INT(vomode);
+ FIXNUM_P(vcmode);
+@@ -352,10 +359,10 @@
+ int index, ksiz, vsiz, dmode;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
+- vbuf = STR2CSTR(vval);
+- vsiz = RSTRING(vval)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
++ vbuf = StringValuePtr(vval);
++ vsiz = RSTRING_LEN(vval);
+ FIXNUM_P(vdmode);
+ dmode = FIX2INT(vdmode);
+ villa = vltable[index];
+@@ -373,8 +380,8 @@
+ int index, ksiz;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ villa = vltable[index];
+ if(!vlout(villa, kbuf, ksiz)){
+ if(vlsltable[index] && dpecode == DP_ENOITEM) return Qfalse;
+@@ -391,8 +398,8 @@
+ VALUE vval;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ villa = vltable[index];
+ if(!(vbuf = vlget(villa, kbuf, ksiz, &vsiz))){
+ if(vlsltable[index] && dpecode == DP_ENOITEM) return Qnil;
+@@ -409,8 +416,8 @@
+ int index, ksiz, vsiz;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ villa = vltable[index];
+ if((vsiz = vlvsiz(villa, kbuf, ksiz)) == -1){
+ if(vlsltable[index] && dpecode == DP_ENOITEM) return INT2FIX(-1);
+@@ -426,8 +433,8 @@
+ int index, ksiz, vnum;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ villa = vltable[index];
+ vnum = vlvnum(villa, kbuf, ksiz);
+ return INT2FIX(vnum);
+@@ -497,8 +504,8 @@
+ VALUE vval;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- kbuf = STR2CSTR(vkey);
+- ksiz = RSTRING(vkey)->len;
++ kbuf = StringValuePtr(vkey);
++ ksiz = RSTRING_LEN(vkey);
+ FIXNUM_P(vjmode);
+ jmode = FIX2INT(vjmode);
+ villa = vltable[index];
+@@ -551,8 +558,8 @@
+ int index, vsiz, cpmode;
+ FIXNUM_P(vindex);
+ if((index = FIX2INT(vindex)) == -1) myerror(DP_EMISC);
+- vbuf = STR2CSTR(vval);
+- vsiz = RSTRING(vval)->len;
++ vbuf = StringValuePtr(vval);
++ vsiz = RSTRING_LEN(vval);
+ FIXNUM_P(vcpmode);
+ cpmode = FIX2INT(vcpmode);
+ villa = vltable[index];
+--- qdbm-1.8.78.orig/ruby/villa/rbvltest
++++ qdbm-1.8.78/ruby/villa/rbvltest
+@@ -21,7 +21,7 @@
+
+ # main routine
+ def main()
+- $0.gsub!(/.*\//, "")
++ $0 = $0.gsub(/.*\//, "")
+ (ARGV.length >= 1) || usage()
+ if(ARGV[0] == "write")
+ rv = runwrite()
+@@ -280,7 +280,7 @@
+
+
+ # execute main
+-$0.gsub!(/.*\//, "")
++$0 = $0.gsub(/.*\//, "")
+ exit(main())
+
+
diff --git a/dev-db/qdbm/qdbm-1.8.78-r1.ebuild b/dev-db/qdbm/qdbm-1.8.78-r1.ebuild
index c596a054425b..ae14683e6191 100644
--- a/dev-db/qdbm/qdbm-1.8.78-r1.ebuild
+++ b/dev-db/qdbm/qdbm-1.8.78-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/qdbm-1.8.78-r1.ebuild,v 1.9 2012/05/28 13:58:16 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/qdbm-1.8.78-r1.ebuild,v 1.10 2012/10/28 07:53:43 hattya Exp $
EAPI="4"
@@ -25,6 +25,7 @@ DEPEND="${RDEPEND}
src_prepare() {
epatch "${FILESDIR}"/${PN}-runpath.diff
epatch "${FILESDIR}"/${PN}-perl-runpath-vendor.diff
+ epatch "${FILESDIR}"/${PN}-ruby19.diff
# apply flags
sed -i "/^CFLAGS/s|$| ${CFLAGS}|" Makefile.in
sed -i "/^OPTIMIZE/s|$| ${CFLAGS}|" perl/Makefile.in