Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2008 01:56:55 +0300
From:      Andrew Pantyukhin <infofarmer@FreeBSD.org>
To:        Jose Garcia Juanino <jjuanino@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: It is safe to build ports for 7.0 from a 6.3 chroot?
Message-ID:  <20080303225653.GX1538@amilo.cenkes.org>
In-Reply-To: <20080303200933.GA909@gauss.sanabria.es>
References:  <20080303200933.GA909@gauss.sanabria.es>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> course)
> 
> 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.



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