From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 07:29:44 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9F8B1065781 for ; Wed, 23 Jun 2010 07:29:44 +0000 (UTC) (envelope-from ndhertbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 587F68FC21 for ; Wed, 23 Jun 2010 07:29:43 +0000 (UTC) Received: by bwz17 with SMTP id 17so149025bwz.13 for ; Wed, 23 Jun 2010 00:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=bo24vx+EfzYpRoIRapJ/EX8bTzehvDhL1wiXF7DP368=; b=uV/eMY1xs+zBW31BGiGBdWhaLWvXTvzzVzTrgTJRJfhScf55Wqh4gqY5N/WXthgJAF c1aR+2Medoh1OKiMdAQVSF+O33GTq++J/epZo5R9/4V+GDc2mwWugq03tGNbC74FW0xN JpbdhxiSMomsI5qyYfscVCcCq/KON+xx42rwk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=q7h9EEAlyL5Y5DXrjKIHDuha6cF/nJjA+y6/ODQfWVu/lfeVgbV7UuouDyv+7yI+8n lRG+JYyKlVMhYUTq3htFBVg0H/rg4dGPscE8P88SYZgC6IODizKE95OSK+su9jIZL6gc U6VLdpmnFzNbcmcc/ZTPPu0s/wkoXIdwl45s0= MIME-Version: 1.0 Received: by 10.204.81.3 with SMTP id v3mr3658595bkk.115.1277278181976; Wed, 23 Jun 2010 00:29:41 -0700 (PDT) Received: by 10.204.47.224 with HTTP; Wed, 23 Jun 2010 00:29:41 -0700 (PDT) Date: Wed, 23 Jun 2010 09:29:41 +0200 Message-ID: From: n dhert To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: portupgrade -af in FreeBSDupdate to 8.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2010 07:29:44 -0000 in the process of upgrading 7.2 -> 8.0, the last step is to recompile all ports (section 24.2.3 of freebsd manual) # portupgrade -f ruby # rm /var/db/pkg/pkgdb.db # portugprade -f ruby18-bdb # rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db # portupgrade -af Did that for my 760 ports, but after 499 ports reinstalled (and 11 hours), it stopped with ... ===> Cleaning for ruby+nopthreads-1.8.7.248_2,1 ---> Removing temporary files and directories ---> Removing old package' ---> Installation of lang/ruby18 ended at: Wed, 23 Jun 2010 01:06:29 +0200 (con sumed 00:00:12) ---> Cleaning out obsolete shared libraries [Updating the pkgdb in /var/db/pkg ... Inappropriate file type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb in /var/db/pkg ... - 760 packages found (-0 +760) ........ ........................................................700..................... ....................................... done] ---> Reinstallation of lang/ruby18 ended at: Wed, 23 Jun 2010 01:07:57 +0200 (c onsumed 00:04:09) ---> ** Upgrade tasks 748: 497 done, 12 ignored, 1 skipped and 0 failed ---> Session ended at: Wed, 23 Jun 2010 01:07:57 +0200 (consumed 10:28:19) /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:215:in `origin': /var/db/pkg/pkgdb.db : unexpected file type or format -- Invalid argument (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:205:in `origin' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:245:in `config_includ e?' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:215:in `config_ignore _moved?' from /usr/local/sbin/portupgrade:942:in `do_upgrade' from /usr/local/sbin/portupgrade:816:in `main' from /usr/local/sbin/portupgrade:812:in `each' from /usr/local/sbin/portupgrade:812:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2213 # # pkgdb -F ---> Checking the package registry database # Why does it stop? Can it be avoided? Or can I make portupgrade -af start from where it got so far in the first run ? I could do # portupgrade -af again, but this is again "everything" (11 hours)... I noticed on a different system (with only 64 ports), that it stopped at lang/ruby18 there as well, and after again # portugprade -af (which then continued past lang/ruby18), it stopped a second time in the same manner at ---> Reinstallation of databases/ruby-bdb ended at: Mon, 14 Jun 2010 13:01:25 +0200 (consumed 00:00:28)