From owner-freebsd-questions@FreeBSD.ORG Sat Oct 2 15:23:30 2010 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 289681065673 for ; Sat, 2 Oct 2010 15:23:30 +0000 (UTC) (envelope-from doug@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id D3FA08FC15 for ; Sat, 2 Oct 2010 15:23:29 +0000 (UTC) Received: from hrndva-omtalb.mail.rr.com ([10.128.143.53]) by hrndva-qmta04.mail.rr.com with ESMTP id <20101002150634596.NDCZ23474@hrndva-qmta04.mail.rr.com> for ; Sat, 2 Oct 2010 15:06:34 +0000 X-Authority-Analysis: v=1.1 cv=iGF3DqghDyT/uy4mV2LvOKNXCATMSjL+tOl9cucoGVk= c=1 sm=0 a=-RD9cPh-pCEA:10 a=kj9zAlcOel0A:10 a=02fl1sNAWVw4WL3Wmu4WJA==:17 a=pGLkceISAAAA:8 a=pedpZTtsAAAA:8 a=frN8QhiJ00E-zmN5R1MA:9 a=4WbihE8ZyA2l_luAAZgqiiAdlrUA:4 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=eJojReuL3h0A:10 a=02fl1sNAWVw4WL3Wmu4WJA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 75.87.219.217 Received: from [75.87.219.217] ([75.87.219.217:61440] helo=haran.polands.org) by hrndva-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id AC/8D-27923-C3A47AC4; Sat, 02 Oct 2010 15:05:33 +0000 Received: from [172.16.1.15] (iPhoneD.polands.org [172.16.1.15]) by haran.polands.org (8.14.4/8.14.4) with ESMTP id o92F5Lt8060377; Sat, 2 Oct 2010 10:05:21 -0500 (CDT) (envelope-from doug@polands.org) References: <4ca708f4.svuMWmkOCHSjxBDf%mueller6727@bellsouth.net> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8B117) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <90CBD45F-CB00-4656-A5BB-836FE6401B8A@polands.org> X-Mailer: iPhone Mail (8B117) From: Doug Poland Date: Sat, 2 Oct 2010 10:05:33 -0500 To: Brandon Gooch Cc: Thomas Mueller , "freebsd-questions@freebsd.org" Subject: Re: Massive portupgrade without being interrupted by configuration screens? 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, 02 Oct 2010 15:23:30 -0000 On Oct 2, 2010, at 9:49, Brandon Gooch wrote: > On Sat, Oct 2, 2010 at 5:27 AM, Thomas Mueller > wrote: >> How can one do a massive portupgrade, as with -r or -R, without being int= errupted by options configuration screens for many individual ports? Idea i= s to let it run unattended such as when I might run it starting just before b= edtime. Doing "make config" ahead of time also gives the chance to recover f= rom a typo at the configuration screen (high risk). >>=20 >> Best thing I can think of is, using multimedia/ffmpeg as an example, is d= oing a dry run >>=20 >> portupgrade -Rn multimedia/ffmpeg |& tee -a wouldbe.log >>=20 >> This would show what other packages would need to be portupgraded and avo= id reconfiguring up-to-date dependencies. Then I would go to each of those d= irectories in the ports tree and run "make config". >>=20 >> Running "make config-recursive" in /usr/ports/multimedia/ffmpeg would pro= duce configuration screens for all dependencies, including those that are up= -to-date. >>=20 >> I tried >>=20 >> portupgrade -RCn multimedia/ffmpeg |& tee -a wouldbe.log >>=20 >> but then I got all dependency configuration screens, including those that= were up-to-date, and also the interface didn't work right: I got garbage wh= en trying to respond; it didn't write to the configuration screen but produc= ed non-color garbage to the background. >>=20 >> Running "make config-recursive" in /usr/ports/multimedia/ffmpeg would con= figure all dependencies, including those that are up-to-date and therefore n= ot in need of portupgrading, though "make config-recursive" seems appropriat= e for a first build/install of a port. >>=20 >> But I think there is no perfect way to be sure of doing all "make config"= s in advance, since selectable options could require additional dependencies= . >>=20 >> If you try to portupgrade perl to 5.12 and everything that depends on it,= as advised in UPDATING file, date 20100715, you will likely get a lot of co= nfiguration dialog screens: I speak from experience, would surely like a way= to do all these "make config"s at the beginning. >>=20 >> Tom >=20 > Well, I'm not using portupgrade, but instead ports-mgmt/portmaster: >=20 > # portmaster --force-config --no-confirm [...] lang/perl5.12 >=20 > Gets all of the config menus out of the way (--force-config), and > doesn't sit waiting for confirmation to proceed with install > (--no-confirm). I do this only the first time I build a port, or if I > need to change a config option and reinstall. >=20 > Works for me! >=20 > -Brandon If I understand the OPs question correctly, I believe setting the environmen= t variable BATCH=3Dyes will give desired results with portupgrade. This wil= l cause port compile defaults to be used in lieu of an existing /var/db/port= s/*/options file.=20=