From owner-freebsd-questions@FreeBSD.ORG Thu Jan 15 08:06:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68AFB16A4CE for ; Thu, 15 Jan 2004 08:06:18 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6CFE43D5C for ; Thu, 15 Jan 2004 08:06:16 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Thu, 15 Jan 2004 16:05:50 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 1Ah9xE-0003aL-00; Thu, 15 Jan 2004 16:02:44 +0000 Date: Thu, 15 Jan 2004 16:02:44 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: "Scott I. Remick" In-Reply-To: <1lwz10b51pvyx$.iwa53nx2kix.dlg@40tude.net> Message-ID: References: <1lwz10b51pvyx$.iwa53nx2kix.dlg@40tude.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant cc: freebsd-questions@freebsd.org Subject: Re: Problems using portupgrade to recompile all ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 16:06:18 -0000 On Thu, 15 Jan 2004, Scott I. Remick wrote: > So I'm upgrading my 5.1R desktop to 5.2R. Used cvsup, followed the > instructions in UPGRADING, did a custom kernel, etc etc. That part went > fine, no probs. > > I noticed some of my daemons (from ports) seemed a bit annoyed though upon > booting up 5.2. I tried using portupgrade -Rf on them individually, and > then all was well. I decided then that it'd be best to do everything (-Raf) > to play it safe. I've done this before. > > So it finally finished last night, but not really... about 132 ports were > failed/skipped. My problem is figuring out the most efficient way to deal > with it from here. LAST time I did a portupgrade -Raf I had a much smaller > number failed/skipped, and what I did was work out the dependency tree for > the remaining ones by hand using pkg_info -R and -r, figure out the order, > and do a portupgrade -f on each in the proper order. This was to avoid > rebuilding stuff already built on the first -Raf pass, and multiple times > over (since I was taking care of each remaining one individually). Seems to > me that if 50 of those 132 are X apps and I do a portupgrade -Rf on each, > I'll be rebuilding XFree86 50 times. Hence the need to work out the install > order by-hand based upon dependencies and only use -f. But I don't see that > as practical this time around with so many left to do. > > So... my ultimate question is: how do you pros handle situations like this? > Is there a trick I'm missing? Do you know why the failure happened? The most frequent cause of this when I've encountered the problem is that a distfile could not be fetched. I tend to try to avoid that these days by prefetching the distfiles prior to a build (ie, while I'm around to sort out problems manually rather than overnight). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ If it's broken really badly - don't fix it either.