From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XufiB-0001Gn-Ad for mharc-grub-devel@gnu.org; Sat, 29 Nov 2014 05:57:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xufi3-0001Ga-3i for grub-devel@gnu.org; Sat, 29 Nov 2014 05:57:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xufhw-0008Ks-BH for grub-devel@gnu.org; Sat, 29 Nov 2014 05:57:03 -0500 Received: from mout.gmx.net ([212.227.15.15]:61300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xufhw-0008Kk-1J for grub-devel@gnu.org; Sat, 29 Nov 2014 05:56:56 -0500 Received: from scdbackup.webframe.org ([93.221.135.156]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Mgc0l-1Xa80n3fWB-00O1xe for ; Sat, 29 Nov 2014 11:56:55 +0100 Date: Sat, 29 Nov 2014 11:55:30 +0100 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: About the CLI of both grub-mkrescue versions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <20141129083827.2832cebc@opensuse.site> In-Reply-To: <20141129083827.2832cebc@opensuse.site> Message-Id: <23046551324958644087@scdbackup.webframe.org> X-Provags-ID: V03:K0:ZVCUZnszplN196RX+5YCCUPkHf6hbIlFFIxBLsRm4upS1IlmnNR OxF/1x0ZQ0HBT414C0zWZM6onUuDkaG7fGnXyqQg7tsdRuMd3vRCRhDwpXgQ6myjkVTzEaB haLbwB4ItOl4tS/9R+IpfoKSDl0OqJoGi1PpNmFduF64eZtQSovcpMsS8m7vJVfynGUJwsI 98QUxXZU/hAX59h2CdsBg== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 10:57:09 -0000 Hi, Vladimir Serbinenko: > I think that old parser is better. The only reason the change happened > is that it's a bug that sneaked in during migration to C. It should be > fixed. Andrei Borzenkov: > [...] Nor do I actually like "pass anything you > do not understand" - it has potential to break if grub-mkrescue gets > new options. I agree that it is a bug to make incompatible changes to the grub-mkirescue CLI. But i also agree that this CLI is sub-optimal in respect to future compatibility. It's just that i do not deem sub-optimality a valid excuse for breaking interfaces. Therefore my proposal to freeze grub-mkrescue CLI and to have a new CLI with a new program name, while maintaining a common backend for both CLI parsers. > It is near to impossible to emulate old behavior using argp What would be the advantage of using argp for the old CLI ? The C version of the old CLI has the goal to be as compatible as possible. It is straightforward to translate the shell code of grub-mkrescue.in into equivalent C code. ------------------------------------------------------------- Regardless which parser implementation gets chosen, there remains the problem of the not yet implemented options from grub-mkrescue.in: > > printc (_("Not supported any more are:")); > > printc (_(" --modules , --grub-mkimage , --override-directory")); Are their use cases obsolete ? Shall their valid use cases be covered by other tools ? Have a nice day :) Thomas