SHA256
1
0
forked from pool/grub2

Accepting request 127110 from devel:openSUSE:Factory

fix efi sub-package. It should be working now.

OBS-URL: https://build.opensuse.org/request/show/127110
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=39
This commit is contained in:
Stephan Kulow 2012-07-04 20:12:58 +00:00 committed by Git OBS Bridge
parent 8440629747
commit b5d15a51b9
3 changed files with 113 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 4 06:20:23 UTC 2012 - mchang@suse.com
- add use-grub2-efi-as-a-package-name.patch (bnc#769916)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 29 10:02:08 UTC 2012 - dvaleev@suse.com Fri Jun 29 10:02:08 UTC 2012 - dvaleev@suse.com

View File

@ -84,6 +84,7 @@ Patch4: grub2-linux-submenu.patch
Patch6: grub2-iterate-and-hook-for-extended-partition.patch Patch6: grub2-iterate-and-hook-for-extended-partition.patch
Patch7: grub2-install-opt-skip-fs-probe.patch Patch7: grub2-install-opt-skip-fs-probe.patch
Patch8: grub2-ppc-terminfo.patch Patch8: grub2-ppc-terminfo.patch
Patch99: use-grub2-efi-as-a-package-name.patch
PreReq: perl-Bootloader PreReq: perl-Bootloader
Requires: gettext-runtime Requires: gettext-runtime
Requires: os-prober Requires: os-prober
@ -145,6 +146,9 @@ cd ..
cp %{SOURCE3} grub-%{version}/ cp %{SOURCE3} grub-%{version}/
%ifarch %{efi} %ifarch %{efi}
(cp -a grub-%{version} grub-efi-%{version}) (cp -a grub-%{version} grub-efi-%{version})
cd grub-efi-%{version}
%patch99 -p1
cd ..
%endif %endif
%build %build
@ -161,7 +165,7 @@ export CFLAGS CXXFLAGS FFLAGS
--target=%{_target_platform} \ --target=%{_target_platform} \
--with-platform=efi \ --with-platform=efi \
--program-transform-name=s,grub,%{name}-efi, --program-transform-name=s,grub,%{name}-efi,
make %{?_smp_mflags} pkglibdir=%{_libdir}/%{name}-efi pkgdatadir=%{_datadir}/%{name}-efi make %{?_smp_mflags}
%ifarch %{ix86} %ifarch %{ix86}
%define grubefiarch i386-efi %define grubefiarch i386-efi
%else %else
@ -205,7 +209,7 @@ make %{?_smp_mflags}
%install %install
%ifarch %{efi} %ifarch %{efi}
cd grub-efi-%{version} cd grub-efi-%{version}
make DESTDIR=$RPM_BUILD_ROOT pkglibdir=%{_libdir}/%{name}-efi pkgdatadir=%{_datadir}/%{name}-efi install make DESTDIR=$RPM_BUILD_ROOT install
# Ghost config file # Ghost config file
install -d $RPM_BUILD_ROOT/boot/%{name}-efi install -d $RPM_BUILD_ROOT/boot/%{name}-efi
@ -217,6 +221,7 @@ install -m 755 grub.efi $RPM_BUILD_ROOT/boot/efi/EFI/opensuse/grub.efi
rm $RPM_BUILD_ROOT/%{_libdir}/%{name}-efi/*/*.h rm $RPM_BUILD_ROOT/%{_libdir}/%{name}-efi/*/*.h
rm $RPM_BUILD_ROOT%{_datadir}/%{name}-efi/*.h rm $RPM_BUILD_ROOT%{_datadir}/%{name}-efi/*.h
%find_lang %{name}-efi
cd .. cd ..
%endif %endif
@ -345,7 +350,7 @@ fi
%ifarch %{efi} %ifarch %{efi}
%files efi %files efi -f grub-efi-%{version}/%{name}-efi.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir /boot/efi %dir /boot/efi
%dir /boot/efi/EFI %dir /boot/efi/EFI

View File

@ -0,0 +1,100 @@
From: Michael Chang <mchang@gmail.com>
Date: Wed, 4 Jun 2012 18:33:52 +0800
Subject: [PATCH] use grub2-efi as a package name
References: bnc#769916
Patch-Mainline: no
Use grub2-efi as package name when building grub2-efi package, this
fixes inconsistent @PACKAGE@ used by the scripts, for example.
Just fix those scripts one-by-one is probably not a good idea and
maybe tedious, as we can't know how many potential problem related
with it, better use same approach building grub2 to prevent such
discrete result.
Index: grub-2.00/configure
===================================================================
--- grub-2.00.orig/configure
+++ grub-2.00/configure
@@ -558,10 +558,10 @@ MFLAGS=
MAKEFLAGS=
# Identity of this package.
-PACKAGE_NAME='GRUB2'
-PACKAGE_TARNAME='grub2'
+PACKAGE_NAME='GRUB2-EFI'
+PACKAGE_TARNAME='grub2-efi'
PACKAGE_VERSION='2.00'
-PACKAGE_STRING='GRUB2 2.00'
+PACKAGE_STRING='GRUB2-EFI 2.00'
PACKAGE_BUGREPORT='bug-grub@gnu.org'
PACKAGE_URL=''
@@ -1904,7 +1904,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures GRUB2 2.00 to adapt to many kinds of systems.
+\`configure' configures GRUB2-EFI 2.00 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1952,7 +1952,7 @@ Fine tuning of the installation director
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/grub2]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/grub2-efi]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
@@ -1975,7 +1975,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of GRUB2 2.00:";;
+ short | recursive ) echo "Configuration of GRUB2-EFI 2.00:";;
esac
cat <<\_ACEOF
@@ -2108,7 +2108,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-GRUB2 configure 2.00
+GRUB2-EFI configure 2.00
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -2812,7 +2812,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by GRUB2 $as_me 2.00, which was
+It was created by GRUB2-EFI $as_me 2.00, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
@@ -3789,7 +3789,7 @@ fi
# Define the identity of the package.
- PACKAGE='grub2'
+ PACKAGE='grub2-efi'
VERSION='2.00'
Index: grub-2.00/configure.ac
===================================================================
--- grub-2.00.orig/configure.ac
+++ grub-2.00/configure.ac
@@ -32,7 +32,7 @@ dnl type, so there is no conflict. Varia
dnl (such as TARGET_CC, TARGET_CFLAGS, etc.) are used for the target
dnl type.
-AC_INIT([GRUB2],[2.00],[bug-grub@gnu.org])
+AC_INIT([GRUB2-EFI],[2.00],[bug-grub@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])