From owner-freebsd-ports@FreeBSD.ORG Fri Jun 9 16:39:32 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 649FF16A46F for ; Fri, 9 Jun 2006 16:39:32 +0000 (UTC) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: from rescomp.berkeley.edu (keyserver.Rescomp.Berkeley.EDU [169.229.70.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27FEB43D72 for ; Fri, 9 Jun 2006 16:39:32 +0000 (GMT) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: by rescomp.berkeley.edu (Postfix, from userid 1032) id 0398D5B775; Fri, 9 Jun 2006 09:39:31 -0700 (PDT) Date: Fri, 9 Jun 2006 09:39:31 -0700 From: "Ian A. Tegebo" To: Garance A Drosihn Message-ID: <20060609163931.GH21463@rescomp.berkeley.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: Matthias Andree , freebsd-ports@freebsd.org Subject: Re: Long-standing portupgrade vs. make config issue 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: Fri, 09 Jun 2006 16:39:32 -0000 On Thu, Jun 08, 2006 at 12:35:42PM -0400, Garance A Drosihn wrote: > options. I do, at times, get prompted for the options > of one port, answer that screen and walk away, only to > later see that I was also prompted for the options of > some other port. You might want to check out a thread in freebsd-questions: ====================================================================== From: RW To: freebsd-questions@freebsd.org Date: Mon, 27 Mar 2006 14:45:14 +0100 Subject: Re: ports and interactivity ... > I want to do all the human work of evaluating options and > making decisions up front Try this: -------------------------------------------------------------------------------------------- #!/bin/sh # Get list of out-of-date ports # This may take some time plist=`pkg_version -ovl'<' |awk '{ print $1 }'` # allow each out-of-date port to update it's config, and that of any new # dependencies (dialog only runs when something has changed) for port in $plist ; do cd /usr/ports/${porg} && make config-recursive done ====================================================================== I've modified this slightly to be: ---------------------------------------------------------------------- #!/bin/sh origin=$1 PREFIX="/usr/ports" echo Determing dependencies for $origin... # You can change the target from 'all-depends-list' to: # {buildckage,run}-depends-list path_list=$(cd ${PREFIX}/$origin; make all-depends-list) for path in $path_list ; do echo Configuring $(echo $path|sed "s#${PREFIX}/##")... ( cd $path ; sudo make config-recursive ) done ---------------------------------------------------------------------- -- Ian Tegebo Residential Computing University of California Berkeley