Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1G9tSb-0004BE-Mi for mharc-grub-devel@gnu.org; Sun, 06 Aug 2006 20:59:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G9tSZ-00045u-Il for grub-devel@gnu.org; Sun, 06 Aug 2006 20:59:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G9tSX-00043Z-OZ for grub-devel@gnu.org; Sun, 06 Aug 2006 20:59:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9tSX-00043S-KJ for grub-devel@gnu.org; Sun, 06 Aug 2006 20:59:09 -0400 Received: from [207.69.195.65] (helo=pop-scotia.atl.sa.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G9tWe-0002kS-VQ for grub-devel@gnu.org; Sun, 06 Aug 2006 21:03:25 -0400 Received: from user-0vvde2g.cable.mindspring.com ([63.246.184.80] helo=[192.168.0.103]) by pop-scotia.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1G9tSW-0007DV-00 for grub-devel@gnu.org; Sun, 06 Aug 2006 20:59:08 -0400 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <20060805121612.GA15721@titanium.v3.ca> References: <20060805121612.GA15721@titanium.v3.ca> Content-Type: text/plain Date: Sun, 06 Aug 2006 19:59:06 -0500 Message-Id: <1154912346.27074.119.camel@diesel> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 7bit Subject: Re: Build environment X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2006 00:59:11 -0000 On Sat, 2006-08-05 at 05:16 -0700, Jeff Bailey wrote: > I'll start by saying that I have nothing but hate for the build > environment in grub2. In general I'd agree with that. > I realise that automake can be equally confusing in many ways, but it > has two main advantages: 1) Everyone knows it already, 2) Other people > are helping solve bugs with it. As far as I've seen, most projects using automake barely understand it. "Everyone knows it already" sounds like a huge overstatement to me. > Assuming that we're stuck with this, is it home grown or is there some > upstream project using it? The types of problems that I've seen: It seems to be some homegrown Ruby that Okuji wrote. > * No autodetection of Makefile snippet, to auto update them. No > generic rules to handle the updating when testing. > > * No obvious well to tell how it's getting to any given phase. No > documentation. > > * Dependancy generation is run too early. Initial dependancies are > broken. > > * No obvious way to add dependancies to specific files that need them. > > * Order in .mk files is important even for seemingly unrelated clauses. Adding or deleting files results in incredibly frustrating "can't find .d file" messages, even when trying to run "make clean"! That one has caused me a lot of aggravation. > The build system for grub2 just gets in the way of coding the program > itself. I have a working version of grub-emu now for hppa-ipl, but most > of my coding time has been spent staring at Makefiles, wondering how the > other targets work, and copying segments of .rmk files that are > essentially identical in other files. Done right, I suspect that I > could've done the port to this point in about 4 lines of Makefile > snippet. I agree, there is also a huge amount of duplication in the "mk" files. They can and should be refactored to simplify them. > I've hated the build system for years, and the fact that none of the > people in #grub seem to understand it either doesn't help. I've offered > to fix it up using the usual set of autotools a number of times, and the > offer still stands. I'm no fan of autotools. -Hollis