Hello community,

here is the log from the commit of package perl-Bootloader for openSUSE:Factory 
checked in at 2013-07-09 20:55:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Bootloader (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Bootloader.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Bootloader"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Bootloader/perl-Bootloader.changes  
2013-02-26 15:23:42.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Bootloader.new/perl-Bootloader.changes     
2013-07-09 20:55:34.000000000 +0200
@@ -1,0 +2,10 @@
+Tue Jul  2 08:29:00 UTC 2013 - [email protected]
+
+- Enable grub2 installation on PowerPC 
+
+-------------------------------------------------------------------
+Tue Jul  2 08:18:58 UTC 2013 - [email protected]
+
+- Package grub2 for PowerPC 
+
+-------------------------------------------------------------------

New:
----
  grub2-on-powerpc.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Bootloader.spec ++++++
--- /var/tmp/diff_new_pack.2tO4ke/_old  2013-07-09 20:55:35.000000000 +0200
+++ /var/tmp/diff_new_pack.2tO4ke/_new  2013-07-09 20:55:35.000000000 +0200
@@ -19,14 +19,15 @@
 Name:           perl-Bootloader
 Version:        0.708
 Release:        0
-Requires:       perl-base = %{perl_version}
 Requires:       coreutils
 Requires:       e2fsprogs
+Requires:       perl-base = %{perl_version}
 Recommends:     perl-gettext
 Summary:        Library for Configuring Boot Loaders
 License:        GPL-2.0+
 Group:          System/Boot
 Source:         perl-Bootloader-%{version}.tar.xz
+Patch0:         grub2-on-powerpc.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 Conflicts:      multipath-tools < 0.4.8-40.25.1
@@ -46,6 +47,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 
@@ -63,7 +65,7 @@
 %endif
 %endif
 %ifarch ppc ppc64
-rm -f 
$RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{ZIPL*,LILO*,ELILO*,GRUB*}
+rm -f 
$RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{ZIPL*,LILO*,ELILO*,GRUB.*}
 %if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
 sed -i '/ZIPL/D;/ELILO/D;/\/LILO/D;/GRUB/D;' 
$RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
 %endif

++++++ grub2-on-powerpc.patch ++++++
Index: perl-Bootloader-0.708/src/Core/GRUB2.pm
===================================================================
--- perl-Bootloader-0.708.orig/src/Core/GRUB2.pm
+++ perl-Bootloader-0.708/src/Core/GRUB2.pm
@@ -333,12 +333,15 @@ sub new
   my $self = shift;
   my $ref = shift;
   my $old = shift;
+  my $arch = `uname --hardware-platform`;
+  my $target;
 
   my $loader = $self->SUPER::new($ref, $old);
   bless($loader);
 
-  # Do we support any architecture besides x86?
-  my $target = "i386-pc";
+  #Set target based on architecture (ppc or x86)
+  $target = "i386-pc" if $arch =~ /(i386|x86_64)/;
+  $target = "powerpc-ieee1275" if $arch =~ /(ppc|ppc64)/;
   $loader->{'target'} = $target;
 
   $loader->milestone("Created GRUB2 instance for target $target");
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to