On Tue, Feb 14, 2012 at 08:32:52PM +0100, Marc Espie wrote:
> On Tue, Feb 14, 2012 at 11:50:31AM -0600, Chris Bennett wrote:
> > On Tue, Feb 14, 2012 at 07:06:26PM +1030, Giridhari wrote:
> > > HELO,
> > >
> > > whatbs the correct procedure for keeping ports that are installed up
to
> > date
> > > when the system is updated with CVS?
> > >
> > > Do I need to make uninstall the ports, perform the cvs update, build
the
> > new
> > > system and then make the new ports?
> >
> > If you are running -current or if you update to a newer release AND are
> > running ports that are NOT in packages then you will need to do the
> > following:
> >
> > For -current:
> > Update your ports tree at the SAME time as you update -current, never
> > before or after.
> >
> > make clean
> > make update
> > make repackage
> > make reinstall
>
> Huh???? this reads like an excerpt of freebsd's handbook or something.
>

Sorry, I pulled this stuff off of www.openbsd.org.

> if make update works, you have a new package, and it's installed.
> The rest isn't needed.
>
> We always, always make package even for updates.

I took the question in a different way.
Sounded to me like a more basic question on the right way to go from a
certain point.
There have been a ton of messages lately from people wanting to build
all kinds of stuff from ports when perfectly good packages are
available.
I was assuming that there was a need to make clear not to build from
ports unless using a FLAVOR not in prebuilt downloadable packages.

>
> The only trouble is that sometimes, make package won't work if an older
> version is already installed (you've got to thank the gnu autohell for
> that, mostly).
>

Feel free to blast me some more if I am still seeing things wrong.

So what I said above will NOT work with these troublesome packages?
I have been using all of the make commands when working on ports, stuff
like make uninstall, etc.
The Porters Handbook seems to suggest that roughly this procedure does
work.

make clean=work flavors packages plist depends
No?

> dpb -R -u -U is also a possibility, though its not 100%.
>
> And out-of-date will tell you which of your ports you need to rebuild.
>
> One longer, more sure-fire procedure would be to
> pkg_info -q -m -P -a >list
> pkg_delete /var/db/pkg/*
> dpb -I list
>
> (e.g., grab the list of packages you really want, zap the old ones, rebuild
> them and install with dpb)
>

Chris Bennett

Reply via email to