Peter schrieb am Fri, Mar 09, 2007 at 11:08:30PM -0500:
> Le Vendredi 9 Mars 2007 18:24, Joachim Schipper a icrit :
>> On Fri, Mar 09, 2007 at 06:05:58PM -0500, Peter wrote:
>>
>>> On 4.0, besides uninstalling ports, updating the ports tree, and
>>> re-installing is there any other way to do this?   What is standard
>>> practice?
>>
>> # pkg_add -ui
> 
> Are you serious?  I thought that was only for straight packages.
> It actually fetches code from third party repositories?

Uh, oh, no.  Your question wasn't terribly clear, i didn't get your
meaning, either.

You mean you compiled some piece of software yourself, from ports,
and now want to update it?  In that case, it depends on why you want
to do that.

In case there was a security fix, but the license does not allow
the binary package to be distributed, you just update the single
port directory (say, /usr/ports/www/amaya), e.g. using cvs.
Be careful to get the correct tag, e.g. -rOPENBSD_4_0.
After that, you say make clean; make build; sudo make package.
You then have the package in /usr/ports/packages/<arch>/all
and can install it using pkg_add -r.  Be sure to take the new
and and not the old one, which will also be around if you
compiled it previously.  For more info, see
http://www.openbsd.org/anoncvs.html, ports(7), pkg_add(1).

If you want to run a -current port on -stable (because it's *so*
cool), there is not guarantee it will work.  Do *not* just cvs update
such that you get a mixed ports tree - sooner or later, things
will break.  Better do something like this:
  cd /usr/ports
  mkdir -p mystuff/www
  cp -pR www/amaya mystuff/www/

In that copy, update the files manually, actually *reading* and
fixing them.  Sometimes, it is quite easy.  Sometimes, it is very
hard work.  Sometimes, it won't work at all.  In many cases, it
will be a waste of time, in some cases, a valuable learning
experience, if you persevere in doing it yourself.

When you *really* need -current, it's probably better just to
use a snapshot, a -current ports tree and to compile it there.
But mind you, going back from -current to -stable is *not*
supported.  So in case you change your mind later, you need to
reinstall from scratch.  Besides, trying to learn the basics
of the OS and trying to learn tracking -current at the same
time is not a good idea.

Yours,
  Ingo

Reply via email to