patched to fix installation of locales in /boot/grub/locale directory [release 2.04-2mamba;Sun Dec 22 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 23:28:53 +01:00
parent e02b2cfc57
commit 6be92a1248
2 changed files with 46 additions and 24 deletions

View File

@ -0,0 +1,20 @@
--- grub-2.04/util/grub-install-common.c.orig 2019-12-22 22:28:32.286000000 +0100
+++ grub-2.04/util/grub-install-common.c 2019-12-22 22:25:23.601000000 +0100
@@ -598,7 +598,7 @@
grub_util_fd_closedir (d);
}
-#if !(defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
+#if (defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
static const char *
get_localedir (void)
{
@@ -659,7 +659,7 @@
grub_install_copy_nls(const char *src __attribute__ ((unused)),
const char *dst __attribute__ ((unused)))
{
-#if !(defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
+#if (defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
char *dst_locale;
dst_locale = grub_util_path_concat (2, dst, "locale");

View File

@ -4,7 +4,7 @@
Name: grub Name: grub
Epoch: 2 Epoch: 2
Version: 2.04 Version: 2.04
Release: 1mamba Release: 2mamba
Summary: A Multiboot boot loader derived from GRUB, the GRand Unified Bootloader Summary: A Multiboot boot loader derived from GRUB, the GRand Unified Bootloader
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
@ -31,6 +31,7 @@ Patch10: grub-2.00-flex-2.5.37.patch
Patch11: grub-2.00-gcc-4.5.patch Patch11: grub-2.00-gcc-4.5.patch
Patch12: grub-2.02_beta3-openmamba-default-nomodeset.patch Patch12: grub-2.02_beta3-openmamba-default-nomodeset.patch
Patch13: grub-2.02-silent-boot.patch Patch13: grub-2.02-silent-boot.patch
Patch14: grub-2.04-fix-enable-nls-install-locale-dir.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -53,7 +54,7 @@ BuildRequires: flex
BuildRequires: dejavu-fonts-ttf BuildRequires: dejavu-fonts-ttf
BuildRequires: libzfs-devel BuildRequires: libzfs-devel
Requires: gettext Requires: gettext
%ifnarch x86_64 %ifnarch x86_64 aarch64
Requires: vbetest Requires: vbetest
%endif %endif
Requires(post):%{__install_info} Requires(post):%{__install_info}
@ -71,7 +72,9 @@ Briefly, boot loader is the first software program that runs when a computer sta
Summary: GRUB Multiboot boot loader build for EFI Summary: GRUB Multiboot boot loader build for EFI
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%ifnarch aarch64
Requires: efibootmgr Requires: efibootmgr
%endif
Provides: grub2-efi Provides: grub2-efi
Obsoletes: grub2-efi Obsoletes: grub2-efi
@ -91,18 +94,18 @@ GNU GRUB is a Multiboot boot loader. It was derived from GRUB, GRand Unified Boo
Briefly, boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel software (such as the Hurd or the Linux). The kernel, in turn, initializes the rest of the operating system (e.g. GNU). Briefly, boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel software (such as the Hurd or the Linux). The kernel, in turn, initializes the rest of the operating system (e.g. GNU).
This package contains the efi boot files needed to boot according to EFI standard. This package contains the efi boot files needed to boot according to EFI standard.
%debug_package
%prep %prep
%setup -q -n grub-%{majver} %setup -q -n grub-%{majver}
#-D -T #-D -T
#:<< _EOF #:<< _EOF
%patch1 -p1 %patch1 -p1
#%patch2 -p1
%patch3 -p1 %patch3 -p1
%patch9 -p1 %patch9 -p1
#%patch10 -p0
#%patch11 -p1
%patch12 -p1 %patch12 -p1
%patch13 -p1 %patch13 -p1
%patch14 -p1
gunzip -c %{SOURCE1} > unifont.bdf gunzip -c %{SOURCE1} > unifont.bdf
@ -113,14 +116,16 @@ ld -v | grep "gold" && {
} }
sh ./linguas.sh sh ./linguas.sh
./autogen.sh
%build %build
#:<< _EOF #:<< _EOF
./autogen.sh
# WARNING: build requires ld.bfd; ld.gold produces not working binary # WARNING: build requires ld.bfd; ld.gold produces not working binary
%configure \ %configure \
%ifarch x86_64 %{ix86}
--with-platform="pc" \ --with-platform="pc" \
--target="i386" \ --target="i386" \
%endif
--libdir=%{_prefix}/lib \ --libdir=%{_prefix}/lib \
%ifarch x86_64 %ifarch x86_64
--enable-efiemu \ --enable-efiemu \
@ -279,7 +284,7 @@ fi
%files -f grub.lang %files -f grub.lang
%defattr(-,root,root) %defattr(-,root,root)
%config %{_sysconfdir}/default/grub %config(noreplace) %{_sysconfdir}/default/grub
%config(noreplace) %{_sysconfdir}/sysconfig/grub %config(noreplace) %{_sysconfdir}/sysconfig/grub
%dir %{_sysconfdir}/grub.d %dir %{_sysconfdir}/grub.d
%{_sysconfdir}/grub.d/00_header %{_sysconfdir}/grub.d/00_header
@ -309,9 +314,6 @@ fi
%{_bindir}/grub-mkrescue %{_bindir}/grub-mkrescue
%{_bindir}/grub-mkstandalone %{_bindir}/grub-mkstandalone
%{_bindir}/grub-render-label %{_bindir}/grub-render-label
%ifnarch x86_64
%{_bindir}/grub-mount
%endif
%{_bindir}/grub-script-check %{_bindir}/grub-script-check
%{_bindir}/grub-syslinux2cfg %{_bindir}/grub-syslinux2cfg
%{_sbindir}/grub-bios-setup %{_sbindir}/grub-bios-setup
@ -337,20 +339,9 @@ fi
%{_datadir}/grub/themes/starfield/* %{_datadir}/grub/themes/starfield/*
%{_infodir}/grub-dev.info.gz %{_infodir}/grub-dev.info.gz
%dir %{_prefix}/lib/grub %dir %{_prefix}/lib/grub
%ifarch x86_64 %{ix86}
%dir %{_prefix}/lib/grub/i386-pc %dir %{_prefix}/lib/grub/i386-pc
%{_prefix}/lib/grub/i386-pc/config.h %{_prefix}/lib/grub/i386-pc/*
%{_prefix}/lib/grub/i386-pc/gdb_grub
%{_prefix}/lib/grub/i386-pc/gmodule.pl
%{_prefix}/lib/grub/i386-pc/kernel.exec
%{_prefix}/lib/grub/i386-pc/modinfo.sh
%{_prefix}/lib/grub/i386-pc/*.image
%{_prefix}/lib/grub/i386-pc/*.img
%{_prefix}/lib/grub/i386-pc/*.lst
%{_prefix}/lib/grub/i386-pc/*.mod
%{_prefix}/lib/grub/i386-pc/*.module
%ifarch x86_64
%{_prefix}/lib/grub/i386-pc/efiemu32.o
%{_prefix}/lib/grub/i386-pc/efiemu64.o
%endif %endif
%{_mandir}/man1/grub*.1.gz %{_mandir}/man1/grub*.1.gz
%{_mandir}/man8/grub*.8.gz %{_mandir}/man8/grub*.8.gz
@ -358,21 +349,32 @@ fi
%doc AUTHORS COPYING %doc AUTHORS COPYING
#% doc ChangeLog NEWS README THANKS TODO #% doc ChangeLog NEWS README THANKS TODO
%ifarch %{ix86} %ifarch %{ix86} aarch64
%files efi %files efi
%defattr(-,root,root) %defattr(-,root,root)
%dir /boot/efi %dir /boot/efi
%ifarch %{ix86}
%dir %{_prefix}/lib/grub/i386-efi %dir %{_prefix}/lib/grub/i386-efi
%{_prefix}/lib/grub/i386-efi/* %{_prefix}/lib/grub/i386-efi/*
%endif %endif
%ifarch aarch64
%dir %{_prefix}/lib/grub/arm64-efi
%{_prefix}/lib/grub/arm64-efi/*
%endif
%endif
%ifarch x86_64 %{ix86}
%files efi-x86_64 %files efi-x86_64
%defattr(-,root,root) %defattr(-,root,root)
%dir /boot/efi %dir /boot/efi
%dir %{_prefix}/lib/grub/x86_64-efi %dir %{_prefix}/lib/grub/x86_64-efi
%{_prefix}/lib/grub/x86_64-efi/* %{_prefix}/lib/grub/x86_64-efi/*
%endif
%changelog %changelog
* Sun Dec 22 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.04-2mamba
- patched to fix installation of locales in /boot/grub/locale directory
* Fri Jul 05 2019 Automatic Build System <autodist@mambasoft.it> 2.04-1mamba * Fri Jul 05 2019 Automatic Build System <autodist@mambasoft.it> 2.04-1mamba
- automatic version update by autodist - automatic version update by autodist