Date: Wed, 24 Jul 2002 09:34:11 -0400 From: "Brian T. Schellenberger" <bts@babbleon.org> To: Jamie Bowden <ragnar@sysabend.org>, Jonathan Chen <jonc@chen.org.nz> Cc: Barney Wolff <barney@tp.databus.com>, freebsd-stable@FreeBSD.ORG Subject: Re: make world considered harmful Message-ID: <200207240934.11857.bts@babbleon.org> In-Reply-To: <Pine.BSF.4.10.10207240357180.47292-100000@moo.sysabend.org> References: <Pine.BSF.4.10.10207240357180.47292-100000@moo.sysabend.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207240934.11857.bts>