From owner-freebsd-ruby@FreeBSD.ORG Wed Aug 24 01:29:20 2011 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2296106566C for ; Wed, 24 Aug 2011 01:29:19 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [204.109.58.86]) by mx1.freebsd.org (Postfix) with ESMTP id 969B58FC16 for ; Wed, 24 Aug 2011 01:29:19 +0000 (UTC) Received: from meatwad.mouf.net (cpe-065-190-149-241.nc.res.rr.com [65.190.149.241]) (authenticated bits=0) by mouf.net (8.14.4/8.14.4) with ESMTP id p7O1TGE1042880 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Tue, 23 Aug 2011 21:29:17 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <4E5453EC.8050109@FreeBSD.org> Date: Tue, 23 Aug 2011 21:29:16 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110531 Thunderbird/3.1.10 MIME-Version: 1.0 To: Barbara References: <20967509.210331314055274580.JavaMail.defaultUser@defaultHost> In-Reply-To: <20967509.210331314055274580.JavaMail.defaultUser@defaultHost> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mouf.net [204.109.58.86]); Tue, 23 Aug 2011 21:29:17 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.96.2 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org Subject: Re: about last portupgrade/ruby version X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2011 01:29:20 -0000 Hi, Thanks for the report and the patch. I believe we have fixed the issue you reported below, but due to other issues we've reverted the default version of ruby to 1.9. I you have trouble, please let us know and we will try to assist. Thanks, Steve On 08/22/11 19:21, Barbara wrote: > > I know that nowadays most people are fond of postamaster, anyway I'm still > using portupgrade because I've done a lot of scripts using its utilities and no > time/will to rework them using different tools. > Yesterday I upgraded sysutils/libchk, which, I think, pulled in lang/ruby19. > So I decided to rebuild the other ports still depending on ruby18 and removing > it. > Now, when I run portversion -l "<", I get an error caused by a bad encoding > [Updating the portsdb in /usr/ports ... - 22745 port > entries found .........1000.........2000.........3000........./usr/ports/INDEX- > 8:3905:invalid byte sequence in US-ASCII > 4000.........5000.........6000.........7000.........8000.........9000......... > 10000.........11000.........12000.........13000.........14000......... > 15000.........16000.........17000.........18000.........19000......... > 20000.........21000.........22000....... ..... done] > which seems to be caused by fr-belote-20061109_3 entry at line #7405. > So probably there is a problem in portversion as ruby19 is more picky about > encoding. > I think that /usr/local/lib/ruby/site_ruby/1.9/portsdb.rb should be patched as > follow (if INDEX-n isn't supposed to be an ASCII file): > --- portsdb.rb.orig 2011-08-21 22:57:12.000000000 +0200 > +++ portsdb.rb 2011-08-22 22:45:44.000000000 +0200 > @@ -564,7 +564,7 @@ > index_files = shelljoin(index_file) + ' ' > index_files.concat(@alt_index_files.join(' ')) > > - open("| sort #{index_files}") do |f| > + open("| sort #{index_files}", 'r:utf-8') do |f| > f.each_with_index do |line, i| > lineno = i + 1 > > or maybe using 'rb' instead of 'r:utf-8' > > > Anyway there is a more worrying (to me) problem: trying to upgrade some ports > (e.g. devel/apache-ant) I get this: > # portupgrade -Rp devel/apache-ant > [Gathering depends for devel/apache-ant > ................................................. done] > [Exclude up-to-date packages > ................................................................... done] > ** No origin recorded: ["icu-4.8.1"] > ** Specify one with -o option, or run 'pkgdb -F' to interactively fix it. > /usr/local/lib/ruby/site_ruby/1.9/pkgtools.rb:953:in `initialize': > ArgumentError (ArgumentError) > from /usr/local/sbin/portupgrade:1004:in `new' > from /usr/local/sbin/portupgrade:1004:in `rescue in do_upgrade' > from /usr/local/sbin/portupgrade:1007:in `do_upgrade' > from /usr/local/sbin/portupgrade:814:in `block (2 levels) in main' > from /usr/local/sbin/portupgrade:810:in `each' > from /usr/local/sbin/portupgrade:810:in `block in main' > from /usr/local/lib/ruby/1.9/optparse.rb:799:in `initialize' > from /usr/local/sbin/portupgrade:231:in `new' > from /usr/local/sbin/portupgrade:231:in `main' > from /usr/local/sbin/portupgrade:2219:in `
' > > while it works without -R. (and this is not the only port). > I wasn't seeing such an error since very long time, and as far as I can > remember it was fixed at a certain point in time!!! > Running 'pkgdb -F' does nothing. > > Finally, /usr/ports/Tools/script/plist isn't working anymore, throwing the > following two lines: > /usr/ports/Tools/scripts/plist:56: Invalid next > /usr/ports/Tools/scripts/plist: compile error (SyntaxError) > But ATM I'm too sleepy to figure out how to fix it. > > Barbara > > _______________________________________________ > freebsd-ruby@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ruby > To unsubscribe, send any mail to "freebsd-ruby-unsubscribe@freebsd.org"