From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HAPit-0000TO-5r for mharc-grub-devel@gnu.org; Fri, 26 Jan 2007 06:58:27 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAPir-0000SJ-52 for grub-devel@gnu.org; Fri, 26 Jan 2007 06:58:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAPiq-0000Ro-52 for grub-devel@gnu.org; Fri, 26 Jan 2007 06:58:24 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAPip-0000Rh-Rs for grub-devel@gnu.org; Fri, 26 Jan 2007 06:58:23 -0500 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAPip-0005iA-9u for grub-devel@gnu.org; Fri, 26 Jan 2007 06:58:23 -0500 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id D789A3CD77479 for ; Fri, 26 Jan 2007 16:14:47 +0100 (CET) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id CDA433CD77478 for ; Fri, 26 Jan 2007 16:14:46 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Fri, 26 Jan 2007 12:58:20 +0100 User-Agent: KMail/1.8.2 References: <1169724331.3386.51.camel@pluto> In-Reply-To: <1169724331.3386.51.camel@pluto> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701261258.20645.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.350272, version=0.17.2 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] Making use of argp in GRUB utilities 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: Fri, 26 Jan 2007 11:58:25 -0000 On Thursday 25 January 2007 12:25, Lubomir Kundrak wrote: > I've noticed, that GRUB 2 uses argp in grub-emu [1], whereas other > utilities use getopt_long [2]. Wouldn't it be nice to make this > consistent? Maybe. > I find the "GNU way," argp, approach more elegant, as demonstrated by a > patch to util/i386/pc/grub-mkimage.c. Seeing a patch with more minuses > than pluses is a good sign, indeed. > > The main argument against agrp framework could be, that non-GNU C > libraries do not contain with it. There's a standalone libargp package > [3] that is available for package systems of all major operating > systems, including NetBSD and FreeBSD, so the only disadvantage is > addding a dependency there. I preferred that libargp would be included in our source tree so that it would be used when argp is not found in a system, but I guess Marco hasn't done it yet. This depends on which is more convenient for users, using an external shared library, or using our own. In GRUB Legacy, I included getopt for *BSD, and I got positive answers. So I feel that it would be better to include. Okuji