[packages/openhpi] fix build with gcc 14
atler
atler at pld-linux.org
Thu Jan 16 13:02:46 CET 2025
commit 6703056cb3a8d41b02aca1130c897d37cbe71d22
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Jan 16 11:48:01 2025 +0100
fix build with gcc 14
gcc14.patch | 11 +++++++++++
openhpi.spec | 22 ++++++++++++----------
2 files changed, 23 insertions(+), 10 deletions(-)
---
diff --git a/openhpi.spec b/openhpi.spec
index 2605154..6de2b84 100644
--- a/openhpi.spec
+++ b/openhpi.spec
@@ -18,6 +18,7 @@ Patch6: %{name}-types.patch
Patch7: %{name}-config-echo.patch
Patch8: ipmi.patch
Patch9: no-md2.patch
+Patch10: gcc14.patch
URL: http://www.openhpi.org/
BuildRequires: OpenIPMI-devel >= 1.4.20
BuildRequires: autoconf >= 2.57
@@ -198,16 +199,17 @@ Wtyczka sysfs dla OpenHPI.
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
+%patch -P 0 -p1
+%patch -P 1 -p1
+%patch -P 2 -p1
+%patch -P 3 -p1
+%patch -P 4 -p1
+%patch -P 5 -p1
+%patch -P 6 -p1
+%patch -P 7 -p1
+%patch -P 8 -p1
+%patch -P 9 -p1
+%patch -P 10 -p1
%build
%{__libtoolize}
diff --git a/gcc14.patch b/gcc14.patch
new file mode 100644
index 0000000..510b6bc
--- /dev/null
+++ b/gcc14.patch
@@ -0,0 +1,11 @@
+--- openhpi-3.8.0/plugins/ov_rest/ov_rest_re_discover.c.orig 2018-03-08 19:10:16.000000000 +0100
++++ openhpi-3.8.0/plugins/ov_rest/ov_rest_re_discover.c 2025-01-16 09:34:34.914862068 +0100
+@@ -704,7 +704,7 @@
+ byte bayNumber)
+ {
+
+- SaErrorT rv = NULL;
++ SaErrorT rv;
+ SaHpiResourceIdT resource_id = 0;
+ struct oh_event event = {0};
+ struct ovRestHotswapState *hotswap_state = NULL;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openhpi.git/commitdiff/325e50a9aefca50339d8a183e4c60069882562fa
More information about the pld-cvs-commit
mailing list