From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QvAuh-0007ki-7W for garchives@archives.gentoo.org; Sun, 21 Aug 2011 16:30:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1116621C100; Sun, 21 Aug 2011 16:30:05 +0000 (UTC) Received: from mail.ukfsn.org (unknown [77.75.108.3]) by pigeon.gentoo.org (Postfix) with ESMTP id 91E8F21C0FA for ; Sun, 21 Aug 2011 16:27:59 +0000 (UTC) Received: from localhost (smtp-filter.ukfsn.org [192.168.54.205]) by mail.ukfsn.org (Postfix) with ESMTP id A39B0DEC80 for ; Sun, 21 Aug 2011 17:27:58 +0100 (BST) Received: from mail.ukfsn.org ([192.168.54.25]) by localhost (smtp-filter.ukfsn.org [192.168.54.205]) (amavisd-new, port 10024) with ESMTP id 3ANHqYDytEqI for ; Sun, 21 Aug 2011 17:31:43 +0100 (BST) Received: from wstn.localnet (unknown [78.32.181.186]) by mail.ukfsn.org (Postfix) with ESMTP id 783ADDEC78 for ; Sun, 21 Aug 2011 17:27:58 +0100 (BST) From: Peter Humphrey Organization: at home To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Hoping someone can help explain distcc to me Date: Sun, 21 Aug 2011 17:27:57 +0100 User-Agent: KMail/1.13.7 (Linux/2.6.39-gentoo-r3; KDE/4.6.5; x86_64; ; ) References: <201108211041.56704.peter@humphrey.ukfsn.org> <1522485.Prk91GPbbn@eve> In-Reply-To: <1522485.Prk91GPbbn@eve> 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 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201108211727.57834.peter@humphrey.ukfsn.org> X-Archives-Salt: X-Archives-Hash: a5ca5438a81be4aefa20c9d460e12295 On Sunday 21 August 2011 14:53:15 Joost Roeleveld wrote: > That would help as I'm planning on setting this up myself as well for my > netbook. Right. I have two Konsoles open on my workstation, which is the compilation host. In one I "su -" and in the other I "ssh serv" (this is the client Atom box, which among other things runs http-replicator to serve the portage tree to the LAN). Naming is going to get confusing if I'm not careful, so I'll refer to the ssh session as "Atom" and the compilation host as "Host". Then my steps are: Host: # /etc/init.d/atom start (this is the script I showed yesterday) # linux32 chroot /mnt/atom /bin/bash # env-update && . /etc/profile Atom: $ sudo emerge --sync && sudo eix-update Host: # emerge --sync && emerge -auvD -j 5 --changed-use --keep-going world Atom: $ sudo emerge -auDkv --jobs=3 --changed-use --with-bdeps y --keep-going world Host: (various clean-up operations such as depclean, eclean and localepurge) # exit # /etc/init.d/atom stop Atom: (similar cleaning up) $ exit That's it as far as I remember. > Is there a way to automate the steps inside the chroot without having to > have a script inside the chroot? I'd be reluctant to try to automate it any more than this. It's about as simple to use as can be and as I want it. I've set up aliases for most of those long commands to save my wrists, and of course command-line recall is wonderful. The task that takes longest is portage on the Atom calculating what packages it needs to emerge from. I try not to forget to copy any USE-flag changes etc between the Atom and the chroot, but of course I'm no more than human. -- Rgds Peter Linux Counter 5290, 1994-04-23