portupgrade -arR fails -> port/pkg-system no longer usable

Kent Stewart kstewart at owt.com
Mon Mar 22 08:24:06 PST 2004


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


More information about the freebsd-questions mailing list