Re: Source level upgrade from 4.9 to CURRENT..

From: Anonymous <swell.k_at_gmail.com>
Date: Fri, 18 Sep 2009 02:59:48 +0400
krad <kraduk_at_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.
Received on Thu Sep 17 2009 - 20:59:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:55 UTC