From owner-freebsd-stable@FreeBSD.ORG Wed Jun 26 20:23:47 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A674B628 for ; Wed, 26 Jun 2013 20:23:47 +0000 (UTC) (envelope-from jdc@koitsu.org) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by mx1.freebsd.org (Postfix) with ESMTP id 637A91AE1 for ; Wed, 26 Jun 2013 20:23:47 +0000 (UTC) Received: from mfilter6-d.gandi.net (mfilter6-d.gandi.net [217.70.178.135]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 3F780A80B4; Wed, 26 Jun 2013 22:23:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter6-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter6-d.gandi.net (mfilter6-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id QqBaoEFtHwFW; Wed, 26 Jun 2013 22:23:34 +0200 (CEST) X-Originating-IP: 76.102.14.35 Received: from jdc.koitsu.org (c-76-102-14-35.hsd1.ca.comcast.net [76.102.14.35]) (Authenticated sender: jdc@koitsu.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 64114A80C0; Wed, 26 Jun 2013 22:23:33 +0200 (CEST) Received: by icarus.home.lan (Postfix, from userid 1000) id 3DB0B73A1C; Wed, 26 Jun 2013 13:23:32 -0700 (PDT) Date: Wed, 26 Jun 2013 13:23:32 -0700 From: Jeremy Chadwick To: Chris H Subject: Re: portupgrade(1) | portmaster(8) -- which is more effective for large upgrade? Message-ID: <20130626202332.GB80235@icarus.home.lan> References: <5e20544e3580a75759c3858f31894dc9.authenticated@ultimatedns.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5e20544e3580a75759c3858f31894dc9.authenticated@ultimatedns.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 20:23:47 -0000 On Wed, Jun 26, 2013 at 09:42:43AM -0700, Chris H wrote: > Greetings, > I haven't upgraded my tree(s) for awhile. My last attempt to rebuild after an updating > src && ports, resulted in nearly installing the entire ports tree, which is why I've > waited so long. Try as I might, I've had great difficulty finding something that will > _only_ upgrade what I already have installed, _and_ respect the "options" used during the > original make && make install, or those options expressed in make.conf. > As portupgrade(1) && portmaster(8) appear to be the most used in this scenario, > I'm soliciting opinions on which of these works best, or if there is something else to > better manage this situation. Is there such a thing as a FreeBSD upgrade "easy button"? Use portmaster, avoid portupgrade. And no I will not expand on my reasoning -- I urge anyone even mentioning the word portupgrade to spend a few hours of their day reading the horror stories on the mailing lists over the past 10 years or so (including recently). Choose wisely. And before going on any sort of "update crusade", I recommend you re-examine your make.conf methodologies for options if you haven't already. The OPTIONS framework has been revamped and improved many times over, so you will find things like this on a system whose admin keeps up with the times (compare this to older ways/methods, which may break or stop working): OPTIONS_UNSET+= X11 IPV6 NLS php5_SET+= APACHE php5_UNSET+= CGI postfix_SET+= PCRE TLS SASL2 samba36_SET+= AIO_SUPPORT samba36_UNSET+= LDAP CUPS ACL_SUPPORT WINBIND POPT wget_SET+= OPENSSL wget_UNSET+= IDN When rebuilding everything, I have always resorted to this: rsync -avH /usr/local/ /usr/local.old/ pkg_delete -a -f rm -fr /usr/local/* rm -fr /var/db/ports/* rm -fr /usr/ports/distfiles/* cd /usr/ports/whatever make install clean {lather rinse repeat until done} And add some pkg_add -r's in there for large-ish things I don't want to rebuild from source (I think folks who use X probably do this quite a bit; I remember hearing how Open/LibreOffice takes something like 3-4 hours to build on some systems). But that's just how I do things. My advice on using portmaster, however, still stands. -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Making life hard for others since 1977. PGP 4BD6C0CB |