From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 03:09:32 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5A3AC16A4A0 for ; Mon, 15 Jan 2007 03:09:32 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id CB45E13C441 for ; Mon, 15 Jan 2007 03:09:31 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup235.ach.sch.gr [81.186.70.235]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l0F340VM004993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 15 Jan 2007 05:04:09 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l0F33rOh001766; Mon, 15 Jan 2007 05:03:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l0F33qqU001765; Mon, 15 Jan 2007 05:03:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 15 Jan 2007 05:03:52 +0200 From: Giorgos Keramidas To: Jonathan Horne Message-ID: <20070115030352.GA1502@kobe.laptop> References: <200701141648.34071.freebsd@dfwlp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200701141648.34071.freebsd@dfwlp.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.742, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.46, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: going back in time with the ports tree 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: Mon, 15 Jan 2007 03:09:32 -0000 On 2007-01-14 16:48, Jonathan Horne wrote: > im trying to figure out how to go back in time on my ports tree. im > sure ive seen instructions on how to do this before, but for the life > of me, i cant find the doc now. i would like to get a copy of ports > from right before php-5.2.0 was committed. > > can anyone point me in the right direction? If you are using CVSup to update your ports tree, you can use the 'date' option in your supfile, to specify the precise date-and-time that CVSup will update your /usr/ports tree to. The format of the 'date' options for supfiles is described in cvsup(1) like this: date=[cc]yy.mm.dd.hh.mm.ss This specifies a date that should be used to select the revisions that are checked out from the CVS repository. The client will receive the revisions that were in effect at the specified date and time. At present, the date format is inflexible. All 17 or 19 characters must be specified, exactly as shown. For the years 2000 and beyond, specify the century cc. For earlier years, specify only the last two digits yy. Dates and times are considered to be GMT. The default date is `.', which means ``as late as possible''. Specifying a 'date' in your supfile should be as easy as writing a special ports-supfile, based on one of the existing examples, like `/usr/share/examples/cvsup/ports-supfile' and adding a proper "*default" line. Since ports are not branched, this means that you can replace: *default release=cvs tag=. with something like: *default date=2006.11.24.21.19.45 Now the important detail that you must dig out of the CVS repository is the exact timestamp you are interested in. This can be done by using the web interface of the CVS repository. You can point your favorite browser to: http://cvsweb.freebsd.org/ports/lang/php5/Makefile and look at the change log for the port's Makefile. The elinks(1) browser which I used here, shows: % Revision 1.106 / (download) - annotate - [select for diffs], % Mon Nov 6 17:43:10 2006 UTC (2 months, 1 week ago) by ale % Branch: MAIN % Changes since 1.105: +3 -3 lines % Diff to previous 1.105 (colored) % % Update to 5.2.0 release. So your timestamp should be something definitely *before* the time this update was committed: `2006.11.06.17.43.10'. Your supfile could then be written to contain: *default release=cvs tag=. *default date=2006.11.06.17.43.00 Having said all this, I'm not sure if it's a good idea to roll back the entire Ports tree. You will effectivelly "go back in time", with all the consequences this can have, like for example rolling back all the security fixes of Ports which have been committed since then :( Why do you want to go back to a previous PHP version? Perhaps we can solve any problems you have with 5.2.0, so you can keep your Ports tree up to date *and* have the problems fixed :-) - Giorgos