From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DECyh-00028m-Vr for mharc-grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DECyb-00025m-CI for grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DECyY-00023W-AU for grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DECyY-000238-1B for grub-devel@gnu.org; Wed, 23 Mar 2005 16:01:14 -0500 Received: from [128.2.4.170] (helo=silicon.club.cc.cmu.edu) by monty-python.gnu.org with smtp (Exim 4.34) id 1DEChb-0005Ar-9U for grub-devel@gnu.org; Wed, 23 Mar 2005 15:43:43 -0500 Received: (qmail 13030 invoked from network); 23 Mar 2005 20:43:41 -0000 Received: from tellurium.club.cc.cmu.edu (HELO laptop) (128.2.4.134) by silicon.club.cc.cmu.edu with SMTP; 23 Mar 2005 20:43:41 -0000 X-Mailer: exmh version 2.5 07/13/2001 (debian 2.5-1) with nmh-1.1-RC1 From: Brian Sammon To: The development of GRUB 2 In-Reply-To: Your message of "Tue, 22 Mar 2005 21:20:43 +0100." <200503222120.43235.okuji@enbug.org> References: <1111431300.423f1884b4a97@imp4-q.free.fr> <200503222120.43235.okuji@enbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Mar 2005 15:42:36 -0500 Message-Id: Subject: Re: Grub2 on Mac OS X 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: Wed, 23 Mar 2005 21:01:20 -0000 > > Here is a patch with the modifications I made. Please tell me if some of > > them are wrong. I hope I would help. > > Could you make a patch with -u? The standard diff format is too difficult for > me. > > I describe what I think are not appropriate in your patch: > > - memalign should not be just a macro. memalign is not the same as malloc. Antoine's post inspired me to investigate building grub2 on my OpenDarwin system. I have two comments so far: 1) The memalign issue can be avoided by not building grub-emu (and possibly doing something about grub-mkimage and grub-setup, which use util/misc.c but probably not memalign) On darwin-ppc, these programs will not be missed much (by the type of geek currently using grub2), since it's relatively easy to arrange to call grubof from OpenFirmware, and do the setup from there. On darwin-x86, the lack of these programs still leaves people with the option of using a grub floppy. 2) Perhaps you should switch from memalign to posix_memalign. There's better odds of convincing Apple to add posix_memalign to future releases of Darwin than with memalign. It appears that memalign is glibc-specific. Does {Free|Net|Open}BSD have memalign? Is anyone building grub2 on any of the BSDs?