Add in a patch to fix incorrect exit status from iasl

Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
Al Stone 2019-10-29 17:41:12 -06:00
parent 5fcb15b704
commit 0acf62d4a9
2 changed files with 23 additions and 13 deletions

View File

@ -42,6 +42,7 @@ Patch14: str-trunc-warn.patch
Patch15: ptr-cast.patch Patch15: ptr-cast.patch
Patch16: aslcodegen.patch Patch16: aslcodegen.patch
Patch17: facp.patch Patch17: facp.patch
Patch18: badexit.patch
BuildRequires: bison patchutils flex gcc BuildRequires: bison patchutils flex gcc
@ -111,6 +112,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
%patch15 -p1 -b .ptr-cast %patch15 -p1 -b .ptr-cast
%patch16 -p1 -b .aslcodegen %patch16 -p1 -b .aslcodegen
%patch17 -p1 -b .facp %patch17 -p1 -b .facp
%patch18 -p1 -b .badexit
cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE2} README.Fedora
cp -p %{SOURCE3} iasl.1 cp -p %{SOURCE3} iasl.1
@ -197,18 +199,6 @@ cd tests
# misc tests # misc tests
./run-misc-tests.sh %{buildroot}%{_bindir} %{version} ./run-misc-tests.sh %{buildroot}%{_bindir} %{version}
# Template tests
cd templates
make
if [ -f diff.log ]
then
if [ -s diff.log ]
then
exit 1 # implies errors occurred
fi
fi
cd ..
%pre %pre
if [ -e %{_bindir}/acpixtract-acpica ] if [ -e %{_bindir}/acpixtract-acpica ]
then then
@ -239,8 +229,11 @@ fi
%changelog %changelog
* Sun Oct 27 2019 Al Stone <ahs3@redhat.com> - 20190816-1 * Tue Oct 29 2019 Al Stone <ahs3@redhat.com> - 20190816-1
- Update to 20190816 source tree, including patch refeshes. - Update to 20190816 source tree, including patch refeshes.
- Add a patch to fix a non-zero exit from iasl -T ALL that actually succeeds
- Remove the "template" tests; they have been subsumed by aslts.sh as they
should be
* Thu Oct 24 2019 Al Stone <ahs3@redhat.com> - 20190703-1 * Thu Oct 24 2019 Al Stone <ahs3@redhat.com> - 20190703-1
- Update to 20190703 source tree, including patch refeshes. - Update to 20190703 source tree, including patch refeshes.

17
badexit.patch Normal file
View File

@ -0,0 +1,17 @@
When iasl is invoked with 'iasl -T ALL', and everything works correctly,
it still exits with a non-zero value. Exit with zero if all is well.
Signed-off-by: Al Stone <ahs3@redhat.com>
diff -Naur acpica-unix2-20190816/source/compiler/asloptions.c acpica-unix2-20190816.fix/source/compiler/asloptions.c
--- acpica-unix2-20190816/source/compiler/asloptions.c 2019-08-16 09:01:30.000000000 -0600
+++ acpica-unix2-20190816.fix/source/compiler/asloptions.c 2019-10-29 15:52:40.987156555 -0600
@@ -111,7 +111,7 @@
{
exit (-1);
}
- exit (1);
+ exit (0);
}
/* Next parameter must be the input filename */