From owner-freebsd-ports@FreeBSD.ORG Sun Oct 2 09:35:49 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 9FDEE106566B for ; Sun, 2 Oct 2011 09:35:49 +0000 (UTC) (envelope-from mueller6727@bellsouth.net) Received: from fmailhost03.isp.att.net (fmailhost03.isp.att.net [204.127.217.103]) by mx1.freebsd.org (Postfix) with ESMTP id 8FD288FC0A for ; Sun, 2 Oct 2011 09:35:49 +0000 (UTC) Date: Sun, 2 Oct 2011 09:35:48 +0000 (GMT) X-Comment: Sending client does not conform to RFC822 minimum requirements X-Comment: Date has been added by Maillennium Received: from localhost (adsl-68-210-187-7.sdf.bellsouth.net[68.210.187.7]) by isp.att.net (frfwmhc03) with SMTP id <20111002093547H03002sghee>; Sun, 2 Oct 2011 09:35:48 +0000 X-Originating-IP: [68.210.187.7] From: "Thomas Mueller" To: freebsd-ports@freebsd.org Message-Id: <20111002093549.9FDEE106566B@hub.freebsd.org> Subject: 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 09:35:49 -0000 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