diff --git a/acpica-tools.spec b/acpica-tools.spec index 1ed8a16..b7f61f3 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -32,6 +32,7 @@ Patch5: OPT_LDFLAGS.patch Patch6: int-format.patch Patch7: f23-harden.patch Patch8: rename-file.patch +Patch9: asllookup-ppc64.patch BuildRequires: bison patchutils flex @@ -90,6 +91,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch6 -p1 -b .int-format %patch7 -p1 -b .f23-harden %patch8 -p1 -b .rename-file +%patch9 -p1 -b .asllookup-ppc64 cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -186,6 +188,8 @@ fi %changelog * Thu Sep 10 2015 Al Stone - 20150818-2 - Remove extraneous patch files for AAPITS. +- Correct an assumption that all names are stored in little-endian format. + Fix is in asllookup-ppc64.patch. Closes BZ#1251972. * Wed Sep 9 2015 Al Stone - 20150818-1 - Update to latest upstream. Closes BZ#1256134. diff --git a/asllookup-ppc64.patch b/asllookup-ppc64.patch new file mode 100644 index 0000000..c5255af --- /dev/null +++ b/asllookup-ppc64.patch @@ -0,0 +1,13 @@ +diff -Naur acpica-unix2-20150818/source/compiler/asllookup.c acpica-unix2-20150818.fixes/source/compiler/asllookup.c +--- acpica-unix2-20150818/source/compiler/asllookup.c 2015-09-10 16:07:37.573262497 -0600 ++++ acpica-unix2-20150818.fixes/source/compiler/asllookup.c 2015-09-10 16:26:26.336912875 -0600 +@@ -176,7 +176,8 @@ + * We ignore the predefined methods since often, not + * all arguments are needed or used. + */ +- if ((Node->Name.Ascii[0] != '_') && ++ ACPI_MOVE_32_TO_32(&tmp.Ascii, Node->Name.Ascii); ++ if ((tmp.Ascii[0] != '_') && + (!(MethodArgs[i].Flags & ASL_ARG_REFERENCED))) + { + sprintf (MsgBuffer, "Arg%u", i);