It is safe to build ports for 7.0 from a 6.3 chroot?
infofarmer at FreeBSD.org
Mon Mar 3 22:57:01 UTC 2008
On Mon, Mar 03, 2008 at 09:09:37PM +0100, Jose Garcia Juanino wrote:
> Hi everybody
> Actually, I do the following in order to update from 6.3 to 7.0:
> 1) dump my actual 6.3 filesystems /, /var and /usr into three new
> ones: /rel70, /rel70/usr and /rel70/var (I use the dump command, of
> 2) chroot /rel70 and mergemaster -p + buildkernel + buildworld +
> installkernel + installworld + mergemaster -i and such stuff
> 3) Inside the chroot, rebuild the ports
> 4) Reboot the new release
> Will I go into problems following this approach? The step 3) is the most
> dangerous, I believe, as I have executing 7.0 commands on a 6.3 kernel
> (even though only for compilation).
Not only that, many ports have some tweaks dependent on
OSVERSION; some have it ingrained into their configure shims.
Personally, I got into a situation where I had to run 7.0 world
on 6.3 kernel. Nothing bad happened, but I rebooted with a new
kernel as soon as I could. All in all, I'd say you have a good
chance to succeed, especially if you have your fingers crossed :)
You won't be on the safe side, though.
More information about the freebsd-questions