Jungle Boogie wrote on Fri, Nov 07, 2014 at 08:20:36AM -0800:

> Great idea! How do you update your ports, then?
> Just download a new ports.tar.gz file

If you are running -stable, that doesn't help.
The file ports.tar.gz doesn't get updated for -stable after release.

> or:
> # cd /usr/ports
> # cvs -d [email protected]:/cvs -q up -rOPENBSD_`uname
> -r | sed 's/\./_/'` -Pd

Yes, you start from ports.tar.gz, and then, you update that tree
with cvs(1) as needed.

I don't like your uname(1) hackery, though.  It's unsafe, giving you
a false sense of security.  For example, i'm running -current, but
your uname(1) says, on my -current machine:

   $ uname -r | sed 's/\./_/'
  5_6
   $ uname -a
  OpenBSD isnote.usta.de 5.6 GENERIC.MP#5 i386

To update my ports tree, i have to do:

   $ cd /usr/ports && cvs -d ... up -dP

without any -r argument, but your uname(1) would give me a bogus -r
argument, so in some situations, it does the wrong thing.

I'd recommend that you just supply the correct -r by hand if needed.

KISS!

Yours,
  Ingo

Reply via email to