Add wwoods patches for ppc/treebuilder
This commit is contained in:
parent
dda7ecccf0
commit
4a29e2a96e
28
0001-Fix-DVD-building-on-ppc64.patch
Normal file
28
0001-Fix-DVD-building-on-ppc64.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 4b5b59bd507def6077a4fac9f52af291527ded17 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Will Woods <wwoods@redhat.com>
|
||||||
|
Date: Tue, 11 Oct 2011 15:03:52 -0400
|
||||||
|
Subject: [PATCH 1/2] Fix DVD building on ppc64
|
||||||
|
|
||||||
|
ppc64 systems used to have arch == 'ppc', so pungi was only checking to
|
||||||
|
see if arch == 'ppc'. Now that ppc64 is separate from ppc, we need to
|
||||||
|
check if arch.startswith('ppc') instead.
|
||||||
|
---
|
||||||
|
src/pypungi/__init__.py | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py
|
||||||
|
index e183b9c..a402eb4 100644
|
||||||
|
--- a/src/pypungi/__init__.py
|
||||||
|
+++ b/src/pypungi/__init__.py
|
||||||
|
@@ -1046,7 +1046,7 @@ class Pungi(pypungi.PungiBase):
|
||||||
|
extraargs.extend(efibootargs)
|
||||||
|
elif self.config.get('pungi', 'arch') == 'ia64':
|
||||||
|
extraargs.extend(ia64bootargs)
|
||||||
|
- elif self.config.get('pungi', 'arch') == 'ppc':
|
||||||
|
+ elif self.config.get('pungi', 'arch').startswith('ppc'):
|
||||||
|
extraargs.extend(ppcbootargs)
|
||||||
|
extraargs.append(os.path.join(self.topdir, "ppc/mac"))
|
||||||
|
elif self.config.get('pungi', 'arch') == 'sparc':
|
||||||
|
--
|
||||||
|
1.7.7
|
||||||
|
|
37
0002-Use-a-predictable-ISO-Volume-ID-732298.patch
Normal file
37
0002-Use-a-predictable-ISO-Volume-ID-732298.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From b5297ce1c82c626bb3e51b7eb67ac5529e16a29b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Will Woods <wwoods@redhat.com>
|
||||||
|
Date: Wed, 12 Oct 2011 20:25:20 -0400
|
||||||
|
Subject: [PATCH 2/2] Use a predictable ISO Volume ID (#732298)
|
||||||
|
|
||||||
|
Since the new lorax branch needs to know the iso Volume ID to be able to
|
||||||
|
boot, we need to make sure we're using the same Volume ID that lorax
|
||||||
|
sets up the bootloaders to expect.
|
||||||
|
---
|
||||||
|
src/pypungi/__init__.py | 10 ++++------
|
||||||
|
1 files changed, 4 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py
|
||||||
|
index a402eb4..1ef3b8d 100644
|
||||||
|
--- a/src/pypungi/__init__.py
|
||||||
|
+++ b/src/pypungi/__init__.py
|
||||||
|
@@ -1052,13 +1052,11 @@ class Pungi(pypungi.PungiBase):
|
||||||
|
elif self.config.get('pungi', 'arch') == 'sparc':
|
||||||
|
extraargs.extend(sparcbootargs)
|
||||||
|
|
||||||
|
+ # NOTE: if this doesn't match what's in the bootloader config, the
|
||||||
|
+ # image won't be bootable!
|
||||||
|
extraargs.append('-V')
|
||||||
|
- if treesize > 700:
|
||||||
|
- extraargs.append('%s %s %s DVD' % (self.config.get('pungi', 'name'),
|
||||||
|
- self.config.get('pungi', 'version'), self.config.get('pungi', 'arch')))
|
||||||
|
- else:
|
||||||
|
- extraargs.append('%s %s %s' % (self.config.get('pungi', 'name'),
|
||||||
|
- self.config.get('pungi', 'version'), self.config.get('pungi', 'arch')))
|
||||||
|
+ extraargs.append('%s %s %s' % (self.config.get('pungi', 'name'),
|
||||||
|
+ self.config.get('pungi', 'version'), self.config.get('pungi', 'arch')))
|
||||||
|
|
||||||
|
extraargs.extend(['-o', isofile])
|
||||||
|
|
||||||
|
--
|
||||||
|
1.7.7
|
||||||
|
|
10
pungi.spec
10
pungi.spec
@ -2,13 +2,15 @@
|
|||||||
|
|
||||||
Name: pungi
|
Name: pungi
|
||||||
Version: 2.8
|
Version: 2.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Distribution compose tool
|
Summary: Distribution compose tool
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://fedorahosted.org/pungi
|
URL: https://fedorahosted.org/pungi
|
||||||
Source0: https://fedorahosted.org/pungi/attachment/wiki/%{version}/%{name}-%{version}.tar.bz2
|
Source0: https://fedorahosted.org/pungi/attachment/wiki/%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
Patch1: 0001-Fix-DVD-building-on-ppc64.patch
|
||||||
|
Patch2: 0002-Use-a-predictable-ISO-Volume-ID-732298.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: anaconda >= 14.3, yum => 3.2.19, repoview, createrepo >= 0.4.11
|
Requires: anaconda >= 14.3, yum => 3.2.19, repoview, createrepo >= 0.4.11
|
||||||
Requires: lorax
|
Requires: lorax
|
||||||
@ -22,6 +24,8 @@ A tool to create anaconda based installation trees/isos of a set of rpms.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -56,6 +60,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 27 2011 Will Woods <wwoods@redhat.com> - 2.8-2
|
||||||
|
- Fix DVD builds for ppc/ppc64
|
||||||
|
- Use a consistent ISO label so the bootloader will work (#732298)
|
||||||
|
|
||||||
* Mon Jul 18 2011 Jesse Keating <jkeating@redhat.com> - 2.8-1
|
* Mon Jul 18 2011 Jesse Keating <jkeating@redhat.com> - 2.8-1
|
||||||
- Always re-init the yum object (#717089)
|
- Always re-init the yum object (#717089)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user