On 4/27/2007 6:40 AM Lowell Gilbert wrote:
Kevin Kinsey <[EMAIL PROTECTED]> writes:
Drew Tomlinson wrote:
So this seems like updating portupgrade should be trivial but I am
stuck. Suggestions appreciated.
Yeah, I missed the note on this one, too. Not the change note, but
I don't recall seeing the instructions on what to do about it.
Tried deinstalling portupgrade and reinstalling? The catch-22,
of course, is that you can't "cd /usr/ports/sysutils/portupgrade"
in order to `make deinstall`. However, this might work (and I believe
it's the kludge I used to get around the issue):
$ rm -rf /var/db/pkg/portupgrade*
$ cd /usr/ports/ports-mgmt/portupgrade
$ make install clean
A little safer would be to replace the first line with
"pkg_delete portupgrade*".
If you're not going to go with the "portupgrade -o" solution
that someone already posted.
Thanks for all the replies. Funny thing is that when trying the
"portupgrade -o" solution and using "pkg_info | grep portupgrade", no
results were returned. The /var/db/pkg directory had no portupgrade*
entries. Thus I just used "portupgrade -N portupgrade" to upgrade. All
seemed OK. I did notice a "make config" window that asked me which
version of Berkeley DB to use for the backend. Not knowing, I just
chose the default of ">=2" and the port built without error.
Next I attempted "pkgdb -L" suggested in the pkg-message file. It
returned this error:
blacksheep# pkgdb -L
[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!]
I assume this is due to choosing the incorrect Berkeley DB version? So
should I rebuild the portupgrade port and choose Berkeley DB 1.85 or is
it recommended to convert the pkgdb to the newer version? If I should
convert, how?
Thanks,
Drew
--
Be a Great Magician!
Visit The Alchemist's Warehouse
http://www.alchemistswarehouse.com
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"