[packages/lsvpd] - added patch to allow partial functionality on unknown (non-POWER) platform
qboosh
qboosh at pld-linux.org
Sun Dec 24 12:31:50 CET 2023
commit 40f0e40f3138f1e5476ae0d47be0ab265828145c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 24 11:32:14 2023 +0100
- added patch to allow partial functionality on unknown (non-POWER) platform
lsvpd-unknown-platform.patch | 71 ++++++++++++++++++++++++++++++++++++++++++++
lsvpd.spec | 2 ++
2 files changed, 73 insertions(+)
---
diff --git a/lsvpd.spec b/lsvpd.spec
index 17e7f69..61edb87 100644
--- a/lsvpd.spec
+++ b/lsvpd.spec
@@ -20,6 +20,7 @@ Source2: vpdupdater.sysconfig
# from libvpd sources
Source3: 90-vpdupdate.rules
Patch0: %{name}-nortas.patch
+Patch1: %{name}-unknown-platform.patch
URL: https://github.com/power-ras/lsvpd
BuildRequires: autoconf >= 2.69
BuildRequires: automake
@@ -62,6 +63,7 @@ wypisuje poziomy mikrokodu i firmware'u.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
diff --git a/lsvpd-unknown-platform.patch b/lsvpd-unknown-platform.patch
new file mode 100644
index 0000000..5d11f1c
--- /dev/null
+++ b/lsvpd-unknown-platform.patch
@@ -0,0 +1,71 @@
+--- lsvpd-1.7.15/src/internal/sys_interface/platformcollector.cpp.orig 2023-09-28 16:02:21.000000000 +0200
++++ lsvpd-1.7.15/src/internal/sys_interface/platformcollector.cpp 2023-12-24 10:49:56.027693044 +0100
+@@ -111,9 +111,6 @@ error:
+ }
+ }
+
+- if (platform_type == PF_NULL)
+- platform_type = PF_ERROR;
+-
+ ifs.close();
+
+ /* Get Service processor type */
+--- lsvpd-1.7.15/src/output/lscfg.cpp.orig 2023-09-28 16:02:21.000000000 +0200
++++ lsvpd-1.7.15/src/output/lscfg.cpp 2023-12-24 11:23:14.750198369 +0100
+@@ -754,11 +754,11 @@ int main( int argc, char** argv )
+ switch (PlatformCollector::platform_type) {
+ case PF_PSERIES_KVM_GUEST: /* Fall through */
+ rc = 0;
+- case PF_NULL: /* Fall through */
+ case PF_ERROR:
+ cout<< argv[0] << " is not supported on the "
+ << platform << " platform" << endl;
+ return rc;
++ case PF_NULL: /* Fall through */
+ default:
+ ;
+ }
+--- lsvpd-1.7.15/src/output/lsmcode.cpp.orig 2023-09-28 16:02:21.000000000 +0200
++++ lsvpd-1.7.15/src/output/lsmcode.cpp 2023-12-24 11:23:43.206710874 +0100
+@@ -579,11 +579,11 @@ int main( int argc, char** argv )
+ switch (PlatformCollector::platform_type) {
+ case PF_PSERIES_KVM_GUEST: /* Fall through */
+ rc = 0;
+- case PF_NULL: /* Fall through */
+ case PF_ERROR:
+ cout<< "lsmcode is not supported on the "
+ << platform << " platform" << endl;
+ return rc;
++ case PF_NULL: /* Fall through */
+ default:
+ ;
+ }
+--- lsvpd-1.7.15/src/output/lsvio.cpp.orig 2023-09-28 16:02:21.000000000 +0200
++++ lsvpd-1.7.15/src/output/lsvio.cpp 2023-12-24 11:24:09.633234376 +0100
+@@ -222,11 +222,11 @@ int main( int argc, char** argv )
+ case PF_PSERIES_KVM_GUEST: /* Fall through */
+ case PF_OPAL: /* Fall through */
+ rc = 0;
+- case PF_NULL: /* Fall through */
+ case PF_ERROR:
+ cout<< "lsvio is not supported on the "
+ << platform << " platform" << endl;
+ return rc;
++ case PF_NULL: /* Fall through */
+ default:
+ ;
+ }
+--- lsvpd-1.7.15/src/output/lsvpd.cpp.orig 2023-09-28 16:02:21.000000000 +0200
++++ lsvpd-1.7.15/src/output/lsvpd.cpp 2023-12-24 11:22:31.047101795 +0100
+@@ -390,10 +390,10 @@ int main( int argc, char** argv )
+ switch (PlatformCollector::platform_type) {
+ case PF_PSERIES_KVM_GUEST: /* Fall through */
+ rc = 0;
+- case PF_NULL: /* Fall through */
+ case PF_ERROR:
+ cout<< "lsvpd is not supported on the " << platform << " platform" << endl;
+ return rc;
++ case PF_NULL: /* Fall through */
+ default:
+ ;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lsvpd.git/commitdiff/40f0e40f3138f1e5476ae0d47be0ab265828145c
More information about the pld-cvs-commit
mailing list