pkg_add ignoring PKG_PATH!

Tom Hines tom_hines at yahoo.com
Mon Apr 14 20:28:53 PDT 2003


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 <format:bdb1_btree> 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


More information about the freebsd-questions mailing list