From owner-freebsd-ports@FreeBSD.ORG Sat Jan 7 09:50:59 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D56116A41F; Sat, 7 Jan 2006 09:50:59 +0000 (GMT) (envelope-from koma2@lovepeers.org) Received: from www235.sakura.ne.jp (www235.sakura.ne.jp [202.181.97.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id D311E43D48; Sat, 7 Jan 2006 09:50:58 +0000 (GMT) (envelope-from koma2@lovepeers.org) Received: from [192.168.11.2] (61-26-245-137.rev.home.ne.jp [61.26.245.137]) (authenticated bits=0) by www235.sakura.ne.jp (8.12.11/8.12.11) with ESMTP id k079obQx058241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 7 Jan 2006 18:50:42 +0900 (JST) (envelope-from koma2@lovepeers.org) Message-ID: <43BF8EF1.3000005@lovepeers.org> Date: Sat, 07 Jan 2006 18:50:41 +0900 From: KOMATSU Shinichiro User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Stijn Hoop References: <43BCF31F.8050900@FreeBSD.org> <43BF7F8D.6080809@FreeBSD.org> <20060107092614.GH79296@pcwin002.win.tue.nl> In-Reply-To: <20060107092614.GH79296@pcwin002.win.tue.nl> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: Jeremy Messenger , Doug Barton , freebsd ports Subject: Re: New /bin/sh based script to manage ports 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: Sat, 07 Jan 2006 09:50:59 -0000 Stijn Hoop wrote: > On Sat, Jan 07, 2006 at 12:45:01AM -0800, Doug Barton wrote: > >>However, the other two present a chicken and >>egg problem if I choose to use 'make -V' to get the values of these >>variables (where do I cd to?). > > > Why do you need to cd? > > [stijn@tangaloor] ls Makefile > ls: Makefile: No such file or directory > [stijn@tangaloor] make -V PORTSDIR > /net/freebsd/ports PORTSDIR is set in bsd.port.mk, which is not included if you do not explicitly include it by ".include ". Don't you set it in /etc/make.conf or environment variable? Recently I thought the same problem, and the best solution I came up with till now is running the following command: % echo '.include ' | make -f - -V PORTSDIR I will add this into portupgrade in later release (after solving the MOVED problem...).