From owner-freebsd-questions@FreeBSD.ORG Thu Jan 15 08:26:56 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 5D09616A4CF for ; Thu, 15 Jan 2004 08:26:56 -0800 (PST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5268443D48 for ; Thu, 15 Jan 2004 08:26:53 -0800 (PST) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AhAKa-0007nF-00 for ; Thu, 15 Jan 2004 17:26:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhAKY-0007n7-00 for ; Thu, 15 Jan 2004 17:26:50 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AhAKY-000316-00 for ; Thu, 15 Jan 2004 17:26:50 +0100 From: "Scott I. Remick" Date: Thu, 15 Jan 2004 11:26:50 -0500 Lines: 49 Message-ID: <9pto2ttm6csk.5qsn6krq9w2t.dlg@40tude.net> References: <1lwz10b51pvyx$.iwa53nx2kix.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Archive: encrypt User-Agent: 40tude_Dialog/2.0.5.1 Sender: news Subject: Re: Problems using portupgrade to recompile all ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: scott@sremick.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 16:26:56 -0000 On Thu, 15 Jan 2004 16:02:44 +0000 (GMT), Jan Grant wrote: > 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). Various reasons. I could post the full list at the end if you'd like (I saved it). Most are skipped (*) due to dependencies on the ones that failed (!). For the failed ones, I got assorted errors: "unknown build error", "install error", "checksum mismatch", "linker error", "new compiler error", "missing header". The ones marked ! failed isn't so large I couldn't investigate/fix each individually, but I'm trying to figure out the best way to deal with the full list of failed/skipped so that once I fix the reason for the failures, I can JUST rebuild those in the failed/skipped list and in the proper order, instead of having to rebuild my entire (400+) ports list again w/ -Raf, most of which compiled fine under 5.2. Hopefully I'm making sense... :)