From owner-freebsd-ports@FreeBSD.ORG Mon May 10 18:30:19 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFCAF16A4CE for ; Mon, 10 May 2004 18:30:18 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9949843D41 for ; Mon, 10 May 2004 18:30:17 -0700 (PDT) (envelope-from freebsd-ports@m.gmane.org) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BNM5y-0007wd-00 for ; Tue, 11 May 2004 03:30:15 +0200 Received: from 82-36-141-108.cable.ubr02.perr.blueyonder.co.uk ([82.36.141.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 May 2004 03:30:10 +0200 Received: from andy by 82-36-141-108.cable.ubr02.perr.blueyonder.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 May 2004 03:30:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org From: Andy Smith Date: Tue, 11 May 2004 01:06:23 +0000 (UTC) Lines: 75 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 82.36.141.108 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040309 Galeon/1.3.14) Sender: news Subject: broken ports index X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 01:30:19 -0000 Hi, Someone asked me today, "how is it possible that I get 'package supercedes port' when I run pkg_version or portversion? The only thing I've been doing is updating my ports with cvsup" I thought this was a very good question, especially as it then made me notice that I was getting the same on one of my machines. So I had a bit of a google and found a post that suggested I should do: cd /usr/ports make index I tried this, and got this result: $ sudo make index Generating INDEX-5 - please wait..===> comms/gnokii failed: "/usr/ports/Mk/bsd.gnome.mk", line 8: Malformed conditional (${_USE_GNOME_ALL:Mglib12}=="") "/usr/ports/Mk/bsd.gnome.mk", line 8: Need an operator "/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 1520: if-less endif "/usr/ports/Mk/bsd.port.mk", line 1520: Need an operator "/usr/ports/Mk/bsd.port.mk", line 4830: if-less endif "/usr/ports/Mk/bsd.port.mk", line 4830: Need an operator make: fatal errors encountered -- cannot continue *** 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. If so, then report the failure to ports@FreeBSD.org together with relevant details of your ports configuration (including FreeBSD version, environment and /etc/make.conf settings). ******************************************************************** *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. So I did a cvsup in the hope that it would have been a momentary problem that got fixed, but this does not appear to be the case. Now my pkg_version and portversion scripts do not work (they give similar errors to above). Was this a bad thing to do? How do I recover from it? I do have backups, but I would like to know which files to restore. Or I could just nuke /usr/ports and cvsup them again. [andy@laudanum ports]$ uname -a FreeBSD laudanum.strugglers.net 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #0: Wed Mar 3 02:18:05 GMT 2004 root@laudanum.strugglers.net:/usr/obj/usr/src/sys/LAUDANUM i386 [andy@laudanum ports]$ cat /etc/make.conf CPUTYPE=p2 # -- use.perl generated deltas -- # # Created: Wed Feb 4 03:36:35 2004 # Setting to use base perl from ports: PERL_VER=5.8.2 PERL_VERSION=5.8.2 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo Thanks, Andy