FreeBSD Port: portupgrade-2.1.3.2, 2 - help me please, the port in short time is broken again, what does it all mean ?

Bert van de Grift bert at vdgrift.org
Mon Jul 3 06:54:01 UTC 2006


On Mon, Jul 03, 2006 at 10:15:56AM +0400, Sergey Matveychuk wrote:
> Bert van de Grift wrote:
>> On Mon, Jul 03, 2006 at 09:48:39AM +0400, Sergey Matveychuk wrote:
>>> Daniel Dvor(a'k wrote:

>>>> Fixing the pkgdb.db does not help me at all.

>>> It's a known issue.

>>> Just remove the file and /usr/ports/INDEX*.db and run portupgrade
>>> again.  Note, it's described on man page - if you found pkgdb.db
>>> seriously broken, just remove it.

>> I have the same problem after upgrading portupgrade but when I go back
>> to the previous version (2.1.1,2) everything is ok...

> See my HANDS-UP message a couples days ago at the list.
> Old (<=2.1.1,2) portupgrade use wrong (may be a right word will -
> "unexpected") database format.

OK - But when I remove /usr/ports/INDEX*.db and rebuild the database I
get this:

[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid
argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in
/var/db/pkg ... [Updating the portsdb <format:bdb_btree> in /usr/ports
... - 15088 port entries found
.........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000
..... done]
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid
argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in
/var/db/pkg ... /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:352:in
`deorigin_glob': /var/db/pkg/pkgdb.db: unexpected file type or format --
Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
(PkgDB::DBError)
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:182:in
`config_include?'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:177:in
`config_include?'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:167:in
`config_ignore_moved?'
        from /usr/local/sbin/portversion:308:in `check_pkgs'
        from /usr/local/sbin/portversion:306:in `check_pkgs'
        from /usr/local/sbin/portversion:266:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
        from /usr/local/sbin/portversion:78:in `main'
        from /usr/local/sbin/portversion:361

Any clues?

-- 
Bert van de Grift
http://www.vdgrift.org
GPG Key: http://www.vdgrift.org/0x306DE560.asc
Fingerprint: 3E79 1F71 6699 619E 8BCC  B21A E1ED 76E0 306D E560


More information about the freebsd-ports mailing list