Date: Tue, 21 Sep 2010 09:00:17 GMT From: Eric <freebsdports@chillibear.com> To: ruby@FreeBSD.org Subject: Re: ports/147809: databases/ruby-dbi: /usr/local/lib/ruby/site_ruby/1.8/dbi/utils/date.rb:57: undefined method `deprecate' for DBI::Date:Class (NoMethodError) Message-ID: <201009210900.o8L90HY9002816@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/147809; it has been noted by GNATS. From: Eric <freebsdports@chillibear.com> To: <bug-followup@FreeBSD.org> Cc: <ohartman@mail.zedat.fu-berlin.de> Subject: Re: ports/147809: databases/ruby-dbi: /usr/local/lib/ruby/site_ruby/1.8/dbi/utils/date.rb:57: undefined method `deprecate' for DBI::Date:Class (NoMethodError) Date: Tue, 21 Sep 2010 09:56:55 +0100 > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3367907823_6813288 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit I've submitted a new port for version2 of the deprecated gem. The PR is ports/150775 Attached and included inline below (although the email may mangle it) is a patch to databases/ruby-dbi that make use of my 'new' depreciated2 gem port. The patch includes changes to the Makefile to move the dependency on rubygem-deprecated to the 'new' rubygem-deprecated2 and also includes two patches (patch-lib-dbi-columninfo.rb and patch-lib-dbi.rb) to the ruby-dbi source to ensure it makes use of v2 of the gem if v3 is also installed on the system, i.e. They change gem "deprecated" Into gem "deprecated", '~> 2.0' I'm not a user of ruby-dbi and have no desire to rewrite the DBI library, hence this solution. Because I'm not a user I have only tested it by 'requiring' it in a script, however I don't think any of the changes are significant enough to break it (especially given it's already broken!) I hope it is of use in solving your issues with ruby-dbi Regards Eric --BEGIN-- diff -rupN ruby-dbi.orig/Makefile ruby-dbi/Makefile --- ruby-dbi.orig/Makefile 2009-10-29 11:44:12.000000000 +0000 +++ ruby-dbi/Makefile 2010-09-21 08:27:45.000000000 +0100 @@ -17,7 +17,7 @@ MAINTAINER= ruby@FreeBSD.org COMMENT= DBI-for-Ruby - a common interface for SQL-based databases RUN_DEPENDS= ${RUBY_SITELIBDIR}/aspectr.rb:${PORTSDIR}/devel/ruby-aspectr \ - rubygem-deprecated>0:${PORTSDIR}/devel/rubygem-deprecated + rubygem-deprecated2>2.0.0:${PORTSDIR}/devel/rubygem-deprecated2 USE_RUBY= yes USE_RUBY_SETUP= yes diff -rupN ruby-dbi.orig/files/patch-lib-dbi-columninfo.rb ruby-dbi/files/patch-lib-dbi-columninfo.rb --- ruby-dbi.orig/files/patch-lib-dbi-columninfo.rb 1970-01-01 01:00:00.000000000 +0100 +++ ruby-dbi/files/patch-lib-dbi-columninfo.rb 2010-09-21 08:27:45.000000000 +0100 @@ -0,0 +1,11 @@ +--- lib/dbi/columninfo.rb.orig 2009-05-31 11:12:23.000000000 +0100 ++++ lib/dbi/columninfo.rb 2010-09-20 21:14:38.000000000 +0100 +@@ -2,7 +2,7 @@ + + begin + require 'rubygems' +- gem 'deprecated' ++ gem 'deprecated', '~> 2.0' + rescue LoadError => e + end + diff -rupN ruby-dbi.orig/files/patch-lib-dbi.rb ruby-dbi/files/patch-lib-dbi.rb --- ruby-dbi.orig/files/patch-lib-dbi.rb 1970-01-01 01:00:00.000000000 +0100 +++ ruby-dbi/files/patch-lib-dbi.rb 2010-09-21 08:27:45.000000000 +0100 @@ -0,0 +1,11 @@ +--- lib/dbi.rb.orig 2009-09-13 21:43:32.000000000 +0100 ++++ lib/dbi.rb 2010-09-20 21:14:10.000000000 +0100 +@@ -37,7 +37,7 @@ + + begin + require "rubygems" +- gem "deprecated" ++ gem "deprecated", '~> 2.0' + rescue LoadError + end + --B_3367907823_6813288 Content-type: application/octet-stream; name="147809.patch" Content-disposition: attachment; filename="147809.patch" Content-transfer-encoding: x-uuencode begin 644 147809.patch M9&EF9B`M<G5P3B!R=6)Y+61B:2YO<FEG+TUA:V5F:6QE(')U8GDM9&)I+TUA M:V5F:6QE"BTM+2!R=6)Y+61B:2YO<FEG+TUA:V5F:6QE"3(P,#DM,3`M,CD@ M,3$Z-#0Z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P,#`P,#`P,"`K,#$P,`HK M*RLK(&QI8B]D8FDO8V]L=6UN:6YF;RYR8@DR,#$P+3`Y+3(P(#(Q.C$T.C,X M+C`P,#`P,#`P,"`K,#$P,`HK0$`@+3(L-R`K,BPW($!`"BL@"BL@8F5G:6X* M*R`@("`@<F5Q=6ER92`G<G5B>6=E;7,G"BLM("`@(&=E;2`G9&5P<F5C871E M9"<**RL@("`@9V5M("=D97!R96-A=&5D)RP@)WX^(#(N,"<**R!R97-C=64@ M3&]A9$5R<F]R(#T^(&4**R!E;F0**PID:69F("UR=7!.(')U8GDM9&)I+F]R M:6<O9FEL97,O<&%T8V@M;&EB+61B:2YR8B!R=6)Y+61B:2]F:6QE<R]P871C M:"UL:6(M9&)I+G)B"BTM+2!R=6)Y+61B:2YO<FEG+V9I;&5S+W!A=&-H+6QI M8BUD8FDN<F(),3DW,"TP,2TP,2`P,3HP,#HP,"XP,#`P,#`P,#`@*S`Q,#`* M*RLK(')U8GDM9&)I+V9I;&5S+W!A=&-H+6QI8BUD8FDN<F(),C`Q,"TP.2TR M,2`P.#HR-SHT-2XP,#`P,#`P,#`@*S`Q,#`*0$`@+3`L,"`K,2PQ,2!`0`HK M+2TM(&QI8B]D8FDN<F(N;W)I9PDR,#`Y+3`Y+3$S(#(Q.C0S.C,R+C`P,#`P M,#`P,"`K,#$P,`HK*RLK(&QI8B]D8FDN<F(),C`Q,"TP.2TR,"`R,3HQ-#HQ M,"XP,#`P,#`P,#`@*S`Q,#`**T!`("TS-RPW("LS-RPW($!`"BL@"BL@8F5G M:6X**R`@("`@<F5Q=6ER92`B<G5B>6=E;7,B"BLM("`@(&=E;2`B9&5P<F5C M871E9"(**RL@("`@9V5M(")D97!R96-A=&5D(BP@)WX^(#(N,"<**R!R97-C 5=64@3&]A9$5R<F]R"BL@96YD"BL* ` end --B_3367907823_6813288--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009210900.o8L90HY9002816>