Date: Tue, 9 Nov 2010 20:30:17 +0100 From: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> To: Dmitry Pryanishnikov <lynx.ripe@gmail.com> Cc: freebsd-ports <freebsd-ports@freebsd.org> Subject: Re: Combining several upgrades using portmaster Message-ID: <20101109193017.GA45046@wep4035.physik.uni-wuerzburg.de> In-Reply-To: <4CD98299.9090809@FreeBSD.org> References: <AANLkTi=vv-d2dz8aJUkoNYObbiSV%2ByXPNnnkzVeVZREK@mail.gmail.com> <4CD98299.9090809@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101109193017.GA45046>