After the update a few days ago, http://www.freebsd.org/cgi/cvsweb.cgi/ports/ports-mgmt/portupgrade-devel/ portupgrade will happily update installed ports, but portinstall will not install a new port that's not already installed. #rehash ; portinstall x11-toolkits/evilvte [Gathering depends for x11-toolkits/evilvte ................../usr/local/sbin/portinstall:878:in `get_all_depends': private method `scan' called for #<Set: {}> (NoMethodError) from /usr/local/sbin/portinstall:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:870:in `get_all_depends' from /usr/local/sbin/portinstall:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:870:in `get_all_depends' from /usr/local/sbin/portinstall:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:870:in `get_all_depends' from /usr/local/sbin/portinstall:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:870:in `get_all_depends' from /usr/local/sbin/portinstall:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:870:in `get_all_depends' from /usr/local/sbin/portinstall:887:in `get_notinstalled_depends' from /usr/local/sbin/portinstall:773:in `main' from /usr/local/sbin/portinstall:751:in `each' from /usr/local/sbin/portinstall:751:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1248:in `order!' from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order' from /usr/local/sbin/portinstall:559:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portinstall:231:in `new' from /usr/local/sbin/portinstall:231:in `main' from /usr/local/sbin/portinstall:2213 As a test, I ran, #pkg_deinstall xchat-2.8.6_3 ---> Deinstalling 'xchat-2.8.6_3' pkg_delete: unable to completely remove directory '/usr/local/lib/xchat/plugins' pkg_delete: unable to completely remove directory '/usr/local/lib/xchat' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) [Updating the pkgdb <format:bdb_hash> in /var/db/pkg ... - 1137 packages found (-1 +0) (...) done] [23:41:02] jimmie@jimmiejaz <119> [0] /usr/ports/x11-toolkits#portinstall irc/xchat and got the excat error as above, tried several ports and all error out with the same message. Fix: work-arounds: portmaster, make install Fix: no idea, ruby isn't my strong poing. How-To-Repeat: portinstall any-none installed port.
Class Changed From-To: sw-bug->change-request Fix category (new ports should be change-requests) (via the GNATS Auto Assign Tool)
Class Changed From-To: change-request->sw-bug Fix synopsis and assign.
Responsible Changed From-To: freebsd-ports-bugs->ruby
Hi, This is quick fix. --- portupgrade.ORG 2009-12-20 10:11:00.000000000 +0900 +++ portupgrade 2009-12-20 10:16:10.000000000 +0900 @@ -834,7 +834,7 @@ depends = Set.new portdir = $portsdb.portdir(origin) - return nil if not File.directory?(portdir) + return [] if not File.directory?(portdir) begin run_make_config(portdir, origin) if $config
Makoto's patch is a correct and reasonable fix. Maintainers, please apply it. -- Akinori MUSHA / http://akinori.org/
State Changed From-To: open->closed Committed. Thanks!