From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mqsnh-0003lG-2e for mharc-grub-devel@gnu.org; Thu, 24 Sep 2009 14:12:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mqsnf-0003l4-4w for grub-devel@gnu.org; Thu, 24 Sep 2009 14:12:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqsna-0003ka-CU for grub-devel@gnu.org; Thu, 24 Sep 2009 14:12:14 -0400 Received: from [199.232.76.173] (port=41540 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqsna-0003kS-1X for grub-devel@gnu.org; Thu, 24 Sep 2009 14:12:10 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:64144) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqsnZ-0008Sf-Gk for grub-devel@gnu.org; Thu, 24 Sep 2009 14:12:09 -0400 Received: from [85.180.22.250] (e180022250.adsl.alicedsl.de [85.180.22.250]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MMYL0-1Mkomk0G3a-007oQD; Thu, 24 Sep 2009 20:12:08 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <4ABBB3EC.9050505@castlejones.net> References: <875790.2323.qm@web112116.mail.gq1.yahoo.com> <4AB9C1D1.9040004@gmail.com> <20090924120921.GE4558@thorin> <4ABBB3EC.9050505@castlejones.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 24 Sep 2009 20:12:06 +0200 Message-Id: <1253815926.2845.64.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V01U2FsdGVkX1+BQxSknj//wsiUOJXgeg2TJC9U859sMJlxwGi VjiusW5Z7MBMIkCzM7/q2ZmhRtlqZMr3DVCi412p6gchwxAhfL uT06HaD7XCFHTR/+BgJvg== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: grub-install for FreeBSD 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: Thu, 24 Sep 2009 18:12:15 -0000 Am Donnerstag, den 24.09.2009, 11:01 -0700 schrieb Brian R. Jones: > Robert Millan wrote: > > On Wed, Sep 23, 2009 at 08:36:01AM +0200, Vladimir 'phcoder' Serbinenko= wrote: > >> Andrey Shuvikov wrote: > >>> Hello, > >>> > >>> I tried to install Grub2 under FreeBSD but grub-install failed becaus= e readlink doesn't understand -f and stat doesn't have -c. I edited grub-mk= config_lib.in to use different commands instead. I'm not sure it's the righ= t way to handle this difference but it worked. The patch is attached. > >>> > >>> =20 > >> We're aware of this problem. Felix Zielcke has a solution but at this > >> point it's deemed too intrusive. We'll probably commit it once feature > >> freeze is over > >=20 > > Alternatively, I could also allow a patch that checks the capabilities = of > > those commands. It should try readlink first, and fallback to greadlin= k > > if necessary. > >=20 >=20 >=20 > Not sure if Felix's patch covers it, but there is also a problem with the= =20 > 'sed' syntax in 10_freebsd and 30_os-prober. It turns out that freebsd=20 > 'sed' is quite retarded (at least in 7.2) and doesn't know that '\t' is=20 > supposed to be tab. Replacing 'sed' with 'gsed' or 'perl -p' fixes this = issue. No it doestn't. Autoconf has an AC_PROG_SED macro which checks for a POSIX sed. http://www.gnu.org/software/autoconf/manual/html_node/Limitations-of-Usual-= Tools.html#sed Portable sed regular expressions should use =E2=80=98\=E2=80=99 only to esc= ape characters in the string =E2=80=98$()*.0123456789[\^n{}=E2=80=99 If I understand that right, POSIX doestn't mandate \t so it wouldn't help us. > Where would I go to view Felix's path? I am concerned because freebsd al= so=20 > has a 'gstat' command that does not work either. Only by installing the=20 > coreutils and pointing explicitly at the coreutils version of gstat did I= =20 > get this to work. http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00749.html --=20 Felix Zielcke Proud Debian Maintainer