From andrew@areilly.bpc-users.org  Sat Nov 20 05:36:40 2004
Return-Path: <andrew@areilly.bpc-users.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 029F216A4D0
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Nov 2004 05:36:40 +0000 (GMT)
Received: from gizmo09ps.bigpond.com (gizmo09ps.bigpond.com [144.140.71.19])
	by mx1.FreeBSD.org (Postfix) with SMTP id 5943243D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Nov 2004 05:36:38 +0000 (GMT)
	(envelope-from andrew@areilly.bpc-users.org)
Received: (qmail 8895 invoked from network); 20 Nov 2004 05:36:36 -0000
Received: from unknown (HELO psmam02.bigpond.com) (144.135.25.72)
  by gizmo09ps.bigpond.com with SMTP; 20 Nov 2004 05:36:36 -0000
Received: from cpe-138-130-188-103.nsw.bigpond.net.au ([138.130.188.103]) by psmam02.bigpond.com(MAM REL_3_4_2a 80/10897966) with SMTP id 10897966; Sat, 20 Nov 2004 15:36:36 +1000
Received: (qmail 45117 invoked by uid 1000); 20 Nov 2004 05:36:36 -0000
Message-Id: <20041120053636.45113.qmail@areilly.bpc-users.org>
Date: 20 Nov 2004 05:36:36 -0000
From: Andrew Reilly <andrew@areilly.bpc-users.org>
Reply-To: Andrew Reilly <areilly@bigpond.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: portupgrade dies, "Generating INDEX.tmp"
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         74147
>Category:       ports
>Synopsis:       portupgrade dies, "Generating INDEX.tmp"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 20 05:40:17 GMT 2004
>Closed-Date:    Sun Nov 21 02:07:14 GMT 2004
>Last-Modified:  Sun Nov 21 02:07:14 GMT 2004
>Originator:     Andrew Reilly
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD gurney.reilly.home 4.10-STABLE FreeBSD 4.10-STABLE #2: Sat Nov 20 13:54:38 EST 2004 root@gurney.reilly.home:/usr/var/tmp/obj/usr/src/sys/GURNEY i386



>Description:
	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

>How-To-Repeat:
	just do portupgrade -a on my system
>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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun Nov 21 02:06:54 GMT 2004 
State-Changed-Why:  
Okay, fixed. Should work with your original make.conf after 
your next cvsup :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74147 
>Unformatted:
