From owner-freebsd-questions@FreeBSD.ORG Sat Nov 17 10:02:10 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 C1E62709 for ; Sat, 17 Nov 2012 10:02:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7F9188FC08 for ; Sat, 17 Nov 2012 10:02:10 +0000 (UTC) Received: from r56.edvax.de (port-92-195-8-72.dynamic.qsc.de [92.195.8.72]) by mx01.qsc.de (Postfix) with ESMTP id 527BB3CD55; Sat, 17 Nov 2012 11:02:03 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id qAHA23t0002253; Sat, 17 Nov 2012 11:02:03 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 17 Nov 2012 11:02:03 +0100 From: Polytropon To: freebsd@dreamchaser.org Subject: Re: how to correct corrupted ports tree? Message-Id: <20121117110203.38708832.freebsd@edvax.de> In-Reply-To: <50A718F5.8040806@dreamchaser.org> References: <50A718F5.8040806@dreamchaser.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 10:02:10 -0000 On Fri, 16 Nov 2012 21:56:21 -0700, Gary Aitken wrote: > 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. You cansolve the problem of "few per-file mismatches" by using the traditional CVS approach of updating the ports tree. Only files not matching the current (on-server) content will be updated. For example, if you can "predict" in which categories errors appear, only update those. Let's assume the problem you experience is only in the ports base directory. Create a file /etc/sup/ports.sup with the following content: *default host=cvsup.freebsd.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix *default compress ports-base You can use "ports-lang" to update the lang category only, or "ports-all" for the whole tree. Note that incorporating all those small deltas may take some time! An example file with all categories can be found here: /usr/share/examples/cvsup/ports-supfile Then add this to /etc/make.conf: SUP_UPDATE= yes SUP= /usr/bin/csup SUPFLAGS= -L 2 SUPHOST= cvsup.freebsd.org PORTSSUPFILE= /etc/sup/ports.sup Maybe choose a near mirror for better performance. Now do this: # cd /usr/ports # make update Now according to this example, the base files for /usr/ports will be checked for changes and (being different) will be updated. Also note that this approach sometimes is more current than using portsnap. There might be deltas in the CVS ports tree already that might not be yet in the most current ports snapshot. However, this is an "old-fashioned" approach; I'm not sure for how long it will work. :-) See "man 5 make.conf" for details, as well as "man 7 ports". -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...