From owner-freebsd-current@FreeBSD.ORG Tue Aug 24 15:53:11 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 F1E871065695 for ; Tue, 24 Aug 2010 15:53:11 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 777578FC0C for ; Tue, 24 Aug 2010 15:53:11 +0000 (UTC) Received: by fxm4 with SMTP id 4so4474645fxm.13 for ; Tue, 24 Aug 2010 08:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:x-mailer:mime-version :content-type:content-transfer-encoding; bh=PyOLAfkUPJIr7kdCztZrxZL9wrctaDMhzmJ/eOEWFik=; b=qn2nGmmKCTlNDcDFFTaxkhbh+C1TlyVC3u81T7zZ9w73SDenGV3dQTe/8iRmO0f4a8 yXBW8FiHrZf2usTef2jx6UkiToxe0fMDUFxagTjFJfTB8z5QcY50W4F28r7rB3yV3HMz S2jKL43uEV6Ry20Ma6wwTbIS5QpLUbWvzKGAQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=L5tq+aMsDZdKLMvM+b3qy31eQ0BK2KRvT+Z0KpHTSsURxiFKSzPoLztmQtCV9eHPxs VHQhBHC78UCAcT2PBxUZdvR/ixFg41WsB4HIWbgOfp7GmGVVwwCvF3fsPFhauWDWLQ54 Gwd+qvWIY3EK+5yFTB3GITxImBT85BMmFNB0k= Received: by 10.223.121.147 with SMTP id h19mr6130753far.76.1282665190056; Tue, 24 Aug 2010 08:53:10 -0700 (PDT) Received: from ernst.jennejohn.org (p578E2343.dip.t-dialin.net [87.142.35.67]) by mx.google.com with ESMTPS id b9sm131968faq.31.2010.08.24.08.53.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 24 Aug 2010 08:53:08 -0700 (PDT) Date: Tue, 24 Aug 2010 17:53:07 +0200 From: Gary Jennejohn To: Pieter de Goeje Message-ID: <20100824175307.11952030@ernst.jennejohn.org> In-Reply-To: <201008241241.37317.pieter@degoeje.nl> References: <201008241241.37317.pieter@degoeje.nl> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: gljennjohn@googlemail.com 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 15:53:12 -0000 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//zone.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. 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. -- Gary Jennejohn