From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VPGex-0004sZ-NS for mharc-grub-devel@gnu.org; Thu, 26 Sep 2013 14:51:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPGeq-0004qw-1J for grub-devel@gnu.org; Thu, 26 Sep 2013 14:51:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPGei-0002Or-K5 for grub-devel@gnu.org; Thu, 26 Sep 2013 14:51:23 -0400 Received: from mail-ea0-x233.google.com ([2a00:1450:4013:c01::233]:47409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPGei-0002Oj-Ct for grub-devel@gnu.org; Thu, 26 Sep 2013 14:51:16 -0400 Received: by mail-ea0-f179.google.com with SMTP id b10so756105eae.10 for ; Thu, 26 Sep 2013 11:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=lklremB4HO2kVnkafqXJxjyR5kxn3dzTTCbL3ely45Q=; b=G8hL/oekfgjPCFnUauW9zj7za7CMAP0Wvhgjb5NDnUWcf4zXdbFC79XSRrSeCFDcaX NVvW5owmrcu81OA0NjZagiBQkRtt/oFuzRMGQsun/AsD3abjkxUYf41ghnqnHH2qfVBI ApKDaaSIMXY1L84ceya0I6gHSQ+DWAo2mRVrs8oHEhfg7klOjwVRG42yPKdRYuVrX+5V aLK0NvTIOq6A2MvhvFb6zVnOy9Ppfp3Z5qdkDbiUsxu51G2baWJjXKO3pMwZpSWme3BS 8ua5YTnt/UTErkgSjimMT4NVRWlFritu7tvY6156fHRomtK97xLCDRcAdsOkV7RGtW2L FDsQ== X-Received: by 10.15.36.9 with SMTP id h9mr3614985eev.30.1380221475508; Thu, 26 Sep 2013 11:51:15 -0700 (PDT) Received: from [192.168.1.113] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id i1sm7178872eeg.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 11:51:15 -0700 (PDT) Message-ID: <52448222.4010608@gmail.com> Date: Thu, 26 Sep 2013 20:51:14 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130821 Icedove/17.0.8 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [RFC] grub-install C rewrite References: <524431E6.60807@gmail.com> <20130926133504.GQ13097@csclub.uwaterloo.ca> <6B80BB20-BE16-4296-9175-CBC0DD12D004@oracle.com> In-Reply-To: <6B80BB20-BE16-4296-9175-CBC0DD12D004@oracle.com> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2UWGBHXFDVMBTIARVHMHO" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::233 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: Thu, 26 Sep 2013 18:51:29 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2UWGBHXFDVMBTIARVHMHO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 26.09.2013 19:10, Seth Goldberg wrote: >=20 > Ditto here. I'd prefer it stay *sh. >=20 Even if it would mean to go with bash? Solaris was one of the worst platforms for making grub-install work there due to its very limited shell and standard tools behaving differently. Frankly I wouldn't be surprised if it got broken for solaris again. I see Solaris as one of platforms which can benefit a lot from this move.= > --S >=20 > On Sep 26, 2013, at 6:35 AM, Lennart Sorensen wrote: >=20 >> On Thu, Sep 26, 2013 at 03:08:54PM +0200, Vladimir '=CF=86-coder/phcod= er' Serbinenko wrote: >>> Hello, all. Recently I made some order in hostdisk.c and getroot.c >>> involving splitting in OS-specific parts. >>> In the same time I added WinAPI version of getroot/hostdisk allowing >>> grub-probe to work on windows natively >>> Also on-going is AROS-specific parts. >>> Windows and AROS are not friendly with bash. >>> The attempt to make both multiple files of same type work and handlin= g >>> whitespaces/newlines/... in filenames would result in very ugly code >>> with loads of evals. >>> Current code may have subtle assumptions on behaviour of common tools= >>> like sed and on locale (E.g. "[a-z]" doesn't cover u if locale is Est= onian). >>> So to check viability I rewrote grub-install in C. This is mostly pro= of >>> of concept with loads of FIXMEs but I could boot i386-pc install made= >>> with it. In many aspects (static variables, some tests, general >>> structure) it's reminiscent of sh version of grub-install it's based = on. >>> Some functionality is likely to stay OS-specific, e.g. executing >>> compressors or determining firmware. >>> >>> I'd like to know the opinion of other people on possible switchover. = If >>> switched then it'll have to be all grub-install, grub-mkrescue, >>> grub-mknetdir and grub-mkstandalone. >>> I'd like to hear from other people. >> >> Given the number of times I have had to edit grub-install in the past = to >> get it to work right on a powerpc machine (I think it is now working O= K), >> I would hate to have had that be C code. After all it really is mainl= y >> a wrapper around other grub tools. >> >> I think windows not having bash is a rather low priority to most peopl= e >> compared to actually be able to work with grub on the platforms where >> it is pretty much the only choice. >> >> So personally, based on my experience, I hate this idea. >> >> --=20 >> Len Sorensen >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 ------enig2UWGBHXFDVMBTIARVHMHO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlJEgiIACgkQNak7dOguQgm8lgD/RJ5we8IrY59sexJ23J9wvigW ZAfAGcmC7rl1oMzg8iMA/3bR1HvomyjLogbn9pBp2VolbYuBOksRKs2ufsXioKrL =xWbh -----END PGP SIGNATURE----- ------enig2UWGBHXFDVMBTIARVHMHO--