Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2006 09:53:13 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        ports@freebsd.org, koma2@lovepeers.org, knu@FreeBSD.org
Subject:   Re: portupgrade 2.0.1 insists upon /usr/ports
Message-ID:  <20060105085313.GJ29433@pcwin002.win.tue.nl>
In-Reply-To: <20060105083931.GI29433@pcwin002.win.tue.nl>
References:  <20060105083931.GI29433@pcwin002.win.tue.nl>

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

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

Replying to myself:

On Thu, Jan 05, 2006 at 09:39:31AM +0100, Stijn Hoop wrote:
> I have changed my ports dir location to /net/freebsd/ports instead of
> /usr/ports, both in /etc/make.conf as well as in /usr/local/etc/pkgtools.=
conf.
>=20
> After upgrade to 2.0.1,1 (from a 2004 version) of portupgrade I get this
> however:
>=20
> [stijn@sandcat] <~> sudo pkgdb -F
> cd: can't cd to /usr/ports
> /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:71:in `initialize': No such =
file or directory - /usr/ports/MOVED (Errno::ENOENT)
>=20
> Adding --ignore-moved does not seem to help:
>=20
> [stijn@sandcat] <~> sudo portversion --ignore-moved -l '<'
> cd: can't cd to /usr/ports
> /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:71:in `initialize': No such =
file or directory - /usr/ports/MOVED (Errno::ENOENT)
>=20
> Anything to be done about this?

Yes, set PORTSDIR in the environment:

[stijn@sandcat] <~> sudo env PORTSDIR=3D/net/freebsd/ports portversion -l '=
<'

works "as expected".

However previous versions of portupgrade did not need this, nor am I happy
with yet another place to set the PORTSDIR. Can't portupgrade infer the
default location by executing 'make -V PORTSDIR'? I thought it did so
already but obviously I was wrong.

--Stijn

--=20
"From the moment I picked your book up until I laid it down I was convulsed
 with laughter. Some day I intend reading it."
		-- Groucho Marx

--8w3uRX/HFJGApMzv
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDvN55Y3r/tLQmfWcRAgyKAKCdPjPMGmVTTUBlokmHtg+q0Y5UpACcCCQX
PCZdtYQP7HxIi9ZEa2qWNeg=
=bPiA
-----END PGP SIGNATURE-----

--8w3uRX/HFJGApMzv--



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