From owner-freebsd-ports@FreeBSD.ORG Sat Dec 15 00:32:24 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 5ACEF16A41B; Sat, 15 Dec 2007 00:32:24 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 1524713C4D9; Sat, 15 Dec 2007 00:32:23 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop2.gateway.2wire.net (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.2/8.14.1) with ESMTP id lBF0W7V4024432; Fri, 14 Dec 2007 18:32:08 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <47632096.8080008@math.missouri.edu> Date: Fri, 14 Dec 2007 18:32:22 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.11) Gecko/20071213 SeaMonkey/1.1.7 MIME-Version: 1.0 To: pav@freebsd.org References: <47630A20.60807@janh.de> <47631447.9090009@u.washington.edu> <1197676276.1838.23.camel@ikaros.oook.cz> In-Reply-To: <1197676276.1838.23.camel@ikaros.oook.cz> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit Cc: Jan Henrik Sylvester , Garrett Cooper , ports-list freebsd Subject: Re: misc/compat5x package installs with weird messages 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: Sat, 15 Dec 2007 00:32:24 -0000 Pav Lucistnik wrote: > Garrett Cooper píše v pá 14. 12. 2007 v 15:39 -0800: >> Jan Henrik Sylvester wrote: >>> Installing the 7.0-RELEASE package of graphics/xnview, I got some >>> weird messages that seem to come from the misc/compat5x dependency: >>> >>> rm: /var/tmp/instmp.qdjoSl/lib/compat/libc.so.5: Operation not permitted >>> rm: /var/tmp/instmp.qdjoSl/lib/compat/libc_r.so.5: Operation not >>> permitted >>> rm: /var/tmp/instmp.qdjoSl/lib/compat/libcrypt.so.2: Operation not >>> permitted >>> rm: /var/tmp/instmp.qdjoSl/lib/compat/libpthread.so.1: Operation not >>> permitted >>> rm: /var/tmp/instmp.qdjoSl/lib/compat/libthr.so.1: Operation not >>> permitted >>> rm: /var/tmp/instmp.qdjoSl/lib/compat: Directory not empty >>> rm: /var/tmp/instmp.qdjoSl/lib: Directory not empty >>> rm: /var/tmp/instmp.qdjoSl: Directory not empty >>> pkg_add: couldn't remove temporary dir '/var/tmp/instmp.qdjoSl' >>> >>> What has happened? > >> Files are still in use. Are you exec'ing a program that needs lib/compat5x? > > There is nothing like "executable in use is undeletable" phenomenon > that's observed on Microsoft Windows. > > My bets are on noschg flag. Pav, you are exactly right. I have experienced this many times myself. After installing the compat5x package you need to do "chflags -R noschg /var/tmp/inst* && rm -rf /var/tmp/inst*" or something like that. I think it is a bug in pkg_install, that it doesn't check for the schg flag being set in its temporary file area. Or maybe it should set the flags in the first place. Stephen