Bug 74147 - portupgrade dies, "Generating INDEX.tmp"
Summary: portupgrade dies, "Generating INDEX.tmp"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-20 05:40 UTC by Andrew Reilly
Modified: 2004-11-21 02:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Reilly 2004-11-20 05:40:17 UTC
	CVSupped RELENG_4 and ports-all last night.  Today: rebuilt world
	and kernel, and installed both, no problems.  Started
	portupgrade -a (with $PORTUPGRADE flags -yrRbl /tmp/portupgrade.log)
	and that terminated with the following error log:

--->  Session started at: Sat, 20 Nov 2004 15:49:25 +1100
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 506 packages found (-1 +1) (...). done]
Updating the ports index ... Generating INDEX.tmp - please wait.."/usr/ports/Mk/bsd.gnome.mk", line 8: Malformed conditional (${_USE_GNOME_ALL:Mgtk12}=="")
"/usr/ports/Mk/bsd.gnome.mk", line 8: Need an operator
"/usr/ports/Mk/bsd.port.mk", line 4930: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 4930: Need an operator
make: fatal errors encountered -- cannot continue
===> chinese/xemacs21 failed
*** Error code 1
1 error

********************************************************************
Before reporting this error, verify that you are running a supported
version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you
have a complete and up-to-date ports collection.  (INDEX builds are
not supported with partial or out-of-date ports collections -- in
particular, if you are using cvsup, you must cvsup the "ports-all"
collection, and have no "refuse" files.)  If that is the case, then
report the failure to ports@FreeBSD.org together with relevant
details of your ports configuration (including FreeBSD version,
your architecture, your environment, and your /etc/make.conf
settings, especially compiler flags and WITH/WITHOUT settings).

Note: the latest pre-generated version of INDEX may be fetched
automatically with "make fetchindex".
********************************************************************

*** Error code 1

Stop in /usr/ports.
*** Error code 1

Stop in /usr/ports.
failed to generate INDEX!
index generation error
--->  Session ended at: Sat, 20 Nov 2004 15:55:42 +1100 (consumed 00:06:16)
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:482:in `open_db': database file error (PortsDB::DBError)
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:634:in `port'
        from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:822:in `all_depends_list'
        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

Fix: 

I've nuked the bulk of my /etc/make.conf file, and it
	seems to be proceeding OK.  It's certainly managed to
	run for longer than it was before.  The deleted lines
	include (accumulated over many years):

FETCH_BEFORE_ARGS=-p
USA_RESIDENT=NO
HAVE_MOTIF=yes
MOTIF_STATIC=yes
MAKE_IDEA=YES
#MAKE_KERBEROS4=yes
MAKE_KERBEROS5=yes
MAKE_RSAINTL=YES
PORTSSUPFILE=/usr/share/examples/cvsup/ports-gurney
PRINTERDEVICE=ps
SUPFILE=/usr/share/examples/cvsup/stable-gurney
SUPHOST=cvsup3.au.FreeBSD.org
XFREE86_VERSION=4
GNOME_DESKTOP_VERSION=2
ISPELL_BRITISH=yes
ASPELL_EN=yes
WITHOUT_PILOT=yes
WANT_GTK=yes
WITH_GTK2=yes
WITH_ASPELL=yes
WITH_AUDIOFILE=yes
WITH_BSD_JDK=TRUE
WITH_COMPFACE=yes
WITH_FAM=yes
WITH_FULL_MOZILLA=yes
WITH_GIMP=yes
WITH_GIF_LZW_COMPRESSION=yes
WITH_GPGME=yes
WITH_ISPELL=yes
WITH_LAME=yes
WITH_LZW=yes
WITH_MIKMOD=yes
WITH_MMX=yes
WITH_MPG123=yes
WITH_OPTIMIZED_CFLAGS=yes
WITH_OPT_PPRO=yes
WITH_PIXBUF=yes
WITH_PYECASOUND=yes
WITH_TTF_BYTECODE_ENABLED=YES
WITH_VORBIS=yes
WITH_QT=yes
How-To-Repeat: 	just do portupgrade -a on my system
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2004-11-21 02:06:54 UTC
State Changed
From-To: open->closed

Okay, fixed. Should work with your original make.conf after 
your next cvsup :)