Subject: SUMMARY: downgrading packages within pkgsrc?
To: None <netbsd-users@netbsd.org>
From: Malcolm Herbert <mjch@mjch.net>
List: netbsd-users
Date: 02/13/2003 18:11:21
--rwbb4r/vLufKlfJs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 13, 2003 at 10:28:07AM +1100, Malcolm Herbert wrote:
|what's the best method to check out parts of pkgsrc for a particular
|version of a package? I need postgresql 7.2 to work with another
|application (rt2) but my pkgsrc directory is at version 7.3.1, as are
|all the patches and md5 sums and so on ... how do I check out that
|portion of the tree for postgresql 7.2?

Thanks to Luke Mewburn, Jeremy Reed and Takahiro Kambe.

Jeremy reminded me of the cvs -D option which can be used to check out
a directory tree as at a particular date - it turned out I needed the
version as at 4th of January this year.

I didn't want to make any changes to my existing pkgsrc tree, however
I also didn't want to download the whole tree again at a particular
point in time for the sake of recompiling one package (never mind the
problem that old versions of other supporting packages may also have
been created this way)

I really only wanted to revert to an older version of the postgresql
directories and compile it against other current packages I'd already
created.

In order to do this I did the following:

|aeolos[~] 1v#: cd /scratch
|aeolos[/scratch] 2v#: mkdir -p pkgsrc/databases
|aeolos[/scratch] 3v#: cd pkgsrc/databases
|aeolos[/scratch/pkgsrc/databases] 4v#: cp -r /usr/pkgsrc/databases/CVS .
|aeolos[/scratch/pkgsrc/databases] 5v#: env CVSROOT=3D:pserver:anoncvs@anon=
cvs.netbsd.org:/cvsroot cvs -q update -d -P -D "4 Jan 2003"
|U Makefile
|U cdb/DESCR
:
:
:
|U zope-mysql/distinfo
|U zope-mysql/patches/patch-aa
|aeolos[/scratch/pkgsrc/databases] 6v#: mount -t null /scratch/pkgsrc/datab=
ases /usr/pkgsrc/databases

=2E.. package build happens as normal here ...=20

|aeolos[/scratch/pkgsrc/databases] 7v#: cd /scratch
|aeolos[/scratch] 8v#: umount /usr/pkgsrc/databases
|aeolos[/scratch] 9v#: rm -rf pkgsrc

--=20
Malcolm Herbert                                This brain intentionally
mjch@mjch.net                                                left blank

--rwbb4r/vLufKlfJs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE+S0UX/3AcQ0fM4P8RAqlcAKC+y27QmGXDJ+VMHUd+fNNBx5RygQCeL4CD
V5KEiueYYMITW1SqlaN8ulw=
=AOOz
-----END PGP SIGNATURE-----

--rwbb4r/vLufKlfJs--