Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ports/126140 - dependency lookup error #11

Closed
bdrewery opened this issue Apr 16, 2012 · 3 comments
Closed

ports/126140 - dependency lookup error #11

bdrewery opened this issue Apr 16, 2012 · 3 comments
Milestone

Comments

@bdrewery
Copy link
Member

ports/126140

Version reported

2.4.6,2

Original report

[root@d02]# pkg_version -vl\<
postgresql-client-8.3.1 < needs updating (port has 8.3.3)
postgresql-server-8.3.1 < needs updating (port has 8.3.3)
slony1-1.2.13 < needs updating (port has 1.2.14_1)
[root@d02]# portupgrade -Rrv -p postgresql-client-8.3.1
---> Session started at: Thu, 31 Jul 2008 10:47:40 -0400
[Updating the pkgdb  in /var/db/pkg ... - 48 packages found (-0 +1) . done]
[Gathering depends for databases/postgresql83-client ..... done]
[Gathering depends for databases/slony1 ......... done]
[Gathering depends for local/kci-dbserver .............. done]
[Exclude up-to-date packages .............. done]
---> Session ended at: Thu, 31 Jul 2008 10:47:44 -0400 (consumed 00:00:04)
/usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:74:in `initialize': : Not in due form: - (ArgumentError)
from /usr/local/sbin/portupgrade:931:in `new'
from /usr/local/sbin/portupgrade:931:in `do_upgrade'
from /usr/local/sbin/portupgrade:815:in `main'
from /usr/local/sbin/portupgrade:811:in `each'
from /usr/local/sbin/portupgrade:811:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize'
from /usr/local/sbin/portupgrade:229:in `new'
from /usr/local/sbin/portupgrade:229:in `main'
from /usr/local/sbin/portupgrade:2208


If I run without the -rR flags, it will upgrade individual ports... though it
did somehow manage to uninstall subversion and not install the new version
when I upgraded that.

Followup

Hi, Vivek!

Can you, please, try the following patch attached?
Thanks!

--- bin/portupgrade 26 Oct 2009 14:47:49 -0000 1.62
+++ bin/portupgrade 27 Oct 2009 14:59:37 -0000 1.63
@@ -631,7 +631,10 @@
if $upward_recursive || $config
dep = []
get_all_depends(origin).each do |d|
- dep << $pkgdb.deorigin(d).to_s
+ newdep = $pkgdb.deorigin(d)
+ unless newdep.nil? then
+ dep << newdep.to_s
+ end
end
depends |= dep if $upward_recursive
end

-- 
Stanislav Sedov
ST4096-RIPE
@bdrewery
Copy link
Member Author

This may be related to ports/125936
Also may be related to ports/137708

@bdrewery
Copy link
Member Author

295a551 likely fixed this.

@bdrewery
Copy link
Member Author

Confirmed this is the same as the listed PR and is fixed already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant