Rabu, 18 Januari 2006

Fixing FreeBSD Stale Package Dependency

Today I reinstalled my laptop with FreeBSD 6.0. I proceeded to install all of the software I needed using FreeBSD packages. After I finished I ran portversion to see if anything was out-of-date.


orr:/root# portversion -v -l "<"
[Updating the pkgdb in /var/db/pkg ... - 125 packages found (-0 +97) ...
done]
Stale dependency: gtksee-0.5.6 --> bzip-0.21 -- manually run 'pkgdb -F' to fix, or specify -O to force.

That doesn't look good. There is a problem with the package database (pkgdb) that needs to be fixed. Apparently gtksee is looking for bzip, but bzip is not installed. I checked the archivers/bzip FreshPorts page and notice there are patent problems with the program. In fact, they recommend using bzip2.

I next install bzip2 as a package, and then I run pkgdb to fix the package database.

orr:/root# pkgdb -F
---> Checking the package registry database
[Updating the pkgdb in /var/db/pkg ... - 126 packages found (-0 +1) . done]
Stale dependency: gtksee-0.5.6 -> bzip-0.21 (archivers/bzip):
bzip2-1.0.3_1 (score:26%) ? ([y]es/[n]o/[a]ll) [no] y
Fixed. (-> bzip2-1.0.3_1)

That's it. The pkgdb is now internally consistent.

0 komentar:

Posting Komentar