portupgrade barfs [was: portdb -Uu fails]

Ion-Mihai Tetcu itetcu at apropo.ro
Tue Jun 22 12:46:27 PDT 2004


On Tue, 22 Jun 2004 21:01:24 +0200
hans at lambermont.dyndns.org (Hans Lambermont) wrote:

> Ion-Mihai Tetcu wrote:
> 
> > Hans Lambermont wrote:
> >> Ion-Mihai Tetcu wrote:
> ...
> >>> cd /usr/ports/mail/postfix-current && mv Makefile.inc Makefile.inc.old
> >> 
> >> Thanks, that worked. The .inc has :
> >>   BUILD_DEPENDS+= ${LOCALBASE}/lib/libldap.a:${PORTSDIR}/net/openldap
> >> and re-cvsupping keeps it around. Nasty problem.
> > 
> > This happens because the file is not on the cvs server, but is created
> > by the configure script on postfix-current and cvsup does not delete
> > files that doesn't come from cvs
> 
> Yes, I know. I just didn't expect that ports keep config files around in
> their directory ...

Postfix* ain't converted to the new OPTIONS, so it use the old method of
interactivity ;) Actually the old method is more flexible and powerful
so for some ports I don't think it can be replaced by OPTIONS ( the way
they are now ).


> Next problem ;-) Actually portupgrading something ...

something = ?


> --->  Session started at: Tue, 22 Jun 2004 20:53:06 +0200
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 325 packages found (-1 +1) (...). done]
> --->  Session ended at: Tue, 22 Jun 2004 20:53:14 +0200 (consumed 00:00:07)
> /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:323:in `deorigin': cannot convert nil into String (PkgDB::DBError)
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:916:in `tsort_build'
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `each'
>         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:907:in `each'
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build'
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build'
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933: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:1845
> 
> re-cvsupping, cd /usr/ports/sysutils/portupgrade && make deinstall &&
> make install don't help.

Probably a ruby bug. Rebuilding {pkg|ports}.db from scratch will do, I think.



-- 
IOnut
Unregistered ;) FreeBSD "user"



More information about the freebsd-ports mailing list