From owner-freebsd-ports@FreeBSD.ORG Sat Jan 7 18:15:29 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 DFF0A16A420; Sat, 7 Jan 2006 18:15:29 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from centrmmtao06.cox.net (centrmmtao06.cox.net [70.168.83.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F82F43D68; Sat, 7 Jan 2006 18:15:25 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao06.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060107181310.DJXK4002.centrmmtao06.cox.net@mezz.mezzweb.com>; Sat, 7 Jan 2006 13:13:10 -0500 Date: Sat, 07 Jan 2006 12:16:20 -0600 To: "KOMATSU Shinichiro" References: <43BCF31F.8050900@FreeBSD.org> <43BF7F8D.6080809@FreeBSD.org> <20060107092614.GH79296@pcwin002.win.tue.nl> <43BF8EF1.3000005@lovepeers.org> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: User-Agent: Opera M2/8.51 (Linux, build 1462) Cc: 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 18:15:30 -0000 On Sat, 07 Jan 2006 11:51:58 -0600, Jeremy Messenger wrote: > On Sat, 07 Jan 2006 03:50:41 -0600, KOMATSU Shinichiro > wrote: > >> 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 > > Here: > > # make -V PORTSDIR > [...empty...] > # pwd > /root > > It doesn't work here. I am not sure why I would get empty unless I have > Makefile or go in one of port directory. > >> 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 > > Ah, that's a nice trick. Works great! Now I can add this in > auto-plist[1]. Nah, auto-plist doesn't need this because it will always run in port directory....I am sleepy head as I just woke up. ;-) Anyway, I am keeping it in my trick&tip file. Cheers, Mezz > # echo '.include ' | make -f - -V PORTSDIR > /usr/ports > > [1] > http://www.marcuscom.com:8080/cgi-bin/cvsweb.cgi/portstools/auto-plist/ > > Cheers, > Mezz > >> I will add this into portupgrade in later release >> (after solving the MOVED problem...). -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org