Sync from SUSE:ALP:Source:Standard:1.0 fwts revision 5d101a8e386ee30129970fbc9d64749c

This commit is contained in:
Adrian Schröter 2024-02-09 15:25:22 +01:00
commit af45621e6a
9 changed files with 1919 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="obs_scm" mode="manual">
<param name="versionformat">@PARENT_TAG@</param>
<param name="url">https://github.com/ColinIanKing/fwts.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="exclude">.*</param>
<param name="versionrewrite-pattern">V(.*)</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="compression">gz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled">
</service>
</services>

6
_servicedata Normal file
View File

@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://git.launchpad.net/fwts</param>
<param name="changesrevision">3cbc82cb1b73781d0b7a3fd94141f924436eed39</param></service><service name="tar_scm">
<param name="url">https://github.com/ColinIanKing/fwts.git</param>
<param name="changesrevision">7a824d3b13fb4e33c3970fe560e36d2c65e7fb10</param></service></servicedata>

BIN
fwts-23.11.00.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

25
fwts-fix-non-acpi.patch Normal file
View File

@ -0,0 +1,25 @@
Index: fwts-21.01.00/src/acpica/source/tools/acpiexec/aecommon.h
===================================================================
--- fwts-21.01.00.orig/src/acpica/source/tools/acpiexec/aecommon.h
+++ fwts-21.01.00/src/acpica/source/tools/acpiexec/aecommon.h
@@ -201,11 +201,18 @@ typedef struct init_file_entry
} INIT_FILE_ENTRY;
+#if defined(__x86_64__) || defined(__x86_64) || defined(__i386__) || defined(__i386) || defined(__aarch64__) || defined(__riscv)
+extern BOOLEAN AcpiGbl_IgnoreErrors;
+extern UINT8 AcpiGbl_RegionFillValue;
+#else
+#define VOID_FUNC(name) void name(void);
+extern VOID_FUNC(AcpiGbl_IgnoreErrors)
+extern VOID_FUNC(AcpiGbl_RegionFillValue)
+#endif
+
extern BOOLEAN AcpiGbl_UseLocalFaultHandler;
extern BOOLEAN AcpiGbl_VerboseHandlers;
-extern BOOLEAN AcpiGbl_IgnoreErrors;
extern BOOLEAN AcpiGbl_AbortLoopOnTimeout;
-extern UINT8 AcpiGbl_RegionFillValue;
extern INIT_FILE_ENTRY *AcpiGbl_InitEntries;
extern UINT32 AcpiGbl_InitFileLineCount;
extern UINT8 AcpiGbl_UseHwReducedFadt;

11
fwts-no-compiletime.patch Normal file
View File

@ -0,0 +1,11 @@
--- fwts-20.11.00/src/acpica/source/compiler/aslutils.c 2020/11/27 16:29:34 1.1
+++ fwts-20.11.00/src/acpica/source/compiler/aslutils.c 2020/11/27 16:29:50
@@ -596,7 +596,7 @@
/* Compiler name and version number */
FlPrintFile (FileId, "%s version %X [%s]\n\n",
- ASL_COMPILER_NAME, (UINT32) ACPI_CA_VERSION, __DATE__);
+ ASL_COMPILER_NAME, (UINT32) ACPI_CA_VERSION);
}
/* Summary of main input and output files */

1736
fwts.changes Normal file

File diff suppressed because it is too large Load Diff

4
fwts.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: fwts
version: 23.11.00
mtime: 1701225431
commit: 7a824d3b13fb4e33c3970fe560e36d2c65e7fb10

94
fwts.spec Normal file
View File

@ -0,0 +1,94 @@
#
# spec file for package fwts
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: fwts
Version: 23.11.00
Release: 0
Summary: Firmware Test Suite
License: GPL-2.0-or-later
URL: https://wiki.ubuntu.com/Kernel/Reference/fwts
Source0: %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fwts-no-compiletime.patch
Patch1: fwts-no-compiletime.patch
# PATCH-FIX-OPENSUSE fwts-fix-non-acpi.patch
Patch2: fwts-fix-non-acpi.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: libfdt-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(bash-completion)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(json)
BuildRequires: pkgconfig(libbsd)
BuildRequires: pkgconfig(libpci)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(zlib)
Requires: bash-completion
Recommends: acpica
Recommends: dmidecode
Recommends: pciutils
ExclusiveArch: %ix86 x86_64 aarch64
%description
The FirmWare Test Suite (fwts) is a tool to do automatic testing of a PC's
firmware. There can be a lot of subtle or vexing Linux Kernel/firmware issues
caused when firmware is buggy, so it's useful to have a tool that can
automatically check for common BIOS and ACPI errors. Where possible the tool
will give some form of advice on how to fix issues or workaround firmware
issues.
%prep
%autosetup -p1
%build
find . -name Makefile.am -exec sed -i "s|-Werror||g" {} +
autoreconf -fiv
%configure \
--disable-static
# parallel build fails on Factory
%make_build --jobs=1
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
install -D -p -m 0644 data/klog.json %{buildroot}%{_datadir}/%{name}/klog.json
install -D -p -m 0644 data/syntaxcheck.json %{buildroot}%{_datadir}/%{name}/syntaxcheck.json
# There are no headers, so drop remaining development files
rm -f "%{buildroot}/%{_libdir}/%{name}"/*.so
%files
%doc README README_ACPICA.txt README_SOURCE.txt ./data/README_JSON.txt
%doc debian/changelog
%{_bindir}/fwts
%{_bindir}/kernelscan
%{_libdir}/fwts
%{_mandir}/man1/fwts-collect.1%{?ext_man}
%{_mandir}/man1/fwts-frontend-text.1%{?ext_man}
%{_mandir}/man1/fwts.1%{?ext_man}
%{_datadir}/bash-completion/completions/fwts
%dir %{_datadir}/%{name}
%{_datadir}/fwts/clog.json
%{_datadir}/fwts/klog.json
%{_datadir}/fwts/syntaxcheck.json
%{_datadir}/fwts/olog.json
%changelog