From owner-freebsd-questions@FreeBSD.ORG Tue Jun 6 00:44:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEFCF16C1F4; Mon, 5 Jun 2006 23:38:12 +0000 (UTC) (envelope-from Michael.Collette@TestEquity.com) Received: from smtp.testequity.com (gateway.testequity.com [205.147.14.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D74B43D5A; Mon, 5 Jun 2006 23:38:12 +0000 (GMT) (envelope-from Michael.Collette@TestEquity.com) Received: from smtp.priv.testequity.com (unknown [192.168.3.27]) by smtp.testequity.com (Postfix) with ESMTP id 1189D13C44C; Mon, 5 Jun 2006 16:38:12 -0700 (PDT) Received: from [192.168.3.172] (mach172.priv.testequity.com [192.168.3.172]) by smtp.priv.testequity.com (Postfix) with ESMTP id F3D0FC2A9; Mon, 5 Jun 2006 16:38:11 -0700 (PDT) Message-ID: <4484C065.5000100@TestEquity.com> Date: Mon, 05 Jun 2006 16:38:13 -0700 From: Michael Collette Organization: TestEquity LLC User-Agent: Thunderbird 1.5.0.2 (X11/20060516) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: knu@FreeBSD.org, sem@FreeBSD.org Subject: portupgrade across NFS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 00:44:38 -0000 I've got a setup here where I need to run portupgrade on a different box from the one where the port is actually going to. I have all the NFS exports setup on the target box and mount points on the installer. Almost everything is working... except the reason for this posting. When portupgrade attempts to remove the entry in /var/db/pkg for the old port, it fails to remove the directory. It does remove all the contents of the directory, but not the directory itself. This problem only occurs when using portupgrade. Both pkg_delete and pkg_deinstall work without error. Also, everything else in the process that portupgrade goes through appears to work properly. Just that /var/db/pkg directory won't delete when NFS mounted. Apparently other folks have had this problem before as I discovered upon googling about. The following PR touches on the matter. http://www.freebsd.org/cgi/query-pr.cgi?pr=32668 Been staring at Ruby code I don't fully understand for the better part of 2 days now, and I don't understand why this glitch is happening. It looks like portupgrade simply calls to pkg_deinstall, which is a wrapper for pkg_delete. Logically if the last 2 work, then portupgrade should as well, but obviously it doesn't. Anyone out there able to make any sense of that Ruby code? Is there something we can patch in there to get this tid bit functional? Thanks, -- Michael Collette IT Manager TestEquity LLC