From owner-freebsd-ports@FreeBSD.ORG Sun Dec 23 10:46:16 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69A0E16A419 for ; Sun, 23 Dec 2007 10:46:16 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1F9CE13C457 for ; Sun, 23 Dec 2007 10:46:14 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id lBNAk8U3001960; Sun, 23 Dec 2007 10:46:09 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <476E3C70.2090605@infracaninophile.co.uk> Date: Sun, 23 Dec 2007 10:46:08 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.9 (X11/20071122) MIME-Version: 1.0 To: Jack Raats References: <001701c84533$8cf7ae30$4001a8c0@jarasoft.net> In-Reply-To: <001701c84533$8cf7ae30$4001a8c0@jarasoft.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 23 Dec 2007 10:46:09 +0000 (GMT) X-Virus-Scanned: ClamAV version 0.92, clamav-milter version 0.92 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-ports@freebsd.org Subject: Re: Starnge error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2007 10:46:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jack Raats wrote: > [Updating the pkgdb in /var/db/pkg ... - 362 packages found (-0 +1) . done] > Operation not permitted - /usr/local/lib/compat/pkg/libc.so.5 > Operation not permitted - /usr/local/lib/compat/pkg/libc_r.so.5 > Operation not permitted - /usr/local/lib/compat/pkg/libcrypt.so.2 > Operation not permitted - /usr/local/lib/compat/pkg/libpthread.so.1 > Operation not permitted - /usr/local/lib/compat/pkg/libthr.so.1 > ---> 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 ld.so 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. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHbjxw8Mjk52CukIwRCJo1AKCN8DoyjNllgQaXAEtpTSMDZYVuoACfV9jP BHkeNBSTAJ4MvBXzKDJm56I= =s++6 -----END PGP SIGNATURE-----