From owner-freebsd-questions@FreeBSD.ORG Wed Nov 30 13:02:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 280A816A41F for ; Wed, 30 Nov 2005 13:02:02 +0000 (GMT) (envelope-from AshleyMoran@codeweavers.net) Received: from mta07-winn.ispmail.ntl.com (mta07-winn.ispmail.ntl.com [81.103.221.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id A134743D6B for ; Wed, 30 Nov 2005 13:02:00 +0000 (GMT) (envelope-from AshleyMoran@codeweavers.net) Received: from aamta10-winn.ispmail.ntl.com ([81.103.221.35]) by mta07-winn.ispmail.ntl.com with ESMTP id <20051130130156.BAKQ21883.mta07-winn.ispmail.ntl.com@aamta10-winn.ispmail.ntl.com> for ; Wed, 30 Nov 2005 13:01:56 +0000 Received: from jigsaw-sbs02.jigsawhq.com ([213.106.224.113]) by aamta10-winn.ispmail.ntl.com with ESMTP id <20051130130156.JZGG11396.aamta10-winn.ispmail.ntl.com@jigsaw-sbs02.jigsawhq.com> for ; Wed, 30 Nov 2005 13:01:56 +0000 X-Filtered-With-Copfilter: Version 0.81.6 (ProxSMTP 1.2.1) X-Copfilter-Virus-Scanned: ClamAV 0.87/1198 - Tue Nov 29 10:05:20 2005 X-Copfilter: Client is part of our network, skipped SpamAssassin Received: from alfie.jigsawhq.com ([192.168.0.181]) by jigsaw-sbs02.jigsawhq.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 30 Nov 2005 13:01:06 +0000 From: Ashley Moran Organization: Codeweavers Ltd To: freebsd-questions@freebsd.org Date: Wed, 30 Nov 2005 13:00:55 +0000 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511301300.55571.ashley.moran@codeweavers.net> X-OriginalArrivalTime: 30 Nov 2005 13:01:06.0652 (UTC) FILETIME=[2064D1C0:01C5F5AE] Subject: Questions about make arguments for 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, 30 Nov 2005 13:02:02 -0000 Hello, When upgrading a machine from FreeBSD 5.4 to 6.0 I came across the problem of how to re-compile all the ports to use FreeBSD 6 libraries so I can ditch the compat5x port. man portupgrade I should # portupgrade -aRf to force a re-compile but that then brought up the issue of how to configure each build. I found the section in pkgtools.conf that lets you specify arguments to pass to make but how do I deal with ports that have a config make target? I mean I could add MAKE_ARGS = { 'java/jdk115' => 'WITHOUT_WEB=1' } to pkgtools.conf, but is there a way to specify these arguments in this file, or is there no choice but to configure manually first time? The reason I ask is because I would like to schedule software updates to run nightly but I don't want them to either rebuild with the wrong options or find out it hung on a config screen. Also I have another question that I can't suss out from either the man pages or the Mk files: what happens to the configs if you use portupgrade -P? Seeing as there is only package file per port I assume it gets compiled with a default set of options and you lost any config options. I am thinking that perhaps the best strategy is to decide which software I can use from packages and which I need to compile, configure pkgtools.conf to download the source or binary versions as appropriate, set MAKE_ARGS for ports with no config options and pre-configure the rest. The more I look the more amazed I am at the flexibility of the ports system but the more I wish it was completely documented!!! Ashley