Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2005 08:46:59 -0700
From:      paul beard <paulbeard@mac.com>
To:        FreeBSD-questions <questions@Freebsd.org>
Subject:   Still have questions on portupgrade database problems
Message-ID:  <D234CDAB-E5C8-4AD6-A3E5-BE70D07DB687@mac.com>

next in thread | raw e-mail | index | archive | help

--Apple-Mail-36--400584770
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

I am still seeing this error if I run portupgrade -a:

--->  Session started at: Tue, 19 Jul 2005 08:30:17 -0700
[Rebuilding the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 542  
packages found (-0  
+542) .................................................................. 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
............................................ done]
--->  Session ended at: Tue, 19 Jul 2005 08:34:00 -0700 (consumed  
00:03:42)
/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:322:in `deorigin': cannot  
convert nil into String (PkgDB::DBError)
         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in  
`tsort_build'
         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:914:in `each'
         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:914:in  
`tsort_build'
         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:906:in `each'
         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:906:in  
`tsort_build'
         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:928:in  
`sort_build'
         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:932:in  
`sort_build!'
         from /usr/local/sbin/portupgrade:674:in `main'
         from /usr/local/sbin/portupgrade:207:in `initialize'
         from /usr/local/sbin/portupgrade:207:in `new'
         from /usr/local/sbin/portupgrade:207:in `main'
         from /usr/local/sbin/portupgrade:1869

I have heeded the advice in UPDATING:
> adjust the PORTS_DBDRIVER variable (in your environment or in
>   pkgtools.conf) to either bdb1_hash or dbm_hash.

but it doesn't seem to take. I have bdb1_hash in pkgtools.conf. I  
have even tried -q/--noconfig to only take environment variables.

[/var/db/pkg]# export PORTS_DBDRIVER=bdb1_hash; pkgdb -qF
--->  Checking the package registry database
[Rebuilding the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 542  
packages found (-0 +542) ..............................

what am I missing?

FWIW, I can use an incantation of portmanager to find the outdated  
ports and use portupgrade on the one by one.
--
Paul Beard
contact info: www.paulbeard.org/paulbeard.vcf

Are you trying to win an argument or solve a problem?


--Apple-Mail-36--400584770
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFC3SBzfHLPwpj1/JQRAp0hAJ9KTDnrJBttP1VLCo22dH25zoxohQCglkLW
xOeo7dPlPTsa63mpaiw/feM=
=HJP1
-----END PGP SIGNATURE-----

--Apple-Mail-36--400584770--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D234CDAB-E5C8-4AD6-A3E5-BE70D07DB687>