From owner-freebsd-ruby@FreeBSD.ORG Mon Aug 22 23:32:27 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 A7165106566C for ; Mon, 22 Aug 2011 23:32:27 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from outrelay01.libero.it (outrelay01.libero.it [212.52.84.101]) by mx1.freebsd.org (Postfix) with ESMTP id 312F08FC14 for ; Mon, 22 Aug 2011 23:32:26 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0205.4E52E46A.00AA,ss=1,re=0.000,fgs=0 X-libjamoibt: 1821 Received: from wmail58 (172.31.0.55) by outrelay01.libero.it (8.5.133) (authenticated as barbara.xxx1975@libero.it) id 4E3BF90A00DAD18D for ruby@FreeBSD.org; Tue, 23 Aug 2011 01:21:14 +0200 Message-ID: <20967509.210331314055274580.JavaMail.defaultUser@defaultHost> Date: Tue, 23 Aug 2011 01:21:14 +0200 (CEST) From: Barbara To: MIME-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: 7bit X-SenderIP: 87.21.213.108 Cc: Subject: about last portupgrade/ruby version X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Barbara List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 23:32:27 -0000 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