Starnge error

Matthew Seaman m.seaman at
Sun Dec 23 02:46:16 PST 2007

Hash: SHA256

Jack Raats wrote:

> [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 362 packages found (-0 +1) . done]
> Operation not permitted - /usr/local/lib/compat/pkg/
> Operation not permitted - /usr/local/lib/compat/pkg/
> Operation not permitted - /usr/local/lib/compat/pkg/
> Operation not permitted - /usr/local/lib/compat/pkg/
> Operation not permitted - /usr/local/lib/compat/pkg/
> --->  Upgrading 'usermin-1.310' to 'usermin-1.320' (sysutils/usermin)
> What is wrong?

Portupgrade is trying to copy old versions of the compat5 libraries
from /usr/local/lib/compat to /usr/local/lib/compat/pkg. Unfortunately
you have libraries of the same names already existing in .../compat/pkg
and those have the schg flag set so they can't be overwritten.  This isn't
a huge problem -- the new libraries will have gone in and will be working
correctly.  You may however have found that some processes have died on
you because the on-disk image of the shlib they had mmapped has gone away.
Those processes will be absolutely fine once restarted, as they'll
just link against the /new/ copy of the shlib.

I'm not  entirely sure what the point of making stuff in .../compat/pkg
immutable is.  In principle .../compat/pkg is a temporary resting place
for shlibs that have possibly been mmapped into running processes and
thus should not be arbitrarily overwritten while portupgrade is running
lest various software starts crashing all around.  

So long as a) all your ports are completely up to date and b) you've
rebooted the system recently or restarted all of the software in question,
in theory nothing will be linking against the stuff in .../compat/pkg --
(especially if there are other shlibs with the same ABI version number
elsewhere in the system: .../compat/pkg is the location of last resort
for to find shlibs).  In that case the duplicates from .../compat/pkg
can simply be blown away with impunity.  See also 'portsclean -L' and the
sysutils/libchk port for a handy tool that helps you work out if shlibs
really are surplus to requirements.



- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
                                                  Kent, CT11 9PW
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla -


More information about the freebsd-ports mailing list