Ports and updating 6.2-STABLE to 7.0-PRERELEASE

Boris Samorodov bsam at ipt.ru
Fri Oct 19 16:00:42 PDT 2007

On Fri, 19 Oct 2007 17:04:22 -0500 Doug Poland wrote:
> Erik Trulsson wrote:
> > On Fri, Oct 19, 2007 at 03:57:08PM -0500, Doug Poland wrote:
> >> Hello,
> >>
> >> I've just updated my system to 7.0-PRERELEASE from 6.2-STABLE on
> >> i386 and I was wondering what the recommendation is for ports.
> >> Specifically, is it necessary to rebuild all ports?
> >>
> >> So far, I haven't rebuilt any ports and haven't had any problems...
> >
> > It is not strictly necessary to rebuild all ports, but I would recommend it
> > and if you start to install any new ports then you should rebuild all the
> > old ones first.
> >
> > Having some ports linked against 6.x libraries while some are linked
> > against 7.x libraries can very easily lead to problems.
> > (If one of your old ports (linked against 6.x libraries) provides some
> > library which is used by one of the new ports (using 7.x libraries) then the
> > new port can end up using two version of the same system library - both the
> > 6.x version and the 7.x version.  This will almost certainly not work
> > correctly.)
> >
> Thank you for the info, I think I'll rebuild my ports.  I imagine I
> could then use

> # portsclean --libclean

Shouldn't it remove only libraries from ports?

> to get rid of those 6.x libraries and have a nice *clean* system.

If you want to get a clean system and to get rid of 6.x libraries from
base system you may be interested in "make delete-old[-libs|-dirs]" at
/usr/src. More info at /usr/src/UPDATING and /usr/src/Makefile.


More information about the freebsd-questions mailing list