From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Iqy9Q-0001kB-Jk for mharc-grub-devel@gnu.org; Sat, 10 Nov 2007 16:46:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iqy9P-0001id-6d for grub-devel@gnu.org; Sat, 10 Nov 2007 16:45:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iqy9L-0001fH-TN for grub-devel@gnu.org; Sat, 10 Nov 2007 16:45:58 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iqy9L-0001f5-PV for grub-devel@gnu.org; Sat, 10 Nov 2007 16:45:55 -0500 Received: from mailout07.sul.t-online.de ([194.25.134.83] helo=mailout07.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iqy9L-0001fQ-GB for grub-devel@gnu.org; Sat, 10 Nov 2007 16:45:55 -0500 Received: from fwd34.aul.t-online.de by mailout07.sul.t-online.com with smtp id 1Iqy9K-0007tR-03; Sat, 10 Nov 2007 22:45:54 +0100 Received: from [10.3.2.2] (EfvNDTZDQhvkIL+IMG1fu8VYxY+jRcRaRLwo2z0B+7gxNcv+SUuBiXYEgH4mnmUQAb@[217.235.209.207]) by fwd34.aul.t-online.de with esmtp id 1Iqy9C-1fF2Su0; Sat, 10 Nov 2007 22:45:46 +0100 Message-ID: <47362686.6030407@t-online.de> Date: Sat, 10 Nov 2007 22:45:42 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: The development of GRUB 2 References: <4735CDA9.4060501@t-online.de> <87wssqf39h.fsf@xs4all.nl> In-Reply-To: <87wssqf39h.fsf@xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: EfvNDTZDQhvkIL+IMG1fu8VYxY+jRcRaRLwo2z0B+7gxNcv+SUuBiXYEgH4mnmUQAb X-TOI-MSGID: dfc42864-ba4b-440e-814c-ff1f1801af87 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] Use getopt_long() instead of argp_parse() in grub-emu 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: Sat, 10 Nov 2007 21:45:59 -0000 Marco Gerards wrote: > Christian Franke writes: > > >> Unlike the other GRUB2 utils, grub-emu uses the glibc extension >> argp_parse(). It is unavailable on Cygwin, which might also be the >> case for other platforms where glibc is not the native runtime. >> > > This has been brought up before, BSD has the same problem. The > outcome of the discussion was (IIRC) that we will use argp. When argp > is not available we can use gnulib or a standalone argp parser > ("argp-standalone") to support this. In that case it will mean > changing configure.ac. > > Will argp_parse() be a pre-requisite for building GRUB2 or will argp-standalone be included (some other projects do) ? If you really want argp, why is it used only for the few trivial options of grub-emu ? The other utils still use getopt_long(). grub-emu does not benefit much from argp, but introduces another portability issue. Christian