ports-mgmt/portupgrade ISSUE portinstall recursive dependency error

awarecons awarecons at gmail.com
Thu Feb 7 17:47:29 UTC 2013


Thank you for support.

On a fresh 9.1-REL compiled with GCC 4.2.1 it works fine.

But on mixed (GCC 4.2.1, but 4.6.3 whereever possible) 9.0-REL the
problem persists still.
Looks like portinstall itself, or ruby/ruby-bdb might or whatever
direct siblings deviate under GCC 4.6.3 compilation, likewise
java/icedtea-web does with Opera.
Tried total removal of portupgrade, ruby and databases/ruby-bdb,
/usr/ports/indexes and pkgdb.db ... total clean-up - without success.

Could you advise any special files that might need removal used by
portinstall, except /var/db/pkg/pkgdb.db? Which may affect double
counting of dependancies, like in the case mentioned above?:

[Gathering depends for security/vuxml
.....(devel/binutils).......(devel/binutils)--->  Session ended at:

Looks like it builds /var/db/pkg/pkgdb.db in some inproper way...

Have you tried to compile the whole bunch with gcc 4.6.3? Was it successful?

Looks like it stucks inside the bdb-creation/processing step:
# rm -f /var/db/pkg/pkgdb.db
# pkgdb -uf
--->  Updating the pkgdb
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... - 1094
packages found (-0 +1094)
....................................................................................................100....................................................................................................200....................................................................................................300....................................................................................................400....................................................................................................500....................................................................................................600....................................................................................................700....................................................................................................800....................................................................................................900....................................................................................................1000..............................................................................................
done]
# portupgrade -Nvprn security/vuxml
--->  Session started at: Thu, 07 Feb 2013 21:33:21 +0400
[Updating the portsdb <format:bdb_btree> in /usr/ports ... - 24165
port entries found
.........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.
..... done]
Install 'security/vuxml'? [no]
[Gathering depends for security/vuxml
.....(textproc/xmlcatmgr)..(devel/binutils).......(devel/binutils)--->
 Session ended at: Thu, 07 Feb 2013 21:34:31 +0400 (consumed 00:01:10)
/usr/local/sbin/portupgrade:898:in `get_all_depends': recursive
dependency (RecursiveDependencyError)
from /usr/local/sbin/portupgrade:921: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/portupgrade:920:in `get_all_depends'
from /usr/local/sbin/portupgrade:921: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/portupgrade:920:in `get_all_depends'
from /usr/local/sbin/portupgrade:921: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/portupgrade:920:in `get_all_depends'
from /usr/local/sbin/portupgrade:937:in `get_notinstalled_depends'
from /usr/local/sbin/portupgrade:813:in `main'
from /usr/local/sbin/portupgrade:791:in `each'
from /usr/local/sbin/portupgrade:791: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/portupgrade:576:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
from /usr/local/sbin/portupgrade:237:in `new'
from /usr/local/sbin/portupgrade:237:in `main'
from /usr/local/sbin/portupgrade:2371

2013/2/6 Bryan Drewery <bdrewery at freebsd.org>:
> On 1/5/2013 9:38 AM, awarecons wrote:
>> # $FreeBSD: ports/ports-mgmt/portupgrade/Makefile,v 1.285 2012/12/11
>> 17:07:46 svnexp Exp $
>>
>> # portupgrade -Nv java/openjdk7
>> --->  Session started at: Sat, 05 Jan 2013 19:27:12 +0400
>> [Gathering depends for java/openjdk7
>> ..................(java/javavmwrapper)..(lang/gcc)..........(lang/gcc)--->
>>  Session ended at: Sat, 05 Jan 2013 19:27:18 +0400 (consumed 00:00:06)
>> /usr/local/sbin/portupgrade:898:in `get_all_depends': recursive
>> dependency (RecursiveDependencyError)
>> from /usr/local/sbin/portupgrade:921: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/portupgrade:920:in `get_all_depends'
>> from /usr/local/sbin/portupgrade:921: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/portupgrade:920:in `get_all_depends'
>> from /usr/local/sbin/portupgrade:921: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/portupgrade:920:in `get_all_depends'
>> from /usr/local/sbin/portupgrade:937:in `get_notinstalled_depends'
>> from /usr/local/sbin/portupgrade:813:in `main'
>> from /usr/local/sbin/portupgrade:791:in `each'
>> from /usr/local/sbin/portupgrade:791: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/portupgrade:576:in `main'
>> from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
>> from /usr/local/sbin/portupgrade:237:in `new'
>> from /usr/local/sbin/portupgrade:237:in `main'
>> from /usr/local/sbin/portupgrade:2371
>>
>> Repeatable on any new port.
>> Appeared after last update of portupgrade,  previous version worked fine.
>
> Did you get this worked out? I have not had any other reports of this
> issue. The only change in the last version was to no longer support
> older db formats. This should not be a problem though as I put in code
> 6+ months ago to handle this situation. Your failure does not look
> related. You can really force rebuild: rm /var/db/pkg/pkgdb.db; pkgdb -uf
>
> Beyond that I recommend rechecking out ports fresh from SVN or portsnap:
> rm -rf /usr/ports; portsnap fetch extract
>
>
> --
> Regards,
> Bryan Drewery
> bdrewery at freenode/EFNet
>


More information about the freebsd-ports mailing list