From owner-freebsd-current@freebsd.org Mon Nov 21 08:23:11 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFC8CC4D21A for ; Mon, 21 Nov 2016 08:23:11 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id BF5822E3 for ; Mon, 21 Nov 2016 08:23:11 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: by mailman.ysv.freebsd.org (Postfix) id BB893C4D219; Mon, 21 Nov 2016 08:23:11 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB35EC4D218 for ; Mon, 21 Nov 2016 08:23:11 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 47CDE2E2 for ; Mon, 21 Nov 2016 08:23:10 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp121-45-17-13.bras1.adl2.internode.on.net (HELO leader.local) ([121.45.17.13]) by ipmail06.adl2.internode.on.net with ESMTP; 21 Nov 2016 18:48:01 +1030 Subject: Re: a dirty trick: i386 nanobsd ports on amd64 To: Poul-Henning Kamp , current@freebsd.org References: <80831.1479665673@critter.freebsd.dk> From: Shane Ambler Message-ID: <9843926e-e4c1-2e91-b1d3-0aca93fd709b@ShaneWare.Biz> Date: Mon, 21 Nov 2016 18:47:58 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <80831.1479665673@critter.freebsd.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 21 Nov 2016 08:23:11 -0000 On 21/11/2016 04:44, Poul-Henning Kamp wrote: > I ran into a interesting problem, and want to share the solution, in > case anybody else can use it. > > I'm upgrading a system which used to be i386 to amd64, but part of > its job is to compile i386 nanobsd images. > > That's a solved problem, but I also needed a couple of ports installed, > which for reasons of paperwork, must be compiled from source. > > Cross-compiling ports is not something I wanted to get into, but > happily amd64 cpus can run in i386 mode these days: That is something poudriere is designed to do. i386 on amd64 is straight forward, you can also use qemu to cross compile for other archs Using poudriere you can also setup a pkg repo with the ports you build, just setup a http server then set pkg on your nano machine to use something like http://mypkgbuilder/packages/11i386 as the url for it's packages. -- FreeBSD - the place to B...Software Developing Shane Ambler