From owner-freebsd-ports@FreeBSD.ORG Tue Nov 9 19:30:40 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6AF3106566C for ; Tue, 9 Nov 2010 19:30:40 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB588FC19 for ; Tue, 9 Nov 2010 19:30:40 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 4289B5ABFE; Tue, 9 Nov 2010 20:30:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 400065ABFC; Tue, 9 Nov 2010 20:30:19 +0100 (CET) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 1B16E5CC5F; Tue, 9 Nov 2010 20:30:19 +0100 (CET) Received: from wep4035.physik.uni-wuerzburg.de ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.2HF105) with ESMTP id 2010110920301784-91040 ; Tue, 9 Nov 2010 20:30:17 +0100 Date: Tue, 9 Nov 2010 20:30:17 +0100 From: Alexey Shuvaev To: Dmitry Pryanishnikov Message-ID: <20101109193017.GA45046@wep4035.physik.uni-wuerzburg.de> References: <4CD98299.9090809@FreeBSD.org> MIME-Version: 1.0 In-Reply-To: <4CD98299.9090809@FreeBSD.org> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.2HF105 | October 15, 2010) at 11/09/2010 08:30:18 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.2HF105 | October 15, 2010) at 11/09/2010 08:30:18 PM, Serialize complete at 11/09/2010 08:30:18 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: freebsd-ports Subject: Re: Combining several upgrades using portmaster 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: Tue, 09 Nov 2010 19:30:40 -0000 On Tue, Nov 09, 2010 at 09:19:21AM -0800, Doug Barton wrote: > On 11/09/2010 06:09, Dmitry Pryanishnikov wrote: > >Hello! > > > > I wonder whether it's possible to automatically combine several > >upgrades using portmaster. Suppose one have to handle both > >ports/UPDATING entries: > > > >20100530: suggests portmaster -w -r gettext > > > >20100328: suggests portmaster -r png- > > > >It would be nice to combine them as ' portmaster -w -r gettext -r > >png-' to prevent double upgrade of relevant packages; however '-r' can > >be specified only once according to manpage. I've handled this by > >running both commands, replying 'n' to 'Proceed?' question, merging > >resulting origin list with sort|uniq and feeding it back to > >portmaster, but maybe there is a simpler way to solve the problem? > > The number of times that -r is actually required is (thankfully) > quite small, and the number of times that there is a need to do 2 > -r's of ports that are heavily depended on is very very small. In > fact I can only remember a few such instances over 15+ years. > > OTOH, the code to handle the -r feature is unfortunately quite > complex, and I'm a little hesitant to mess with it (to be honest, > mostly because it's working right now, so I don't want to tempt > fate). :) I will, however, add this idea to my big list o' > portmaster ideas and see if it's something I could tackle at a > future date. > In the case that you catch 2 or more sweeping updates it is very likely that you are updating across rather large time interval (half of a year or more). In this case I usually ignore all '-r' UPDATING entries and do just portmaster -a. The idea is that almost all ports have got updated in this large period of time too. Of course, you shold keep an eye on the system after such upgrade, manualy reinstalling ports that fail to find old shared library. But normally there are very few of them. (From my experience, freetype2 is regulary one of them.) 0.02$, Alexey.