Some thing rotten in the state of ruby

Henk van Oers henk at signature.nl
Wed Jun 3 14:22:02 UTC 2009


I have updated ruby yesterday and now I get stale locks in pkg_deinstall.

Today I have done:
portsnap fetch
portsnap update
pkgdb -F
portversion -Fv (all uptodate)
portupgrade -fRr ruby-1.8.7.160,1

But still:

[root at dragon /usr/ports]# pkg_deinstall libassuan-1.0.5
--->  Deinstalling 'libassuan-1.0.5'
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 1111 packages 
found (-1 +0) (...) done]
[root at dragon /usr/ports]# pkg_deinstall libcddb-1.3.0
--->  Deinstalling 'libcddb-1.3.0'
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... ** Database file 
locked. Waiting.
** Stale lock file was found. Removed.
- 1110 packages found (-1 +0) (...) done]
[root at dragon /usr/ports]# pkg_deinstall libdca-0.0.5
--->  Deinstalling 'libdca-0.0.5'
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... ** Database file 
locked. Waiting.
** Stale lock file was found. Removed.
- 1109 packages found (-1 +0) (...) done]


If I run pkgdb -F again, I can deinstall whitout waiting
for the stale lock. (But I have to wait for pkgdb:()

[root at dragon /usr/ports]# pkgdb -F
--->  Checking the package registry database
[root at dragon /usr/ports]# pkg_deinstall libexif-0.6.17
--->  Deinstalling 'libexif-0.6.17'
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 1108 packages 
found (-1 +0) (...) done]
[root at dragon /usr/ports]# pkg_deinstall libglut-7.4.2_1
--->  Deinstalling 'libglut-7.4.2_1'
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... ** Database file 
locked. Waiting.
** Stale lock file was found. Removed.
- 1107 packages found (-1 +0) (...) done]


Some thing is broken in ruby or portupgrupdate.


More information about the freebsd-ports mailing list