From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 26EA213832E for ; Wed, 3 Aug 2016 16:26:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50A0F21C0A6; Wed, 3 Aug 2016 16:26:20 +0000 (UTC) Received: from omr-m011e.mx.aol.com (omr-m011e.mx.aol.com [204.29.186.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 54C3F21C06A for ; Wed, 3 Aug 2016 16:26:19 +0000 (UTC) Received: from mtaout-mba01.mx.aol.com (mtaout-mba01.mx.aol.com [172.26.133.109]) by omr-m011e.mx.aol.com (Outbound Mail Relay) with ESMTP id 752C338000FC for ; Wed, 3 Aug 2016 12:26:18 -0400 (EDT) Received: from [192.168.1.52] (0x5b3139322e3136382e312e35325d [71.122.242.106]) by mtaout-mba01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPA id 036D638000096; Wed, 3 Aug 2016 12:26:17 -0400 (EDT) Subject: Re: [gentoo-user] Re: cross-compile attempt To: gentoo-user@lists.gentoo.org References: <1544697.klPk7OG4O7@dell_xps> <2788057.PL0PvVn3Vb@dell_xps> <7280559.BLtsgQ0YyM@peak> <1741521.Dge7ti9OX5@dell_xps> <20160802125604.4dea5fe3@digimed.co.uk> <20160803002229.6501.1E623655@matica.foolinux.mooo.com> <20160803092014.1965cc88@hactar.digimed.co.uk> From: james Message-ID: <66a230d1-813f-574d-7239-08bbd6f4ad75@verizon.net> Date: Wed, 3 Aug 2016 12:26:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <20160803092014.1965cc88@hactar.digimed.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit x-aol-global-disposition: G x-aol-sid: 3039ac1a856d57a21b29454c X-AOL-IP: 71.122.242.106 X-Archives-Salt: 74f09196-89aa-4810-a3a1-6ccd97908474 X-Archives-Hash: 87533de64448d8ca3077ae6f1276922c On 08/03/2016 03:20 AM, Neil Bothwick wrote: > On Tue, 2 Aug 2016 17:26:09 -0700, Ian Zimmerman wrote: > >>> If you are using systemd, it is much simpler to use a container with >>> systemd-nspawn that chroot, it takes care of all the mucking around >>> required to get /dev, /proc and friends available to the container. >>> >>> The only mount I need to take care of myself is for $PKGDIR, which is >>> also available via NFS on the target box. >> >> Even with chroot and without without systemd, it pays to create a dead >> simple shell script that does all the mounting. You can even have that >> script itself exec chroot as the last step. > > That's what I do, only the script is even simpler now ;-) > > While containers are simpler, it is still easy to miss out a step, so a > script makes a lot of sense. > > OK, so now I curious to try this out too. I'd be interested in testing this script for a hardware system (situation) exactly identical to Mick. I do not use systemd. If someone wanted to post a script via gist (http://www.labnol.org/internet/github-gist-tutorial/) or elsewhere or privately or via private email, centric to openrc, I'd test it out, for a variety of final target image needs. Also any other scripts for arm64v8 builds on native arm64 systems would be of keen interest to me. I'd settle for a script for armv7 to use as a starting point. James