portupgrade -af in FreeBSDupdate to 8.0

n dhert ndhertbsd at gmail.com
Wed Jun 23 07:29:44 UTC 2010


in the process of upgrading 7.2 -> 8.0, the last step is to recompile all
ports
(section 24.2.3 of freebsd manual)
# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
# portugprade -f ruby18-bdb
# rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db

# portupgrade -af

Did that for my 760 ports, but after 499 ports reinstalled (and 11 hours),
it stopped with
...
===>  Cleaning for ruby+nopthreads-1.8.7.248_2,1
--->  Removing temporary files and directories
--->  Removing old package'
--->  Installation of lang/ruby18 ended at: Wed, 23 Jun 2010 01:06:29 +0200
(con
sumed 00:00:12)
--->  Cleaning out obsolete shared libraries
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... Inappropriate file
type
 or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb
<format:db
m_hash> in /var/db/pkg ... - 760 packages found (-0 +760) ........
........................................................700.....................
....................................... done]
--->  Reinstallation of lang/ruby18 ended at: Wed, 23 Jun 2010 01:07:57
+0200 (c
onsumed 00:04:09)
--->  ** Upgrade tasks 748: 497 done, 12 ignored, 1 skipped and 0 failed
--->  Session ended at: Wed, 23 Jun 2010 01:07:57 +0200 (consumed 10:28:19)
/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:215:in `origin':
/var/db/pkg/pkgdb.db
: unexpected file type or format -- Invalid argument (PkgDB::DBError)
        from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:205:in `origin'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:245:in
`config_includ
e?'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:215:in
`config_ignore
_moved?'
        from /usr/local/sbin/portupgrade:942:in `do_upgrade'
        from /usr/local/sbin/portupgrade:816:in `main'
        from /usr/local/sbin/portupgrade:812:in `each'
        from /usr/local/sbin/portupgrade:812:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
        from /usr/local/sbin/portupgrade:229:in `new'
        from /usr/local/sbin/portupgrade:229:in `main'
        from /usr/local/sbin/portupgrade:2213
#
# pkgdb -F
--->  Checking the package registry database
#

Why does it stop? Can it be avoided? Or can I make portupgrade -af start
from where it got so far in the first run ?


I could do # portupgrade -af  again, but this is again "everything" (11
hours)...

I noticed on a different system (with only 64 ports), that it stopped at
lang/ruby18 there as well,
and after again # portugprade -af (which then continued past lang/ruby18),
it stopped a second time
in the same manner at
 --->  Reinstallation of databases/ruby-bdb ended at: Mon, 14 Jun 2010
13:01:25
 +0200 (consumed 00:00:28)


More information about the freebsd-questions mailing list