From owner-freebsd-questions@FreeBSD.ORG Wed Aug 1 04:15:10 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8CF016A418 for ; Wed, 1 Aug 2007 04:15:10 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.freebsd.org (Postfix) with ESMTP id 620C413C459 for ; Wed, 1 Aug 2007 04:15:10 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so69088wxd for ; Tue, 31 Jul 2007 21:15:09 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:x-x-sender:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from:sender; b=twUDcO9PLU2PpDT1r0F4oootB1Yitez0PrbxQVFj9xZPIU6mH9QtfjP8PHqdx5RgbHiYjIWn39sQTFZC6e3KINhIM9j/ZBJe/P0GjyXe4Ik/D03Pov5+Y6my0ChvIQydcgDD9L3y6q70RgS6OoE8fIJDVChmLu5ybmCrfqZanGo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:x-x-sender:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from:sender; b=izKaNftAiPjNiyoVlrC6275l0VbgRkDDGCNlBnM+vDCktDZV74yhfJLGDSGHHH+p9UVZwJWLbfF63TJ6+NI8RY2g3iMx/st1lOLqSX9SCMCp+L+rA1sYqiY7yybEc6kER1nLQW0mCVkahIypiNN6DL61/ynPyfTNu17m9a9mlqk= Received: by 10.90.94.2 with SMTP id r2mr75713agb.1185941709340; Tue, 31 Jul 2007 21:15:09 -0700 (PDT) Received: from smtp.home.rakhesh.com ( [82.178.139.14]) by mx.google.com with ESMTPS id 38sm147290aga.2007.07.31.21.15.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2007 21:15:08 -0700 (PDT) Received: from scrat.home.rakhesh.com (scrat.home.rakhesh.com [192.168.17.31]) by smtp.home.rakhesh.com (Postfix) with ESMTP id 3DDFE11420; Wed, 1 Aug 2007 08:14:49 +0400 (GST) Date: Wed, 1 Aug 2007 08:14:49 +0400 (GST) X-X-Sender: rakhesh@scrat.home.rakhesh.com To: John Nielsen In-Reply-To: <200707311501.33241.lists@jnielsen.net> Message-ID: <20070801080954.U23854@scrat.home.rakhesh.com> References: <46AB9EB4.5080305@cyberleo.net> <43868.212.72.24.148.1185710699.squirrel@rakhesh.com> <46AF6077.5090000@cyberleo.net> <200707311501.33241.lists@jnielsen.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Sender: Rakhesh Sasidharan Cc: CyberLeo Kitsana , freebsd-questions@freebsd.org Subject: Re: Custom builds from ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 04:15:10 -0000 On Tue, 31 Jul 2007, John Nielsen wrote: > On Tuesday 31 July 2007 12:16:32 pm CyberLeo Kitsana wrote: >> Rakhesh Sasidharan wrote: >>> On Sun, July 29, 2007 01:37, N.J. Mann wrote: >>>> In message <46AB9EB4.5080305@cyberleo.net>, CyberLeo Kitsana wrote: >>>>> Is there a way to specify which ports certain options are to be applied >>>>> to, without having to craft custom command lines and build ports >>>>> individually? >>>> >>>> Is ports-mgmt/portconf what you are looking for? >>> >>> I didn't know about ports-mgmt/portconf (will check it out now) but what >>> I use is the make.conf file. >>> >>> This blog post >>> (http://blog.innerewut.de/articles/2006/01/14/upgrading-ports-and-preserv >>> e-mak e-options) is what enlightened me. And here's how the application >>> specific bits of my make.conf file looks: >>> >>> .if ${.CURDIR:M*/shells/bash} >>> WITH_STATIC_BASH=yes >>> PREFIX=/ >>> .endif >>> >> That's exactly what I was looking for. > > Also, if you use portupgrade there's a MAKE_ARGS section > of /usr/local/etc/pkgtools.conf. Yes, but the problem with sepcifying custom options in there is that sometimes portupgrade ignores it. I don't know for a fact, but the blog post I linked to above mentions so. Say, bash and its dependency gettext have updates. And you have specified some custom options for gettext in pkgtools.conf. If you upgrade gettext directly using portupgrade, then these options get honoured. Instead, if you upgrade bash and gettext gets upgraded as a result of that, then the pkgtools.conf options are not honoured. So the only solution then is to use the make.conf file coz that's always honoured. (From what I see, the portconf tool too adds its stuff to the make.conf file). Please correct me if I've understood wrong. Regards, Rakhesh