On Wed, 2 Apr 2008 23:35:53 +1000, N J wrote
> I've been doing:
>       # cd /usr/ports
>       # cvs -q up -Pd

This will update an *existing* working directory in /usr/ports -- and that
update will use whatever CVS tag was used last, unless you use -A.  Since
we've established this was a -current working directory (using a tag of "HEAD"
or no tag at all), it will continue to update to -current each time you
execute it.

> Should have I been doing:
>       # cd /usr/ports
>       # cvs -q up -rOPENBSD_4_2 -Pd

Yes.

This will replace whatever tags are in use in the /usr/ports tree, with the
tag for 4.2-stable.  Tags are sticky, read about them in cvs(1).  You can see
what tags are in use, if any, by looking in the CVS subdirectories which can
be found throughout the tree.  If there is a tag in use, you will find it in
the /usr/ports/<any directory>/CVS/Tag file.
 
> If so will it work ok if just run it now or will it have issues?

Run it now.  You will end up with a 4.2-stable tree.  You will want to clean
out all of the detritus you've left behind in working directories... these are
directories that start with "w-" in every port and it's dependency you've been
trying to build.

Something like this should work:

# find /usr/ports -type f -name w-\* | xargs rm -rf

You may also want to clean out your packages subdirectory; perhaps your
distfiles directory as well:

# rm -rf /usr/ports/packages /usr/ports/distfiles
 
FAQ 15 makes a very strong recommendation to use packages over ports and to
only use ports in those cases where packages are not available.  Let me take
the opportunity now to repeat that recommendation here:

--> Use packages unless they are not available.  <--

Good luck!

Reply via email to