portupgrade 2.0.1 insists upon /usr/ports

Stijn Hoop stijn at win.tue.nl
Thu Jan 5 00:53:51 PST 2006


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.
> 
> After upgrade to 2.0.1,1 (from a 2004 version) of portupgrade I get this
> however:
> 
> [stijn at 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)
> 
> Adding --ignore-moved does not seem to help:
> 
> [stijn at 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)
> 
> Anything to be done about this?

Yes, set PORTSDIR in the environment:

[stijn at sandcat] <~> sudo env PORTSDIR=/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

-- 
"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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060105/4986ec76/attachment.bin


More information about the freebsd-ports mailing list