Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2007 20:27:10 -0500
From:      Jonathan Horne <freebsd@dfwlp.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: downgrading to an earlier version of the same port
Message-ID:  <200709202027.10272.freebsd@dfwlp.com>
In-Reply-To: <bef9a7920709201737s58ba842au92c93db2e83e0ca5@mail.gmail.com>
References:  <bef9a7920709201737s58ba842au92c93db2e83e0ca5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709202027.10272.freebsd>