Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2006 00:17:10 +0200
From:      =?iso-8859-2?Q?Daniel_Dvo=F8=E1k?= <dandee@hellteam.net>
To:        <sem@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: portupgrade-2.1.3.2, 2 - help me please, the port in short time is broken again, what does it all mean ?
Message-ID:  <003201c69e25$43b56de0$6508280a@tocnet28.jspoj.czf>

next in thread | raw e-mail | index | archive | help
Hi all,
 
I upgraded my portupgrade to version 2.1.3 12 days ago, it was broken, okay
after reading Makeconf changes a go back by portupgrading to 2.1.4, actualy
2.1.1,2.
 
I was glad to see the portupgrade is working again.
 
Today cron/portsnap update told me, there is new version of portupgrade,
okay ...
 
 
portaudit-0.5.11            =  up-to-date with port
portupgrade-2.1.1,2         <  needs updating (port has 2.1.3.2,2)
python-2.4.3                =  up-to-date with port

# portupgrade -Rr portupgrade
...
===>  Found saved configuration for portupgrade-2.0.1_1,1
...
--->  Backing up the old version
--->  Uninstalling the old version
--->  Deinstalling 'portupgrade-2.1.1,2'
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 149 packages
found (-1 +0) (...) done]
--->  Installing the new version via the port
===>  Installing for portupgrade-2.1.3.2,2
===>   portupgrade-2.1.3.2,2 depends on file: /usr/local/bin/ruby18 - found
===>   portupgrade-2.1.3.2,2 depends on file:
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb.so - found
===>   portupgrade-2.1.3.2,2 depends on file: /usr/local/bin/perl5.8.8 -
found
===>   Generating temporary packing list
===>  Checking if sysutils/portupgrade already installed
...
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib/compat/pkg
===>   Installing ldconfig configuration file
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib/compat/pkg
if [ ! -f /usr/local/etc/pkgtools.conf ]; then  /bin/cp -p
/usr/local/etc/pkgtoo
ls.conf.sample /usr/local/etc/pkgtools.conf;  fi
===>   Registering installation for portupgrade-2.1.3.2,2
===>  Cleaning for ruby-1.8.4_8,1
===>  Cleaning for ruby18-bdb-0.5.9
===>  Cleaning for perl-5.8.8
===>  Cleaning for db41-4.1.25_3
===>  Cleaning for portupgrade-2.1.3.2,2
--->  Cleaning out obsolete shared libraries
[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:647:in `which': /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/sbin/portsclean:322:in `libclean'
        from /usr/local/sbin/portsclean:306:in `libclean'
        from /usr/local/sbin/portsclean:153:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
        from /usr/local/sbin/portsclean:67:in `main'
        from /usr/local/sbin/portsclean:684
[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 ... /var/db/pkg/pkgdb.db:
unexpected
 file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot
upda
te the pkgdb!]
/usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': Command
failed
[exit code 1]: /usr/local/sbin/pkgdb -aFQ (CommandFailedError)
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in `__sudo'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in `xsystem!'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in `autofix!'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in `autofix'
        from /usr/local/sbin/portupgrade:475:in `main'
        from /usr/local/sbin/portupgrade:714:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
        from /usr/local/sbin/portupgrade:209:in `main'
        from /usr/local/sbin/portupgrade:1951
...
# rehash
# portversion -v
[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 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 ... /var/db/pkg/pkgdb.db: unexpected file type or format --
Invalid
argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
...
 
So what now ?
 
Is it broken again in same manner ?
Do I something do wrong ?
 
I would like to inform about it and to ask you, if you can help me, what to
do with this now.
 
Fixing the pkgdb.db does not help me at all.
 
Thanks
 
Daniel
 
Please, send answer to my email, I am not in mailling list, thank you again.
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003201c69e25$43b56de0$6508280a>