From owner-freebsd-questions@FreeBSD.ORG Fri Sep 21 01:27:13 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4674A16A418 for ; Fri, 21 Sep 2007 01:27:13 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC4513C45A for ; Fri, 21 Sep 2007 01:27:13 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.82]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l8L1RAML052576 for ; Thu, 20 Sep 2007 20:27:10 -0500 (CDT) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Thu, 20 Sep 2007 20:27:10 -0500 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709202027.10272.freebsd@dfwlp.com> X-Spam-Status: No, score=-1.4 required=3.6 tests=ALL_TRUSTED autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on pollux.dfwlp.com Subject: Re: downgrading to an earlier version of the same port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 01:27:13 -0000 On Thursday 20 September 2007 19:37:10 Aryeh Friedman wrote: > On my machine it appears that jdk-1.5.0.12,1 is broken and I want to > downgrade to a previous cvsup of the same port (I don't know the exact > tag but it is the one using patch set 4)... how do I go about doing > this? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" i do this from time to time, byjust making an edit to my ports-supfile. normally, there is a line like this in your ports-supfile: *default release=cvs tag=. i comment that line out, and put one right below it like this: # *default release=cvs tag=. *default release=cvs tag=. date=2007.06.01.01.01.01 as you can see, ive added a date 'keyword' (see man csup), and as you can likely see, the format is year.month.day.hour.minute.second. put in the date/time that you want to go back to, and then: csup -g -L 2 -i ports/java/diablo-jdk15 ports-supfile and just that one port should roll back to the date/time you specified in your ports-supfile. remember, to comment out your new date-line, and un-comment your original date-keyword-less line, so that the next time you csup you dont run your whole ports tree backwards in time. oh, and a good resource to find exactly what date you need to specify that you want to go back to (remember to choose a time *before* the change you want to avoid), is to check here: http://www.freebsd.org/cgi/cvsweb.cgi/ports/#dirlist find your port's Makefile, check the date of the revision, and step back a day, an hour, or whatever you need. good luck, -- Jonathan Horne http://dfwlpiki.dfwlp.org freebsd@dfwlp.com