From owner-freebsd-stable@FreeBSD.ORG Fri Oct 22 16:37:22 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B29B6106564A for ; Fri, 22 Oct 2010 16:37:22 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 06E1A8FC0A for ; Fri, 22 Oct 2010 16:37:21 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA16709; Fri, 22 Oct 2010 19:37:19 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CC1BDBE.2020008@icyb.net.ua> Date: Fri, 22 Oct 2010 19:37:18 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.11) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.5 MIME-Version: 1.0 To: Simon Chang References: <4CC1A850.5060601@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Correct procedure for cross-compilation X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 16:37:22 -0000 on 22/10/2010 19:27 Simon Chang said the following: > > Try the other way around - it's better to run install{kernel,world} on the same > machine were you did the build. > DESTDIR is your friend too. > > -- > Andriy Gapon > > > Andriy, > > But if I run installkernel and installworld on the same machine, I won't be able > to install the 32-bit binaries on the slow 32-bit machines that I have. > > The whole point is to use a fast machine (the AMD 64) to cross-build 32-bit > binaries and install them onto the slower, 32-bit machines. > > Also, how would you use DESTDIR in this case? I got your point the first time. The idea is to run installworld on your fast machine. You did everything correctly for the build, BTW. I guess that you should be able now to see how to use DESTDIR in that case :-) P.S. there is something unconventional about how your mail client handles quoting of replied to emails. -- Andriy Gapon