Received: from list by monty-python.gnu.org with archive (Exim 4.30) id 1B4TpE-0000FD-J1 for mharc-grub-devel@gnu.org; Fri, 19 Mar 2004 18:54:52 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B4TpA-00009s-Ry for grub-devel@gnu.org; Fri, 19 Mar 2004 18:54:48 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B4Tob-0008Be-RY for grub-devel@gnu.org; Fri, 19 Mar 2004 18:54:45 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4Tob-0008BX-Bf for grub-devel@gnu.org; Fri, 19 Mar 2004 18:54:13 -0500 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 532F185F1 for ; Sat, 20 Mar 2004 00:54:11 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 11949-03 for ; Sat, 20 Mar 2004 00:54:10 +0100 (CET) Received: from mail.han.nl (mail.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 1B60D83C9 for ; Sat, 20 Mar 2004 00:54:10 +0100 (CET) Received: from marco.marco-g.com (1Cust102.tnt37.rtm1.nld.da.uu.net [213.116.168.102]) by mail.han.nl (Postfix) with ESMTP id D28F4C045 for ; Sat, 20 Mar 2004 00:54:02 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <40595AA3.6000800@ciam.ru> <200403181331.51694.okuji@enbug.org> <405B64FB.4020109@ciam.ru> <87ish0cy4z.fsf@marco.marco-g.com> <405B6C8E.8070108@ciam.ru> <87ad2ccwaf.fsf@marco.marco-g.com> <405B812C.7080301@ciam.ru> From: Marco Gerards Date: Sat, 20 Mar 2004 00:55:36 +0100 In-Reply-To: <405B812C.7080301@ciam.ru> (Sergey Matveychuk's message of "Sat, 20 Mar 2004 02:24:28 +0300") Message-ID: <87wu5gbddz.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: GRUB2: *BSD and more patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.4 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: Fri, 19 Mar 2004 23:54:50 -0000 Sergey Matveychuk writes: > Here is a third version. Great! After reading your patch I found some other problems, sorry for not looking good enough the first time. Most problems I found are minor nitpicks. If it is ok for Okuji I can make the changes I proposed (and have a quick look at the changelog entry) and commit the patch. > -- > Sem. > diff -ruNp grub2/ChangeLog grub2.test/ChangeLog > --- grub2/ChangeLog Fri Mar 19 23:55:21 2004 > +++ grub2.test/ChangeLog Sat Mar 20 01:38:47 2004 > @@ -1,3 +1,19 @@ > +2004-03-15 Sergey Matveychuk > + > + * util/i386/pc/biosdisk.c: Added headers for BSD. Please say exactly what header files you are including. > + (pupa_util_biosdisk_get_pupa_dev): Do not call Please end a sentence with a ".". > + make_device_name(drive,-1-1) if not a block device. > + * util/i386/pc/getroot.c: Update copyright. No need to notice the copyright update when changing years. It is only required when changing the copyright holders (Correct me if I am wrong). > + (find_root_device): Do not check for a block device. > + * util/misc.c: Include malloc.h only if it's needed. > + (pupa_memalign): Change memalign() with malloc() where unavailable. > + * util/pupa-emu.c: Include malloc.h only if it's needed. > + (main): Move pupa_util_biosdisk_init() above pupa_guess_root_device(). I do not see the configure.ac changes in the changelog entry. Same for including config.h in misc.c. This is only what I noticed at first. Please make sure the changelog entries are complete. > -/* Define it to \"addr32\" or \"addr32;\" to make GAS happy */ > +/* Define it to "addr32" or "addr32;" to make GAS happy */ Why are you doing this? I assume this is what the autotools generated? > -/* Define it to \"data32\" or \"data32;\" to make GAS happy */ > +/* Define it to "data32" or "data32;" to make GAS happy */ Same here. > +AC_CHECK_HEADER(malloc.h) > +AC_CHECK_FUNC(memalign) This is what I meant, great! > +#if !defined(__FreeBSD__) > if (! S_ISBLK (st.st_mode)) > return make_device_name (drive, -1, -1); > +#endif make_device_name does not have to be called at all? > -#elif defined(__GNU__) > - /* GNU uses "/dev/[hs]d[0-9]+(s[0-9]+[a-z]?)?". */ > +#elif defined(__GNU__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) > + /* GNU uses "/dev/[ahsw]d[0-9]+(s[0-9]+[a-z]?)?". */ Is this comment correct? It says something about GNU, now you changed the regexp. so it matches *BSD as well. Thanks, Marco