From owner-freebsd-questions@FreeBSD.ORG Sat Jul 1 03:06:29 2006 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 55CCF16A6C9 for ; Sat, 1 Jul 2006 03:06:29 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id E39F543F58 for ; Sat, 1 Jul 2006 02:46:33 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id E8C79D8A360 for ; Fri, 30 Jun 2006 22:46:31 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by frontend3.internal (MEProxy); Fri, 30 Jun 2006 22:46:34 -0400 X-Sasl-enc: mhmvxKiuSXIESugH2/jpAZO9zM1VX+lTcOixsD8kgKO3 1151721994 Received: from bb-87-81-140-128.ukonline.co.uk (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mail.messagingengine.com (Postfix) with ESMTP id 4D5381821 for ; Fri, 30 Jun 2006 22:46:34 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Sat, 1 Jul 2006 03:46:12 +0100 User-Agent: KMail/1.9.3 References: <20060630161046.GE2111@tigger.digitaltorque.ca> <200606301131.29593.daeg@houston.rr.com> In-Reply-To: <200606301131.29593.daeg@houston.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607010346.19201.list-freebsd-2004@morbius.sent.com> Subject: Re: batching port builds 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: Sat, 01 Jul 2006 03:06:29 -0000 On Friday 30 June 2006 17:31, David J Brooks wrote: > On Friday 30 June 2006 11:10, Michael P. Soulier wrote: > > Apologies if this is in a FAQ, I didn't see it. > > > > How does one tell the ports system to not query interactively for input, > > and just take default build options, or a predefined set of options? > > Running a portupgrade -a and finding the night wasted while the box sat > > waiting for input is no fun at all. > > If you do 'make -DBATCH' instead of 'make' - you will use the preset > defaults for each port with options. Or you can do > 'make config-recursive' - which will offer you all the option screens for > the port in whose directory you're currently in and all its dependencies. > > See 'man ports' for more information. > > To use those with 'portupgrade -a' will probably take some custom > scripting. > > David This is what I use: ----------------------------------------------------------- #!/bin/sh plist=`pkg_version -ovl'<' |awk '{ print $1 }'` for porg in $plist ; do cd /usr/ports/${porg} && make config-recursive done ----------------------------------------------------------- not pretty, but it works for me. [Note: I use pkg_version, because neither pkg_version nor portmanager are bothered by package database inconsistencies. portupgrade and portversion both require full consistency so you may as well take advantage of portversion's speed.]