From owner-freebsd-current@FreeBSD.ORG Tue Aug 24 22:06:15 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CE7B1065693 for ; Tue, 24 Aug 2010 22:06:15 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx2.utsp.utwente.nl [130.89.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id B316A8FC14 for ; Tue, 24 Aug 2010 22:06:14 +0000 (UTC) Received: from nox-laptop.student.utwente.nl (nox-laptop.student.utwente.nl [130.89.160.140]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o7OLlAh2018990; Tue, 24 Aug 2010 23:47:11 +0200 From: Pieter de Goeje To: gljennjohn@googlemail.com Date: Tue, 24 Aug 2010 23:47:14 +0200 User-Agent: KMail/1.9.10 References: <201008241241.37317.pieter@degoeje.nl> <20100824175307.11952030@ernst.jennejohn.org> In-Reply-To: <20100824175307.11952030@ernst.jennejohn.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201008242347.14717.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: freebsd-current@freebsd.org Subject: Re: make installworld fails; tzsetup missing -C option X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 22:06:15 -0000 On Tuesday 24 August 2010 17:53:07 Gary Jennejohn wrote: > On Tue, 24 Aug 2010 12:41:37 +0200 > > Pieter de Goeje wrote: > > I'm trying to do a remote upgrade of a machine by mounting > > it's root filesystem on /mnt using nfs. The build machine > > runs a recent 8-STABLE. The target runs 9-CURRENT. > > > > make installworld fails with: > > > > install -o root -g wheel -m 444 > > /data/FreeBSD/FreeBSD-current/src/share/zoneinfo/../../contrib/tzdata//zo > >ne.tab /mnt/usr/share/zoneinfo/ Updating /etc/localtime > > tzsetup: illegal option -- C > > usage: tzsetup [-ns] > > *** Error code 1 > > > > Build script does the equivalent of this: > > $ mount target:/ /mnt > > $ cd /FreeBSD/FreeBSD-current/src > > $ make -j4 buildworld && make -j4 buildkernel > > $ setenv DESTDIR /mnt > > $ make installkernel > > $ setenv NO_FSCHG 1 > > $ make installworld > > > > uname on the build machine: > > FreeBSD 8.1-STABLE #1: Tue Aug 10 13:09:59 CEST 2010 > > You're trying to install 9-CURRENT using 8.1-STABLE binaries, which just > won't work in this (tzsetup) case. > > The -C flag is only set when DESTDIR is set, which might be considered > a bug since it prevents cross-compiling and cross-installation using > different versions of FreeBSD, like in your case. > > But I'm not so sure that support for this is guaranteed when going from > an older version to a newer version. It's a bit of an edge case I agree. A working cross installation is desirable if for example you want to upgrade a machine in place, but have a fallback mechanism by installing everyting on a separate root filesystem first. > > I suppose you could try a) editing share/zoneinfo/Makefile and deleting > the optC code or b) pointing PATH at DESTDIR, if it's already populated. > As I'm not cross compiling, I simply used the tzetup it built to complete the install. I temporarily replaced the 8-STABLE version with the 9-CURRENT version on the build box. I wonder if tzsetup should be a bootstrap tool... -- Pieter de Goeje