[iasl: 4/4] iasl-signed-char.patch to fix PPC -Werror build
Richard W.M. Jones
rjones at fedoraproject.org
Wed Oct 17 11:58:13 UTC 2012
commit 0793b931cd52465b9d2ad004e440e305b7d81e7d
Author: Paolo Bonzini <pbonzini at redhat.com>
Date: Wed Oct 17 07:31:18 2012 -0400
iasl-signed-char.patch to fix PPC -Werror build
iasl-signed-char.patch | 20 ++++++++++++++++++++
iasl.spec | 5 ++++-
2 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/iasl-signed-char.patch b/iasl-signed-char.patch
new file mode 100644
index 0000000..381e12a
--- /dev/null
+++ b/iasl-signed-char.patch
@@ -0,0 +1,20 @@
+--- a/source/compiler/dtio.c.schar 2012-10-17 07:25:42.050504291 -0400
++++ b/source/compiler/dtio.c 2012-10-17 07:27:14.530504054 -0400
+@@ -486,7 +486,7 @@
+ UINT32 State = DT_NORMAL_TEXT;
+ UINT32 CurrentLineOffset;
+ UINT32 i;
+- char c;
++ int c;
+
+
+ for (i = 0; ;)
+@@ -500,7 +500,7 @@
+ UtExpandLineBuffers ();
+ }
+
+- c = (char) getc (Handle);
++ c = getc (Handle);
+ if (c == EOF)
+ {
+ switch (State)
diff --git a/iasl.spec b/iasl.spec
index 9e517be..07f0c77 100644
--- a/iasl.spec
+++ b/iasl.spec
@@ -1,6 +1,6 @@
Name: iasl
Version: 20120913
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Intel ASL compiler/decompiler
Group: Development/Languages
@@ -17,6 +17,7 @@ BuildRequires: bison patchutils flex
Patch0: iasl-config.patch
Patch1: debian-big_endian.patch
Patch2: debian-unaligned.patch
+Patch3: iasl-signed-char.patch
%description
iasl compiles ASL (ACPI Source Language) into AML (ACPI Machine Language),
@@ -29,6 +30,7 @@ disassemble AML, for debugging purposes.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
cp -p %{SOURCE1} README.Fedora
cp -p %{SOURCE2} iasl.1
@@ -58,6 +60,7 @@ rm -rf $RPM_BUILD_ROOT
* Wed Oct 17 2012 Paolo Bonzini <pbonzini at redhat.com> - 20120913-4
- Incorporated Debian patches for endian-cleanliness
(http://lists.acpica.org/pipermail/devel/2010-July/000159.html);
+- iasl-signed-char.patch to fix PPC -Werror build
- Resolves: #865013, #856856
* Thu Oct 11 2012 Richard W.M. Jones <rjones at redhat.com> - 20120913-3
More information about the scm-commits
mailing list