grub: add a patch to ignore gettext errors (via Ubuntu).

This commit is contained in:
Juan RP 2013-01-16 19:03:16 +01:00
parent ab3a81e417
commit 34a5d6a4e7
3 changed files with 25 additions and 9 deletions

View File

@ -3,9 +3,6 @@
noarch=yes
depends="grub>=$version dosfstools efibootmgr"
short_desc="${short_desc} -- x86_64 EFI support"
long_desc="${long_desc}
This package contains supports for x86_64 EFI booting."
do_install() {
vmove usr/lib/grub/x86_64-efi usr/lib/grub

View File

@ -0,0 +1,24 @@
Description: Silence error messages when translations are unavailable
Author: Colin Watson <cjwatson@ubuntu.com>
Bug: https://savannah.gnu.org/bugs/?35880
Last-Update: 2012-09-06
Index: grub-core/gettext/gettext.c
===================================================================
--- grub-core/gettext/gettext.c
+++ grub-core/gettext/gettext.c
@@ -412,6 +412,14 @@
grub_free (lang);
}
+
+ /* If no translations are available, fall back to untranslated text. */
+ if (err == GRUB_ERR_FILE_NOT_FOUND)
+ {
+ grub_errno = GRUB_ERR_NONE;
+ return 0;
+ }
+
return err;
}

View File

@ -1,23 +1,18 @@
# Template file for 'grub'
pkgname=grub
version="2.00"
revision=8
revision=9
short_desc="GRand Unified Bootloader 2"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.gnu.org/software/grub/"
distfiles="$GNU_SITE/grub/grub-$version.tar.xz"
checksum=784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458
long_desc="
This is GRUB 2, the second version of the GRand Unified Bootloader.
GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more
robust, more powerful, and more portable."
makedepends="flex libusb-compat-devel ncurses-devel freetype-devel
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
depends="os-prober"
conf_files="/etc/default/grub /etc/grub.d/40_custom"
if [ "$XBPS_MACHINE" = "x86_64" ]; then