From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L1nmo-0000D0-99 for garchives@archives.gentoo.org; Sun, 16 Nov 2008 19:59:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC168E0375; Sun, 16 Nov 2008 19:59:57 +0000 (UTC) Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.156]) by pigeon.gentoo.org (Postfix) with ESMTP id 8C646E0374 for ; Sun, 16 Nov 2008 19:59:57 +0000 (UTC) Received: by yx-out-1718.google.com with SMTP id 4so997132yxp.46 for ; Sun, 16 Nov 2008 11:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Zj9n1DhPWuGcV8VQNLpAKKIOZ02uF3nWRyNjteQ1v2s=; b=S/7/MbVHJQRVbIHN0IYlCK1y+OpipVz9cdga6TDL8YUgG3CUG2Pwafx7d4bGsGwlHj dSCjDWTp/AoUZUnPlTJHxmEBctw5AGcx+nkAu0CGNR9f+Ea36wSO6IGMuoJZncyYwn0v k4TaK/5Ac6XpVA2eaVPFSZxICsqTeeNezhin4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=DdVycZi6w3DMaYK1+FcC+6V4Qw0i0Si8JkCMYMz8Y31MMgftTG4ZGCxGikT/eGVIIx 4J0UOKQFIhOGMjmzBHrhfX+T00/dLPY2vVc07P0mEZV7rqAasiWdSmUJKsEM2G34mcWj +xwyEBsLYYmLf2P3qBXileYef4oGgX8sPU9Kg= Received: by 10.64.210.3 with SMTP id i3mr100184qbg.30.1226865595349; Sun, 16 Nov 2008 11:59:55 -0800 (PST) Received: from ?192.168.2.19? (bas8-montreal02-1088791512.dsl.bell.ca [64.229.163.216]) by mx.google.com with ESMTPS id k27sm5529484qba.10.2008.11.16.11.59.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Nov 2008 11:59:54 -0800 (PST) Message-ID: <4920356D.3040300@gmail.com> Date: Sun, 16 Nov 2008 09:59:57 -0500 From: Simon User-Agent: Thunderbird 2.0.0.17 (X11/20080914) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Binary package cruncher? References: <491F09A2.7040506@gmail.com> <200811161205.53841.alan.mckinnon@gmail.com> In-Reply-To: <200811161205.53841.alan.mckinnon@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: b02a160d-f46e-4478-af40-82c25d007d0d X-Archives-Hash: 77c1670b7506be3131a40efcf288bf7f > I would build all that stuff in a chroot. The logic is that the your buildhost > system is not quite the same thing as the machine hosting the buildhost. That's the big trick I was thinking about... 1) Make a proper development environment under a chroot, place the "binworld" on top of world. 2) emerge -k -uDN world (this will install, in the chroot env all dependencies using previously built binpkgs, if those dependencies don't exist, they will be built and binpkg will be made for everything that is built) 3) un-chroot properly (unbind directories, etc) 4) delete the chroot directory containing installed dependencies, not relevant to the production environment This would build the packages and install nothing on the host. But I'm not sure if chroot is really proper for this... maybe I would have to use a unionfs to make sure that nothing gets overwritten in /lib or gets installed in the real /lib for example... After everything is built, i would just redo the `emerge -k -uDN world` on the host in the real production environment to update it. > One thing you cannot get away from is that to build say X for your slow > hardware, it has to be done on a machine that has all X's build dependencies > fully installed and working. You might not want that on your production > server. Some fancy tricks with bind-mounts into the chroot would let you > share common stuff. Or, you could simply buy a bit more storage if you are > running out. It's cheap enough and if you've gone to this much trouble > already, some more storage would be minor You're right and this is why I had installed X on my host, with all its deps, even though none of it was used. But using the chroot (and/or unionfs trick) I'd be able to build it with its deps without really installing it on the prod environment. However, diskspace on a VPS is very costly. For example, one extra GB is 2$/m... and with the cheapest VPS i have only 12GB now. I'm sure my full production environment would not move much higher than 4GB (without counting /usr/portage) while it probably is filling my disk now... So, basically, if gentoo is a meta-distribution, my host is "my" distribution and serves to build the packages that are then available to my PCs... Thanks, Simon