downgrading to an earlier version of the same port

Jonathan Horne freebsd at dfwlp.com
Thu Sep 20 18:27:13 PDT 2007


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at 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 at dfwlp.com


More information about the freebsd-questions mailing list