From owner-freebsd-questions@FreeBSD.ORG Sun Nov 18 04:18:17 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76ACE12F for ; Sun, 18 Nov 2012 04:18:17 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id D71A88FC13 for ; Sun, 18 Nov 2012 04:18:15 +0000 (UTC) Received: from kw.news4all.se (c80-217-70-175.bredband.comhem.se [80.217.70.175]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id qAI4I1hq066572; Sun, 18 Nov 2012 05:18:02 +0100 (CET) (envelope-from bah@bananmonarki.se) Message-ID: <50A860BA.6010901@bananmonarki.se> Date: Sun, 18 Nov 2012 05:14:50 +0100 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120929 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd@dreamchaser.org Subject: Re: how to correct corrupted ports tree? References: <50A718F5.8040806@dreamchaser.org> In-Reply-To: <50A718F5.8040806@dreamchaser.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2012 04:18:17 -0000 2012-11-17 05:56, Gary Aitken skrev: > so, after updating bios, repartitioning, etc, > things seem to be stable, modulo the following: > > decided to rebuild ports for peace of mind, > but my basic ports tree is hosed: > > # portmaster -t --clean-distfiles > ... > "/usr/ports/Mk/bsd.php.mk", line 335: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Myes} != "") > ... > make: fatal errors encountered -- cannot continue > > ===>>> No DISTINFO_FILE in /usr/ports/lang/php4-extensions > > "Makefile", line 20: Could not find /usr/ports/mail/enigmail-thunderbird3/../enigmail/Makefile > make: fatal errors encountered -- cannot continue > > Sure enough: > > # ls /usr/ports/lang/php4-extensions > CVS Makefile pkg-descr > > I didn't see anything in the handbook about how to get the ports tree itself > back to a sane condition. Do I have to blow the whole thing away and do a > fresh extract? I don't see a way to force refetch of the actual ports files > like "distinfo" when portsnap thinks the port is up to date. I would do: portsnap fetch update extract or download the ports tarball. ftp://ftp.sunet.se/pub/FreeBSD/ports/ports/ports.tar.gz