Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2009 02:59:48 +0400
From:      Anonymous <swell.k@gmail.com>
To:        krad <kraduk@googlemail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Source level upgrade from 4.9 to CURRENT..
Message-ID:  <8663bhrxcr.fsf@gmail.com>
In-Reply-To: <d36406630909171349g7a6aa72fr38c5c5852936dbe1@mail.gmail.com> (krad's message of "Thu, 17 Sep 2009 21:49:18 %2B0100")
References:  <SNT114-W30A82828223906987304DBEDE30@phx.gbl> <20090916065625.GA627@lonesome.com> <200909161451.02432.mel.flynn%2Bfbsd.current@mailing.thruhere.net> <20090916225319.GA1790@duncan.reilly.home> <4AB17542.9010401@FreeBSD.org> <20090917001151.GA4829@duncan.reilly.home> <20090917074121.GA13242@ei.bzerk.org> <d36406630909171349g7a6aa72fr38c5c5852936dbe1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
krad <kraduk@googlemail.com> writes:

[...]
> now for the local packages you have two options: rebuild or install
> compatibility libraries
>
> I usually go for rebuild
>
> 1.mv /usr/local /usr/local.old
> 2. mv /var/db/pkg /var/db/pkg.old
> 3.  reinstall
> ls /var/db/pkg.old/| while read f; do pkg_info -o $f| tail -2; done  | sed
> -e "s/^.*\///" | sort -uls /var/db/pkg/| while read f; do pkg_info -o $f|
> tail -2; done  | sed -e "s/^.*\///" | sort -u | while read p; do pkg_add -rv
> $p; done
> 4. copy your configs accross from the /usr/local.old dir
>
> Finally after you have tested and are happy all is ok cleanup
>
> rm -rf /usr/local.old /var/db/pkg.old
> cd /usr/src
> yes | make delete-old-files  delete-old-libs  delete-old-dirs

I think obsolete header files should be removed *before* ports rebuild.
Some ports may accidentally decide to use them based on their presence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8663bhrxcr.fsf>