diff --git a/lshw-fix-ppc.patch b/lshw-fix-ppc.patch new file mode 100644 index 0000000..38addde --- /dev/null +++ b/lshw-fix-ppc.patch @@ -0,0 +1,23 @@ +From 3775782808e8b9b8aa72ed2ce23e145433e193cf Mon Sep 17 00:00:00 2001 +From: Lyonel Vincent +Date: Wed, 27 May 2020 01:16:20 +0200 +Subject: [PATCH] report product model on Power systems + +Github PR #54 +--- + src/core/device-tree.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc +index e7227e1..027ad16 100644 +--- a/src/core/device-tree.cc ++++ b/src/core/device-tree.cc +@@ -1396,7 +1396,7 @@ static void get_ibm_model(hwNode & n) + { + if (ibm_model_defs[i].model == machinetype || ibm_model_defs[i].model == model) + { +- n.setProduct(ibm_model_defs[i].modelname); ++ n.setProduct(n.getProduct() + " (" + ibm_model_defs[i].modelname + ")"); + n.addHint("icon", string(ibm_model_defs[i].icon)); + n.setConfig("chassis", ibm_model_defs[i].chassis); + return; diff --git a/lshw.changes b/lshw.changes index 18dcc17..e6b8b93 100644 --- a/lshw.changes +++ b/lshw.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 31 08:34:41 UTC 2020 - Martin Pluskal + +- Fix detection of ppc products - boo#1172156 + * lshw-fix-ppc.patch + ------------------------------------------------------------------- Fri Apr 24 13:15:19 UTC 2020 - Guillaume GARDET diff --git a/lshw.spec b/lshw.spec index 255b817..abd9848 100644 --- a/lshw.spec +++ b/lshw.spec @@ -31,6 +31,8 @@ Source2: lshw.png Patch1: lshw-fix-segfault-in-apfs-volume-code.patch # PATCH-FIX-UPSTREAM - https://github.com/lyonel/lshw/pull/52 - boo#1169668 Patch2: lshw-fix-mmc.patch +# PATCH-FIX-UPSTREAM - https://github.com/lyonel/lshw/commit/3775782808e8b9b8aa72ed2ce23e145433e193cf - boo#1172156 +Patch3: lshw-fix-ppc.patch BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: libpng-devel