From owner-freebsd-questions@FreeBSD.ORG Mon Mar 22 08:24:05 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 C827C16A4CF for ; Mon, 22 Mar 2004 08:24:05 -0800 (PST) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F0C643D41 for ; Mon, 22 Mar 2004 08:24:05 -0800 (PST) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i2MGNMmH000660; Mon, 22 Mar 2004 08:23:23 -0800 From: Kent Stewart To: freebsd-questions@freebsd.org Date: Mon, 22 Mar 2004 08:24:00 -0800 User-Agent: KMail/1.6.1 References: <20040322153123.GA14092@athena.oekb.co.at> In-Reply-To: <20040322153123.GA14092@athena.oekb.co.at> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403220824.00944.kstewart@owt.com> cc: Ewald Jenisch Subject: Re: portupgrade -arR fails -> port/pkg-system no longer usable 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: Mon, 22 Mar 2004 16:24:06 -0000 On Monday 22 March 2004 07:31 am, Ewald Jenisch wrote: > Hi, > > Doing a "portupgrade -arR" rendered my system (esp. the parts that > refer to ports/packages) more or less unusable. > > Here's what I did: > > System is running 4.9 > cvsup -g -L 2 ports-supfile > pkgdb -F > portsdb -Uu > cd /usr/ports > portupgrade -arR > > After some hours worth of CPU-time I ended with a lot of ports not > been upgraded like e.g. > > ! graphics/png (png-1.2.5_2) (uninstall error) > ! textproc/xmlcatmgr (xmlcatmgr-0.2_1) (uninstall error) > ! textproc/sdocbook-xml (sdocbook-xml-4.1.2.5_1) > (uninstall error) ! lang/ruby16-shim-ruby18 > (ruby-shim-ruby18-1.8.0.p2.2003.04.19_1) (uninstall error) ! > devel/libtool13 (libtool-1.3.5_1) (uninstall error) ! > converters/libiconv (libiconv-1.9.1_1) (uninstall error) ! > textproc/expat2 (expat-1.95.6_1) (uninstall error) ! > archivers/lha (lha-1.14i_1) (uninstall error) > ! textproc/py-expat (py23-expat-2.3_2) (unknown build error) > ! graphics/jpeg (jpeg-6b_1) (uninstall error) > ! textproc/docbook-sk (docbook-sk-4.1.2) (uninstall > error) ! textproc/docbook-xsl (docbook-xsl-1.61.3_1) (uninstall > error) ! graphics/tiff (tiff-3.5.7_1) (uninstall error) > ! devel/gettext (gettext-0.12.1) (unknown build error) > ! databases/ruby-bdb1 (ruby-bdb1-0.2.1) (uninstall error) > ! graphics/lcms (lcms-1.09,1) (uninstall error) > ! sysutils/portupgrade (portupgrade-20030723) (uninstall > error) ! devel/libltdl (libltdl-1.5) (uninstall error) > ! lang/guile (guile-1.6.4_2) (uninstall error) > ! devel/pkgconfig (pkgconfig-0.15.0) (uninstall error) > > etc.etc. > > So I tried > # pkgdb -F > /usr/local/sbin/pkgdb:35:in `require': No such file to load -- > pkgtools (LoadError) from /usr/local/sbin/pkgdb:35 > # > and > # portsdb -Uu > /usr/local/sbin/portsdb:35:in `require': No such file to load -- > pkgtools (LoadError) from /usr/local/sbin/portsdb:35 > # > as well as > # portversion > /usr/local/sbin/portversion:35:in `require': No such file to load -- > pkgtools (LoadError) from /usr/local/sbin/portversion:35 > # > > Please note that I've "portupgraded" my system with "-arR" several > times in the past without any problems so far. > > BTW - I'm experiencing the same problems with another system that's > running 5.2.1. > > > > Any pointer/help in order to get my system going again is very much > appreciated! > You need to read /usr/ports/UPDATING to see how to upgrade portupgrade so that it is using ruby-1.8. I only use ruby with portupgrade so it was simple to do a recursive pkg_delete of ruby and reinstall portupgrade. That upgraded ruby to 1.8 and everything was happy. You jumped into the middle of some massive updates. For example, everything that uses expat has to be updated to using the new version. The new portupgrade and pkgdb -F is your friend. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html