grub: add a patch to ignore gettext errors (via Ubuntu).
This commit is contained in:
parent
ab3a81e417
commit
34a5d6a4e7
|
@ -3,9 +3,6 @@
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="grub>=$version dosfstools efibootmgr"
|
depends="grub>=$version dosfstools efibootmgr"
|
||||||
short_desc="${short_desc} -- x86_64 EFI support"
|
short_desc="${short_desc} -- x86_64 EFI support"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains supports for x86_64 EFI booting."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/lib/grub/x86_64-efi usr/lib/grub
|
vmove usr/lib/grub/x86_64-efi usr/lib/grub
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
|
@ -1,23 +1,18 @@
|
||||||
# Template file for 'grub'
|
# Template file for 'grub'
|
||||||
pkgname=grub
|
pkgname=grub
|
||||||
version="2.00"
|
version="2.00"
|
||||||
revision=8
|
revision=9
|
||||||
short_desc="GRand Unified Bootloader 2"
|
short_desc="GRand Unified Bootloader 2"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
homepage="http://www.gnu.org/software/grub/"
|
homepage="http://www.gnu.org/software/grub/"
|
||||||
distfiles="$GNU_SITE/grub/grub-$version.tar.xz"
|
distfiles="$GNU_SITE/grub/grub-$version.tar.xz"
|
||||||
checksum=784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458
|
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
|
makedepends="flex libusb-compat-devel ncurses-devel freetype-devel
|
||||||
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
||||||
|
|
||||||
depends="os-prober"
|
depends="os-prober"
|
||||||
|
|
||||||
conf_files="/etc/default/grub /etc/grub.d/40_custom"
|
conf_files="/etc/default/grub /etc/grub.d/40_custom"
|
||||||
|
|
||||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
|
|
Loading…
Reference in New Issue