From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 8 13:20:54 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE209ABB for ; Mon, 8 Dec 2014 13:20:54 +0000 (UTC) Received: from server1.xenet.de (server1.xenet.de [213.221.94.201]) by mx1.freebsd.org (Postfix) with ESMTP id 5631611F for ; Mon, 8 Dec 2014 13:20:53 +0000 (UTC) Received: from [10.0.0.32] (intern.xenet.de [213.221.94.50]) (authenticated bits=0) by server1.xenet.de (8.12.5/8.12.5) with ESMTP id sB8DHE3q044202; Mon, 8 Dec 2014 14:17:17 +0100 (CET) (envelope-from meyser@xenet.de) Message-ID: <5485A5AE.1080602@xenet.de> Date: Mon, 08 Dec 2014 14:20:46 +0100 From: Matthias Meyser Organization: XeNET GmbH, Clausthal-Zellerfeld User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Alfred Perlstein Subject: Re: cross installing freebsd? References: <5483AE21.8090306@freebsd.org> <54847206.8070107@xenet.de> <73D1FFAD-4E79-4561-B383-5D1F794C4688@mu.org> In-Reply-To: <73D1FFAD-4E79-4561-B383-5D1F794C4688@mu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.38 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2014 13:20:55 -0000 Hi Am 07.12.2014 um 18:36 schrieb Alfred Perlstein: > > On Dec 7, 2014, at 7:28 AM, Matthias Meyser wrote: [...] >> >> It would be much nicer if the normal install* would handle this automatically. >> Someone should teach the Makesystem to build the installboottrapbinaries >> not only for the HOST system but also for the Targetsystem. >> >> Then normal install would just work. > > I wish I had time to do that, but I really do not have time to sort how to determine that reliably, also people have been pretty upset if anything in the build changes lately and anything breaks. So I am very afraid to touch any defaults. > > Due to time and the pressure to not break anything I can do one of two things: > 1) clean up the two targets I've submitted and put them in a Makefile.cross-install, then document them in the main Makefile. > 2) Keep this code in my own repo. > > Sorry. Let me know if there is a way forward with 1 for the time being? 1 ist better than nothing. ;) Go and submit. But someone with more buildsystemfoo than me and more time than both of us should fix this "the right way" in the future. Because 1) may cause trouble when incompatible changes to the programs used during install are introduced between the installed OS Version and the to be installed OS Version. This is why a separate set of binaries used to install is created during building an used during install. The show stopper is that those binaries are build for the HOST arch not the TARGET arch. (This is fine if you want to run install on the HOST for e.g. to an image) Hmmm. Now even the new target name "cross-install" seems wrong. ;) Its really a "native-install" (on i386 install a i386 system) I hope this grieve get fixed some day. - Matthias -- Matthias Meyser | XeNET GmbH Tel.: +49-5323-9489050 | 38678 Clausthal-Zellerfeld, Marktstrasse 40 Fax: +49-5323-9489059 | Registergericht: Amtsgericht Braunschweig HRB 110823 Email: Meyser@xenet.de | Geschaeftsfuehrer: Matthias Meyser