summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2022-09-09 22:46:52 -0500
committerJohn Helmert III <ajak@gentoo.org>2022-09-09 22:46:52 -0500
commitd795de12c5f50d63651613565e72a0c5871b7763 (patch)
tree10c330c0014c6cefbfff6260f637d304ab151a26 /sys-apps/ipmitool
parentsys-apps/ipmitool: add 1.8.19 (diff)
downloadgentoo-d795de12c5f50d63651613565e72a0c5871b7763.tar.gz
gentoo-d795de12c5f50d63651613565e72a0c5871b7763.tar.bz2
gentoo-d795de12c5f50d63651613565e72a0c5871b7763.zip
sys-apps/ipmitool: add missing function declarations
For clang-15 compat. Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'sys-apps/ipmitool')
-rw-r--r--sys-apps/ipmitool/files/ipmitool-1.8.19-missing-func-decl.patch32
-rw-r--r--sys-apps/ipmitool/ipmitool-1.8.19.ebuild1
2 files changed, 33 insertions, 0 deletions
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 <raj.khem@gmail.com>
+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 <raj.khem@gmail.com>
+---
+ 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"