commit:     d795de12c5f50d63651613565e72a0c5871b7763
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 03:46:52 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 03:46:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d795de12

sys-apps/ipmitool: add missing function declarations

For clang-15 compat.

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 .../files/ipmitool-1.8.19-missing-func-decl.patch  | 32 ++++++++++++++++++++++
 sys-apps/ipmitool/ipmitool-1.8.19.ebuild           |  1 +
 2 files changed, 33 insertions(+)

diff --git a/sys-apps/ipmitool/files/ipmitool-1.8.19-missing-func-decl.patch 
b/sys-apps/ipmitool/files/ipmitool-1.8.19-missing-func-decl.patch
new file mode 100644
index 000000000000..5057fcaf0525
--- /dev/null
+++ b/sys-apps/ipmitool/files/ipmitool-1.8.19-missing-func-decl.patch
@@ -0,0 +1,32 @@
+https://github.com/ipmitool/ipmitool/pull/360
+
+From a9e262480722f5affd237ee10d0bbc8c55617cb7 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 2 Sep 2022 07:30:10 -0700
+Subject: [PATCH] ipmi_fru.c: Provide missing function declarations
+
+Fixes build with clang-15+
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ lib/ipmi_fru.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/lib/ipmi_fru.c b/lib/ipmi_fru.c
+index 3d1d8a1a..5c5661cf 100644
+--- a/lib/ipmi_fru.c
++++ b/lib/ipmi_fru.c
+@@ -60,6 +60,13 @@ static const char *section_id[4] = {
+       "Board Section",
+       "Product Section"
+ };
++/* From lib/ipmi_hpmfwupg.c: */
++uint16_t
++ipmi_intf_get_max_request_data_size(struct ipmi_intf * intf);
++
++/* From src/plugins/ipmi_intf.c: */
++uint16_t
++ipmi_intf_get_max_response_data_size(struct ipmi_intf * intf);
+ 
+ static const char * combined_voltage_desc[] = {
+       "12 V",

diff --git a/sys-apps/ipmitool/ipmitool-1.8.19.ebuild 
b/sys-apps/ipmitool/ipmitool-1.8.19.ebuild
index fabe705490a8..318e661f232d 100644
--- a/sys-apps/ipmitool/ipmitool-1.8.19.ebuild
+++ b/sys-apps/ipmitool/ipmitool-1.8.19.ebuild
@@ -39,6 +39,7 @@ DEPEND="${RDEPEND}
 # but it doesn't actually need either.
 
 PATCHES=(
+       "${FILESDIR}/${P}-missing-func-decl.patch"
        # yoinked out of debian's patchset, previously carried in a SRC_URI
        # tarball
        "${FILESDIR}/${P}-fix-buffer-overflow.patch"

Reply via email to