From owner-freebsd-ports@FreeBSD.ORG Thu Dec 20 04:31:48 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81CF116A417 for ; Thu, 20 Dec 2007 04:31:48 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id 19F5813C447 for ; Thu, 20 Dec 2007 04:31:47 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so4040106fka.11 for ; Wed, 19 Dec 2007 20:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=L3UGmLqhEMH60IvoFN+a9LTes59KGyW/eE4x+5dz6NA=; b=czLWBM/g9XsnJPAEhu+VJEQrnQPmG7AC7IBvqIueiMMXpjYV0Y8lC7QaPvDQlk7rE6m50RWUd4UJ1ukrmBJRVK7T3CubjU2+laeS/SKaVUOAl7lG5aDbDWs+8Mpb2v3e/VlfG8pfOPMVN4rIJUypZt6rguz/RcxYhOp8jZPRfP8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BURY/Iv+3IJqfYbRFa0rTqRkYq10BBN5+Q2LjGTZvJOqCwRXpz2eTbgZ9qu4FNv/b7WLLWoWZaESQZ+F4GQLwLgoV0xbjroyrZa1buoePj/ToWFOodtQgqFvU02if3DsNTYysdEQwaynFFB4YgOI+41L1UoM/Kmlwhnu9QPiSfo= Received: by 10.82.159.15 with SMTP id h15mr11734400bue.36.1198125106013; Wed, 19 Dec 2007 20:31:46 -0800 (PST) Received: by 10.82.116.17 with HTTP; Wed, 19 Dec 2007 20:31:45 -0800 (PST) Message-ID: <6eb82e0712192031u6f5a2546tca8a6b68b0042313@mail.gmail.com> Date: Thu, 20 Dec 2007 12:31:45 +0800 From: "Rong-en Fan" To: "Dominic Fandrey" In-Reply-To: <4769550A.4090007@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4767283D.70604@delphij.net> <20071218144900.M51742@FreeBSD.org> <4767F263.2000708@gmx.de> <6eb82e0712190244p51042783vf8fd1d52a297c90d@mail.gmail.com> <4769550A.4090007@gmx.de> Cc: ports@freebsd.org, Pav Lucistnik , d@delphij.net Subject: Re: ports.conf: Is there a reason behind not being default? 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: Thu, 20 Dec 2007 04:31:48 -0000 On Dec 20, 2007 1:29 AM, Dominic Fandrey wrote: > Rong-en Fan wrote: > > On Dec 19, 2007 12:16 AM, Dominic Fandrey wrote: > >> Pav Lucistnik wrote: > >>> On Mon, 17 Dec 2007 17:54:05 -0800, Xin LI wrote > >>> > >>>> I think that ports-mgmt/portconf (a.k.a. /usr/local/etc/ports.conf) > >>>> is a very handy feature that makes it much easier to store port options > >>>> across upgrade. Is there a reason behind not making it into > >>>> bsd.ports.mk? IMHO it's a big deal to take the script into > >>>> ports/Tools/scripts, and move the configuration to somewhere like > >>>> /etc/ports.conf... > >>> I haven't checked it out yet. What can it do that can't be done in > >>> /etc/make.conf with constructs like > >>> > >>> .if ${.CURDIR} == "/usr/ports/editors/vim" > >>> WITH_GTK2=yes > >>> .endif > >>> > >>> ? > >> Actually it can only do less than that (and it won't work if /usr/ports is a > >> symlink, at least the last time I checked). The only advantage is a more > > > > It can, see commit log > > > > http://www.freebsd.org/cgi/cvsweb.cgi/ports/ports-mgmt/portconf/pkg-install > > Why doesn't it do something like > > PORTSDIR!=cd /usr/ports && pwd -P || exit 0 > > to avoid having to hard-code it during install? I'm not sure if I get the point. Do you mean that why don't I make PORTSDIR in make.conf run-time determined instead of hardcode during installation? If so, it's not possible because our make limitation: you can not use variable in substitution. Regards, Rong-En Fan