On Wed, Apr 2, 2008 at 11:52 PM, Josh Grosse <[EMAIL PROTECTED]> wrote:
> 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!
>
> Something like this should work:
>

> # find /usr/ports -type f -name w-\* | xargs rm -rf
>Typo, sorry.  -type d, not -type f.
>Sorry about that.

Hey mate thanks for your help.

As for the packages vs. ports. I was using packages to start off with,
then there was a package I wanted that wasn't there. So I changed to
the ports system, which threw up a whole load of dependency issues so
I had to uninstall the packages and install from ports. Also the
packages weren't up to date for example pidgin-2.0.1p0.tgz when the
newest version was at 2.4. Another reason for my switch to ports. As
for the tags I didn't really realise it seemed to work ok so i keep
going, I sorta presumed that 4.3 might have a branch of its own or be
under "testing" or something... anyways my mistake.

As for the link you provided Xavier I have seen it many times but only
when I was searching for solutions to problems and this time it didn't
seem to offer any. Though I have to admit I only skim read it so I'll
read it more now.

Thanks all :)

Reply via email to