Error with current portupgrade-devel
Ollivier Robert
roberto at keltia.freenix.fr
Fri Nov 27 11:21:40 UTC 2009
Hello,
I'm using portupgrade from pktools-20091029 and I've hit a bug which seems to me a rather obvious bug.
590 [11:59] root at ng:ports/net# portinstall avahi
[Gathering depends for net/avahi ............./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: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
Problem is, there is no #scan method in the Set class.
869 children_deps = Set.new
870 depends.each do |dep|
871 children_deps.merge(get_all_depends(dep, parents_list)) if !dep.nil?
872 end
873 if !children_deps.nil?
874 depends.merge(children_deps)
875 end
876
877 STDERR.puts ' done]' if first
878 $depends[origin] = depends.scan(/.*\n/).compact <<<<<<<
879 else
880 $depends[origin]
881 end
882 end
I'll trace it to see what exactly could be in depends and see what it is supposed to achieve. But am I the only one with this?
Cheers,
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr
In memoriam to Ondine : http://ondine.keltia.net/
More information about the freebsd-ruby
mailing list