From owner-freebsd-stable Wed Jul 24 6:40:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30B0C37B400 for ; Wed, 24 Jul 2002 06:40:22 -0700 (PDT) Received: from mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79F8743E42 for ; Wed, 24 Jul 2002 06:40:21 -0700 (PDT) (envelope-from bts@fake.com) Received: from this.is.fake.com ([66.26.254.93]) by mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Wed, 24 Jul 2002 09:34:33 -0400 Received: by this.is.fake.com (Postfix, from userid 111) id AC42CBA12; Wed, 24 Jul 2002 09:34:12 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: "Brian T. Schellenberger" To: Jamie Bowden , Jonathan Chen Subject: Re: make world considered harmful Date: Wed, 24 Jul 2002 09:34:11 -0400 User-Agent: KMail/1.4.2 Cc: Barney Wolff , freebsd-stable@FreeBSD.ORG References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200207240934.11857.bts@babbleon.org> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 24 July 2002 07:01 am, Jamie Bowden wrote: | On Wed, 24 Jul 2002, Jonathan Chen wrote: | :On Tue, Jul 23, 2002 at 03:49:04AM -0700, Jamie Bowden wrote: | :> On Mon, 22 Jul 2002, Barney Wolff wrote: | :> :But there's nothing right with it, either. Is the demonstrated risk | :> :of people using it inappropriately really worth not having to type | :> : make buildworld && make installworld | :> :in the few cases where it's safe? I claim not. | :> | :> # $FreeBSD: src/Makefile,v 1.234.2.14 2002/07/16 18:36:19 ru Exp $ | :> # | :> # The user-driven targets are: | :> # | :> # buildworld - Rebuild *everything*, including glue to help do | :> # upgrades. | :> # installworld - Install everything built by "buildworld". | :> # world - buildworld + installworld. | :> | :> Perhaps I'm missing something, but 'make world' appears to do nothing | :> more than you've done above in fewer keystrokes. | : | :Except for the fact that if the new kernel doesn't like your system, | :you're SOL with out-of-sync userland. | | And this is different than 'make buildworld && make installworld' in what | way exactly? If the inline Makefile documentation is correct, which I've | assumed it is, then there is no functional difference. True. None whatsoever. However, both are (somewhat) dangerous. Better is to make buildworld make kernel reboot [see if the kernel is sane before . . .] make installworld mergemaster That way if the new kernel is bad, you still have time to repair it with your old, known-to-be-working world. If you do the whole world at once and it's bad, you are looking at re-installing from scratch. The point of removing the target is that it removes part of the temptation to so endanger yourself. Personally, I think it would be better to remove it; for those who dislike typing and don't mind endangering their system, it would be better to have instead a make universe or something that does the whole sequence (albiet without rebooting): make buildworld + make kernel + make installworld + mergemaster I have the impression from some posts that there are some who (mistakenly) believe that make world does pretty much this same thing, which is another strike against it. -- Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message