From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MqsdI-0006sd-Fk for mharc-grub-devel@gnu.org; Thu, 24 Sep 2009 14:01:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqsdG-0006pM-Iv for grub-devel@gnu.org; Thu, 24 Sep 2009 14:01:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqsd9-0006aN-0h for grub-devel@gnu.org; Thu, 24 Sep 2009 14:01:27 -0400 Received: from [199.232.76.173] (port=35999 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqsd8-0006Zd-Jo for grub-devel@gnu.org; Thu, 24 Sep 2009 14:01:22 -0400 Received: from smtp105.biz.mail.mud.yahoo.com ([68.142.200.253]:47854) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mqsd6-0006f2-Fa for grub-devel@gnu.org; Thu, 24 Sep 2009 14:01:22 -0400 Received: (qmail 45098 invoked from network); 24 Sep 2009 18:01:19 -0000 Received: from unknown (HELO ?10.1.1.18?) (bjones@207.47.5.30 with plain) by smtp105.biz.mail.mud.yahoo.com with SMTP; 24 Sep 2009 18:01:19 -0000 X-Yahoo-SMTP: Bbwys1KswBD3337FUnZiIE55gVQORST4nEbCfAIFkrWpYxc- X-YMail-OSG: qu6XaVEVM1mdUl_1e6EtYrpizU29DIj1V6rnnvzWxNgWlnvpCLjVrLLFrq.hDkudfgWHH5E88z4Pv8X42mmwYG8GdbqNPMFjuboApnNR.2o3sCvQLotzPjg3nUScuGVlSq879pFxgsHzNLv414PtzeBZXle5Y5NJ0nut7PwMFyQsygS93BJD2l_npv4oFcJ2eGeOsWkcjSkxVUlkCQIhhAllpJ0uJisZrGbaGhasSzQpcQT5QVLIX0x5NNDyrPkJbMb2c1.B2sllLpdAji98P2rWRCS.OPrS8fZljs7.ECn3IPKIdx4xbTMomvB.K0RiSCVm7KoZWVCMMcupwMp46r5frUHjhkFfnhNTFY12QrsmGnntyiEa1o1cXw-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4ABBB3EC.9050505@castlejones.net> Date: Thu, 24 Sep 2009 11:01:16 -0700 From: "Brian R. Jones" Organization: dis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: The development of GRUB 2 References: <875790.2323.qm@web112116.mail.gq1.yahoo.com> <4AB9C1D1.9040004@gmail.com> <20090924120921.GE4558@thorin> In-Reply-To: <20090924120921.GE4558@thorin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:01:31 -0000 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 because readlink doesn't understand -f and stat doesn't have -c. I edited grub-mkconfig_lib.in to use different commands instead. I'm not sure it's the right way to handle this difference but it worked. The patch is attached. >>> >>> >> 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 > > Alternatively, I could also allow a patch that checks the capabilities of > those commands. It should try readlink first, and fallback to greadlink > if necessary. > Not sure if Felix's patch covers it, but there is also a problem with the 'sed' syntax in 10_freebsd and 30_os-prober. It turns out that freebsd 'sed' is quite retarded (at least in 7.2) and doesn't know that '\t' is supposed to be tab. Replacing 'sed' with 'gsed' or 'perl -p' fixes this issue. Where would I go to view Felix's path? I am concerned because freebsd also has a 'gstat' command that does not work either. Only by installing the coreutils and pointing explicitly at the coreutils version of gstat did I get this to work. -- --Brian