From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 20:28:53 2003 Return-Path: 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 14B2537B401 for ; Mon, 14 Apr 2003 20:28:53 -0700 (PDT) Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mx1.FreeBSD.org (Postfix) with SMTP id A907443FAF for ; Mon, 14 Apr 2003 20:28:52 -0700 (PDT) (envelope-from tom_hines@yahoo.com) Message-ID: <20030415032852.44678.qmail@web11502.mail.yahoo.com> Received: from [68.50.228.42] by web11502.mail.yahoo.com via HTTP; Mon, 14 Apr 2003 20:28:52 PDT Date: Mon, 14 Apr 2003 20:28:52 -0700 (PDT) From: Tom Hines To: freebsd questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: pkg_add ignoring PKG_PATH! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 03:28:53 -0000 Hi. I'm trying to do a binary upgrade of my ports with 'portupgrade -aRP', but all the packages fail on the call to pkg_add with 'pkg_add: can't stat package file' The packages have been downloaded to the default location, /usr/ports/packages/All, and portupgrade has set the required environment variables, including PKG_PATH. I have confirmed the problem by running pkg_add alone. How can I get pkg_add to use PKG_PATH? Here is some sample output: cp838536-b# portupgrade -aRP ---> Checking the availability of the latest package of 'textproc/ispell' ---> Found a package of 'textproc/ispell': /usr/ports/packages/All/ispell-3.2.06_3.tgz ---> Upgrading 'ispell-3.2.06_2' to 'ispell-3.2.06_3' (textproc/ispell) using a package ---> Backing up the old version ---> Uninstalling the old version ---> Deinstalling 'ispell-3.2.06_2' pkg_delete: package 'ispell-3.2.06_2' is required by these other packages and may not be deinstalled (but I'll delete it anyway): mc-4.5.55_4 [Updating the pkgdb in /var/db/pkg ... - 154 packages found (-1 +0) (...) done] ---> Installing the new version via the package pkg_add: can't stat package file 'ispell-3.2.06_3' ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade64221.0 /usr/sbin/pkg_add -f ispell-3.2.06_3 egrep: /var/db/pkg/ispell-3.2.06_2/+CONTENTS: No such file or directory ---> Restoring the old version ** Fix the package's problem and try again. ----- cp838536-b# set PKG_PATH=/usr/ports/packages/All cp838536-b# pkg_add ispell-3.2.06_3.tgz pkg_add: can't stat package file 'ispell-3.2.06_3.tgz' --tom __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com