From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NQ02v-0005uf-M7 for mharc-grub-devel@gnu.org; Wed, 30 Dec 2009 10:01:09 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQ02u-0005u6-B2 for grub-devel@gnu.org; Wed, 30 Dec 2009 10:01:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQ02p-0005tP-5J for grub-devel@gnu.org; Wed, 30 Dec 2009 10:01:08 -0500 Received: from [199.232.76.173] (port=34401 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ02o-0005tL-W0 for grub-devel@gnu.org; Wed, 30 Dec 2009 10:01:03 -0500 Received: from iona.labri.fr ([147.210.8.143]:38809) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NQ02o-0006pS-At for grub-devel@gnu.org; Wed, 30 Dec 2009 10:01:02 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by iona.labri.fr (Postfix) with ESMTP id 1DC0B36B7A for ; Wed, 30 Dec 2009 16:01:01 +0100 (CET) X-Virus-Scanned: amavisd-new at labri.fr Received: from iona.labri.fr ([127.0.0.1]) by localhost (iona.labri.fr [127.0.0.1]) (amavisd-new, port 10027) with LMTP id P1MUCGWJJ0C7 for ; Wed, 30 Dec 2009 16:01:01 +0100 (CET) Received: from [192.168.1.50] (c2433-1-88-160-112-182.fbx.proxad.net [88.160.112.182]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by iona.labri.fr (Postfix) with ESMTP id E225D36B4E for ; Wed, 30 Dec 2009 16:01:00 +0100 (CET) Message-ID: <4B3B6B2D.70503@labri.fr> Date: Wed, 30 Dec 2009 16:01:01 +0100 From: =?ISO-8859-1?Q?Gr=E9goire_Sutre?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: The development of GNU GRUB Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Config file generation failure on Linux X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Wed, 30 Dec 2009 15:01:08 -0000 Hi, Config file generation with grub-mkconfig fails on Linux when grub is=20 not installed in the same prefix as gettext, since the script=20 util/grub.d/10_linux.in contains: . ${bindir}/gettext.sh A possible patch is given below, but there are surely other ways to deal=20 with it. The patch simply falls back to echo instead of gettext if the=20 gettext binary cannot be found. Thanks for your time, Gr=E9goire --- util/grub.d/10_linux.in.orig 2009-12-30 15:37:01.000000000 +0100 +++ util/grub.d/10_linux.in @@ -22,7 +22,12 @@ bindir=3D@bindir@ libdir=3D@libdir@ . ${libdir}/grub/grub-mkconfig_lib -. ${bindir}/gettext.sh +if $(which gettext >/dev/null 2>/dev/null) ; then + gettext=3D"gettext" +else + gettext=3D"echo" +fi + export TEXTDOMAIN=3D@PACKAGE@ export TEXTDOMAINDIR=3D@localedir@ @@ -54,9 +59,9 @@ linux_entry () recovery=3D"$3" args=3D"$4" if ${recovery} ; then - title=3D"$(gettext "%s, with Linux %s (recovery mode)")" + title=3D"$(${gettext} "%s, with Linux %s (recovery mode)")" else - title=3D"$(gettext "%s, with Linux %s")" + title=3D"$(${gettext} "%s, with Linux %s")" fi printf "menuentry \"${title}\" {\n" "${os}" "${version}" if [ -z "${prepare_boot_cache}" ]; then