Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2002 15:05:43 -0400
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        freebsd-questions@freebsd.org
Subject:   portupgrade not always using PACKAGES as documented?
Message-ID:  <20020428190543.GA315@lenny.anarcat.dyndns.org>

next in thread | raw e-mail | index | archive | help

--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi.

I have a /usr/ports collection mounted via read-only NFS, so I had to
hack a bit my config to have writable packages and distfiles
directories.

Here is the content of my make.conf:

WRKDIRPREFIX=3D/usr/ports.local
DISTDIR=3D/usr/ports.local/distfiles
PACKAGES=3D/usr/ports.local/packages

Now, I understand portupgrade isn't likely to parse that, so I
included the modifs in pkgtools.conf too:

  ENV['PACKAGES'] ||=3D '/usr/ports.local/packages'
  ENV['PKG_PATH'] ||=3D ENV['PACKAGES'] + '/All'

And now, pkg_fetch works well, but it seems portupgrade -P itself
cannot find the package, why?

--->  Identifying the package /usr/ports.local/packages/All/popt-1.5.1_1.tgz
--->  Saved as /usr/ports.local/packages/All/popt-1.5.1_1.tgz
--->  Skipping libiconv-1.7_3 (already installed)
--->  Skipping gettext-0.11.1_1 (already installed)
--->  Reporting the results (+:succeeded / -:ignored / *:skipped / !:failed)
        + popt-1.5.1_1
        - libiconv-1.7_3
        - gettext-0.11.1_1
** Could not fetch the latest version '1.5.1_1'
--->  Using the port instead of a package
--->  Upgrading 'popt-1.5.1' to 'popt-1.5.1_1' (devel/popt)

It's clear that pkg_fetch has successfully fetched the package and
installed it!

What am I doing wrong?

A.
--=20
=46rom the age of uniformity, from the age of solitude, from the age of
Big Brother, from the age of doublethink - greetings!

--uAKRQypu60I7Lcqm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzMSAYACgkQttcWHAnWiGcW0ACfe5mJ7nXDLt6DaQpeRehaoDwu
8dgAoKKFtmiWIPmtiTU+QTUZTyrdaS0i
=X37M
-----END PGP SIGNATURE-----

--uAKRQypu60I7Lcqm--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020428190543.GA315>