From owner-freebsd-questions@FreeBSD.ORG Sun Apr 24 08:28:50 2011 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 4A2D51065670 for ; Sun, 24 Apr 2011 08:28:50 +0000 (UTC) (envelope-from k0802647@telus.net) Received: from defout.telus.net (defout.telus.net [204.209.205.13]) by mx1.freebsd.org (Postfix) with ESMTP id D17828FC0C for ; Sun, 24 Apr 2011 08:28:49 +0000 (UTC) Received: from edmwcm03 ([204.209.205.13]) by priv-edmwes26.telusplanet.net (InterMail vM.8.01.03.00 201-2260-125-20100507) with ESMTP id <20110424082848.OKKU17193.priv-edmwes26.telusplanet.net@edmwcm03> for ; Sun, 24 Apr 2011 02:28:48 -0600 Received: from oliver.bc.lan ([50.92.188.219]) by edmwcm03 with bizsmtp id bLUn1g0144kTNxu01LUoDs; Sun, 24 Apr 2011 02:28:48 -0600 X-Telus-Outbound-IP: 50.92.188.219 X-Authority-Analysis: v=1.1 cv=WnW4EIPqW+UOuPrckVMDJ6NmVUA+0GaxzzKoDf/5uIg= c=1 sm=2 a=jVez_htjv6wA:10 a=aBk6xWbDc1QA:10 a=LGgl8L9ij00A:10 a=IkcTkHD0fZMA:10 a=eXojJELQ1vUdKq0dDyYA:9 a=2aRdduIQu_Tdor0f2IgA:7 a=QEXdDO2ut3YA:10 Received: from [10.111.111.111] (unknown [10.111.111.111]) by oliver.bc.lan (Postfix) with ESMTP id 1150E6274; Sun, 24 Apr 2011 01:29:06 -0700 (PDT) Message-ID: <4DB3DED3.4080901@telus.net> Date: Sun, 24 Apr 2011 01:26:59 -0700 From: Carl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Manolis Kiagias References: <4DB0F34B.9030008@telus.net> <4DB1297E.6090205@telus.net> <4DB12F2F.8020306@otenet.gr> <4DB162BC.3030206@otenet.gr> In-Reply-To: <4DB162BC.3030206@otenet.gr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: building a port with very long list of build options 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: Sun, 24 Apr 2011 08:28:50 -0000 On 2011-04-22 4:13 AM, Manolis Kiagias wrote: > On 04/22/2011 10:33 AM, Manolis Kiagias wrote: >> On 04/22/2011 10:08 AM, Carl wrote: >>>> This form will override the Makefile present in the current directory >>>> and will use the specified make file with name your_own_make_file_name . >>> make -f your_own_make_file_name >>> >>> Yes, I did see that, but I interpreted that to mean my make file >>> *replaces* the original, in which case I would need to populate my >>> make file not only with the list of build options I want but also a >>> copy of everything in the original make file. If I'm correct, that >>> doesn't seem to me to be a good idea from a maintenance perspective. I >>> was hoping for something like the -f option that somehow inserted >>> rather than replaced. >>> >>> Carl / K0802647 >> Assuming you have already selected some options during make config, you >> could try adding your own to the file /var/db/ports//options >> _______________________________________________ > > A probably more elegant way is to use the ports-mgmt/portconf port. > This allows per port settings to be applied, which are honored by make, > portupgrade and the other tools. Just install and use > /usr/local/etc/ports.conf to add your options: > > Here is the sample supplied with the portconf: > > editors/openoffice.org-2: WITH_CCACHE|LOCALIZED_LANG=it > print/ghostscript-* print/lpr-wrapper: A4 > sysutils/fusefs-kmod*: !KERNCONF | !NOPORTDOCS > www/firefox-i18n: WITHOUT_SWITCHER | FIREFOX_I18N=fr it > x11/fakeport: CONFIGURE_ARGS=--with-modules="aaa bbb ccc" ports-mgmt/portconf certainly does look to be a very appealing solution in general, but am I wrong in thinking that it provides me with no way to address my original problem? How do I use it when I've got an exceptionally long list of options for a particular port? As for manually customizing /var/db/ports//options, the port builds in question are done in a clean chroot using a batch process, so "make config" doesn't happen and /var/db/ports//options never exists. Carl / K0802647