From owner-freebsd-ruby@FreeBSD.ORG Tue Sep 21 09:00:18 2010 Return-Path: Delivered-To: ruby@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2216A1065670 for ; Tue, 21 Sep 2010 09:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E951D8FC1B for ; Tue, 21 Sep 2010 09:00:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8L90Hwi002839 for ; Tue, 21 Sep 2010 09:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8L90HY9002816; Tue, 21 Sep 2010 09:00:17 GMT (envelope-from gnats) Date: Tue, 21 Sep 2010 09:00:17 GMT Message-Id: <201009210900.o8L90HY9002816@freefall.freebsd.org> To: ruby@FreeBSD.org From: Eric Cc: 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) X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eric List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2010 09:00:18 -0000 The following reply was made to PR ports/147809; it has been noted by GNATS. From: Eric To: Cc: 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`MU!/4E131$E2 M?2]D979E;"]R=6)Y9V5M+61E<')E8V%T960**R`@("`)"7)U8GEG96TM9&5P M6=E;2UD97!R M96-A=&5D,@H@"B!54T5?4E5"63T)>65S"B!54T5?4E5"65]315154#T)>65S M"F1I9F8@+7)U<$X@2UD8FDN;W)I9R]F:6QE2UD8FDO9FEL97,O<&%T8V@M;&EB+61B:2UC M;VQU;6YI;F9O+G)B"BTM+2!R=6)Y+61B:2YO2UD8FDO9FEL97,O<&%T8V@M;&EB+61B:2UC M;VQU;6YI;F9O+G)B"3(P,3`M,#DM,C$@,#@Z,C6=E;7,G"BLM("`@(&=E;2`G9&5P6=E;7,B"BLM("`@(&=E;2`B9&5P