From owner-freebsd-questions@FreeBSD.ORG Mon Mar 3 22:57:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B37F01065676 for ; Mon, 3 Mar 2008 22:57:01 +0000 (UTC) (envelope-from sat@cenkes.org) Received: from heka.cenkes.org (heka.cenkes.org [208.79.80.110]) by mx1.freebsd.org (Postfix) with ESMTP id 9C8348FC1C for ; Mon, 3 Mar 2008 22:57:01 +0000 (UTC) (envelope-from sat@cenkes.org) Received: from amilo.cenkes.org (ppp85-141-132-168.pppoe.mtu-net.ru [85.141.132.168]) (Authenticated sender: sat) by heka.cenkes.org (Postfix) with ESMTP id 1378E242F82E; Tue, 4 Mar 2008 01:56:59 +0300 (MSK) Date: Tue, 4 Mar 2008 01:56:55 +0300 From: Andrew Pantyukhin To: Jose Garcia Juanino Message-ID: <20080303225653.GX1538@amilo.cenkes.org> References: <20080303200933.GA909@gauss.sanabria.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080303200933.GA909@gauss.sanabria.es> X-OS: FreeBSD 8.0-CURRENT amd64 User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-questions@freebsd.org Subject: Re: It is safe to build ports for 7.0 from a 6.3 chroot? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: infofarmer@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 22:57:01 -0000 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.