Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Oct 2011 09:04:48 -0500
From:      "Conrad J. Sabatier" <conrads@cox.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: environment variables for portupgrade: /etc/make.conf or /usr/local/etc/pkgtools.conf?
Message-ID:  <20111002090448.094497a4@cox.net>
In-Reply-To: <20111002093549.9FDEE106566B@hub.freebsd.org>
References:  <20111002093549.9FDEE106566B@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2 Oct 2011 09:35:48 +0000 (GMT)
"Thomas Mueller" <mueller6727@bellsouth.net> wrote:

> How do I make environment variables used by portupgrade visible to
> portupgrade?
> 
> Portupgrade evidently ignores /etc/make.conf, and
> editing /usr/local/etc/pkgtools.conf also fails to help.
> 
> I want portupgrade to recognize 
> PORTSDIR=/BETA1/usr/ports
> and
> PACKAGES=/usr/packages
> 
> but continue to get
> 
> 
> cd: /usr/ports: No such file or directory
> cd: /usr/ports/ports-mgmt/portupgrade: No such file or directory
> 
> when it should be looking for /BETA1/usr/ports
> 
> I was in directory /BETA1/usr/ports/print/py-reportlab2 ; offending
> command was
> 
> portupgrade -o py-reportlab2 py-reportlab | & tee portupg.log
> 
> I think that should have been 
> 
> portupgrade -o print/py-reportlab2 print/py-reportlab | & tee
> portupg.log
> 
> That failed because print/py-reportlab had already been built and
> installed, so I had to pkg_delete it, then build py-reportlab2
> without portupgrade.
> 
> Problem arose because py-reportlab2, a dependency of print/hplip, was
> broken (did not package), and I subsequently built and installed
> py-reportlab .
> 
> after a later "portsnap fetch update", I decided to go back to
> print/py-reportlab2 .
> 
> But I still want to know where portupgrade gets environment
> variables: /etc/make.conf, /usr/local/etc/pkgtools.conf (in Ruby?),
> or other.
> 
> Tom

Set them in your shell's environment:

export PORTSDIR=/BETA1/usr/ports
export PACKAGES=/usr/packages

-- 
Conrad J. Sabatier
conrads@cox.net



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