From owner-freebsd-current Thu Oct 25 23:52:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from hawk.prod.itd.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 5863F37B401 for ; Thu, 25 Oct 2001 23:52:38 -0700 (PDT) Received: from dialup-209.245.128.14.dial1.sanjose1.level3.net ([209.245.128.14] helo=mindspring.com) by hawk.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 15x0r6-0001If-00; Thu, 25 Oct 2001 23:52:37 -0700 Message-ID: <3BD9086A.54460841@mindspring.com> Date: Thu, 25 Oct 2001 23:53:30 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Gerhard Sittig Cc: current Subject: Re: RELENG_4 builds on -current References: <20011022142401.A3569@xor.obsecurity.org> <008701c15a9d$0805aec0$0a9811cb@gccs.com.au> <20011022142401.A3569@xor.obsecurity.org> <200110250027.f9P0RB736961@harmony.village.org> <20011025221011.E97313@shell.gsinet.sittig.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Gerhard Sittig wrote: > > On Wed, Oct 24, 2001 at 18:27 -0600, Warner Losh wrote: > > > > At timing solutions, we build all our products in a chroot jail. [...] > > > > We don't build RELEASES in the chroot. We build a system (make world > > DESTDIR=xxx outside of the chroot) that we then use to build the > > system (inside the chroot). > > What I've always been wondering since Kris first mentioned this > technique in the thread's course (building -STABLE in a jail on > a -RELEASE host or vice versa, IIUC) was the following: There's > the host's kernel serving a differing world's userland. We all > know what's the usual answer to "I just updated my kernel and > now -- insert whatever you please -- stopped working. :) What > did I miss? Or is it plain luck when things just work and one > shouldn't ask why they do? :> I have a 10k shell script for doing this. It copies in all the stuff from the parent system which is important to match to the real kernel, including /kernel, the "ps" program, and basically all other programs that open /dev/kmem or link against libkvm. That means that the build environment works like the host system for all important commands, but acts like the target system for compilation, etc.. It can also copy in and install a list of packages. Basically, it operates off a tarball which is DISC 2. It also uses chroot (not jail, though I suspect he just meant chroot). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message