From owner-freebsd-ports@FreeBSD.ORG Sun Oct 2 14:05:00 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5766106564A for ; Sun, 2 Oct 2011 14:05:00 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo101.cox.net (eastrmfepo101.cox.net [68.230.241.213]) by mx1.freebsd.org (Postfix) with ESMTP id 60CA58FC12 for ; Sun, 2 Oct 2011 14:05:00 +0000 (UTC) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmfepo101.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20111002140454.OOIW3814.eastrmfepo101.cox.net@eastrmimpo03.cox.net> for ; Sun, 2 Oct 2011 10:04:54 -0400 Received: from serene.no-ip.org ([98.164.86.236]) by eastrmimpo03.cox.net with bizsmtp id fq4u1h00655wwzE02q4unW; Sun, 02 Oct 2011 10:04:54 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020208.4E886F86.0101,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=ASjpOCvEPoSfhuYnpalwTqAN2s78hBywh12H8bbbxwo= c=1 sm=1 a=YoT8z6bPh20A:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=uAbGmPAyUfLL1M3oYAsfuA==:17 a=pedpZTtsAAAA:8 a=kviXuzpPAAAA:8 a=1afCJoC2eF5l_pcpgJ8A:9 a=CjuIK1q_8ugA:10 a=eJojReuL3h0A:10 a=4vB-4DCPJfMA:10 a=uAbGmPAyUfLL1M3oYAsfuA==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id p92E4rIK076018 for ; Sun, 2 Oct 2011 09:04:54 -0500 (CDT) (envelope-from conrads@cox.net) Date: Sun, 2 Oct 2011 09:04:48 -0500 From: "Conrad J. Sabatier" To: freebsd-ports@freebsd.org Message-ID: <20111002090448.094497a4@cox.net> In-Reply-To: <20111002093549.9FDEE106566B@hub.freebsd.org> References: <20111002093549.9FDEE106566B@hub.freebsd.org> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: environment variables for portupgrade: /etc/make.conf or /usr/local/etc/pkgtools.conf? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2011 14:05:00 -0000 On Sun, 2 Oct 2011 09:35:48 +0000 (GMT) "Thomas Mueller" 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