Bug 140192 - ports-mgmt/portupgrade-devel fails to install a new port.
Summary: ports-mgmt/portupgrade-devel fails to install a new port.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 05:10 UTC by JImmie James
Modified: 2009-12-21 22:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JImmie James 2009-11-02 05:10:01 UTC
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-11-02 05:10:18 UTC
Class Changed
From-To: sw-bug->change-request

Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool)
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-11-02 09:15:39 UTC
Class Changed
From-To: change-request->sw-bug

Fix synopsis and assign. 


Comment 3 Mark Linimon freebsd_committer freebsd_triage 2009-11-02 09:15:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ruby
Comment 4 ksmakoto 2009-12-21 08:25:12 UTC
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
Comment 5 Akinori MUSHA 2009-12-21 12:30:00 UTC
Makoto's patch is a correct and reasonable fix.  Maintainers, please
apply it.

--
Akinori MUSHA / http://akinori.org/
Comment 6 Stanislav Sedov freebsd_committer freebsd_triage 2009-12-21 22:25:23 UTC
State Changed
From-To: open->closed

Committed. Thanks!