Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2006 00:38:48 +0200
From:      bsd <bsd@todoo.biz>
To:        Jacques S. <offbyone@xs4all.nl>
Cc:        Liste FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Portupgrade ruby problem
Message-ID:  <1CACB80D-C326-4C00-A14B-87D944F1C341@todoo.biz>
In-Reply-To: <44A8D9CB.1080400@xs4all.nl>
References:  <6364F144-0287-41E2-90F0-D97B45C02493@todoo.biz> <44A8D9CB.1080400@xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Mmmh...

I have followed your instructions and am still facing a problem :

root 0:34 ~ # portversion -l "<"
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... =20
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... =20
uninitialized constant PkgDB::BDB: Cannot update the pkgdb!]
Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ

I can not rebuild the database using pkgdb -fu

root 0:37 ~ # pkgdb -fu
--->  Updating the pkgdb
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... =20
uninitialized constant PkgDB::BDB: Cannot update the pkgdb!]


?? Any idea.


Le 3 juil. 06 =E0 10:48, Jacques S. a =E9crit :

> bsd wrote:
>> Hello,
>> I have a new problem that has just occured on my main mail server.
>> I am upgrading the ports on this server every two or three days =20
>> using portsnap and portupgrade.
>> After portsnap has updated it's index I do a "portupgrade -arR" to =20=

>> upgrade all ports on the system.
>> Mutt needed an update so I did what I am doing every couple of =20
>> days since more than one year :
>> # portsnap update
>> # portupgrade -arR
>> My system faithfully started to update it's ports then...
>>> -L/usr/local/lib -o pgpring  pgppubring.o pgplib.o  lib.o =20
>>> extlib.o sha1.o  pgppacket.o ascii.o -lintl -liconv
>>> cc -I/usr/local/include -Wall -O -pipe -L/usr/local/lib -rpath=3D/=20=

>>> usr/local/lib -L/usr/local/lib pgpewrap.c  -o pgpewrap
>>> defined symbol "db_version_4002"
>>> ** Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
>>> --->  Skipping 'mail/mutt'
>>> /libexec/ld-elf.so.1: /usr/local/lib/ruby/site_ruby/1.8/i386-=20
>>> freebsd5/bdb.so: Undefined symbol "db_version_4002"
>>> /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': =20
>>> Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ =20
>>> (CommandFailedError)
>>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in =20=

>>> `__sudo'
>>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in =20=

>>> `xsystem!'
>>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in =20
>>> `autofix!'
>>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in =20
>>> `autofix'
>>>         from /usr/local/sbin/portupgrade:475:in `main'
>>>         from /usr/local/sbin/portupgrade:714:in `main'
>>>         from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
>>>         from /usr/local/sbin/portupgrade:209:in `main'
>>>         from /usr/local/sbin/portupgrade:1951
>> I shooted portupgrade again but that did nothing, the donkey was =20
>> stucked !!
>>> root 8:08 ~ # portupgrade -arR
>>> /libexec/ld-elf.so.1: /usr/local/lib/ruby/site_ruby/1.8/i386-=20
>>> freebsd5/bdb.so: Undefined symbol "db_version_4002"
>> I have also try to reinstall "portupgrade" and "ruby18" that did =20
>> nothing !!
>> Any idea of how to proceed...
>> Another interesting information :
>>> root 8:18 ~ # uname -a
>>> FreeBSD newmail.rmm.fr 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #0: =20
>>> Thu Nov 24 16:34:35 CET 2005     root@newmail.rmm.fr:/usr/obj/usr/=20=

>>> src/sys/GENERIC  i386
>> Thanks for your support.
>> ________________________________________________
>> =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB=
?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7
>> =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF
>> Gregober ---> PGP ID --> 0x1BA3C2FD
>> bsd @at@ todoo.biz
>> ________________________________________________
>> =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB=
?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7
>> =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-=20
>> unsubscribe@freebsd.org"
>
> This worked for me:
> # cd /var/db/ports/portupgrade
> # rm options
>
> # cd /var/db/pkg
> # rm pkgdb.db
> # pkgdb -fu
>
> Discovered I had both ruby versions in ports: db4-4.x.x and db41-4.x.x
> I needed only db41; nothing depended (any more) on db4, so:
>
> # pkg_delete db4-4.x.x
>
> Note, I had migrated to WITH_BDB4=3Dtrue, quite a long time ago.
>
> The recent tribulations with portupgrade has been on the list =20
> already, several times, at several stages of the problem, and =20
> various solutions have been described. Some of those seem more =20
> complicated than this. I don't think the problem is complicated, at =20=

> least not in every case. At least not, now that the maintainer has =20
> worked to fix the port.
>
> --
> Jacques S.
>

________________________________________________
=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=
=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF
Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz
________________________________________________
=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=
=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1CACB80D-C326-4C00-A14B-87D944F1C341>