1 |
commit: d795de12c5f50d63651613565e72a0c5871b7763 |
2 |
Author: John Helmert III <ajak <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 10 03:46:52 2022 +0000 |
4 |
Commit: John Helmert III <ajak <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 10 03:46:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d795de12 |
7 |
|
8 |
sys-apps/ipmitool: add missing function declarations |
9 |
|
10 |
For clang-15 compat. |
11 |
|
12 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
13 |
|
14 |
.../files/ipmitool-1.8.19-missing-func-decl.patch | 32 ++++++++++++++++++++++ |
15 |
sys-apps/ipmitool/ipmitool-1.8.19.ebuild | 1 + |
16 |
2 files changed, 33 insertions(+) |
17 |
|
18 |
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 |
19 |
new file mode 100644 |
20 |
index 000000000000..5057fcaf0525 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/ipmitool/files/ipmitool-1.8.19-missing-func-decl.patch |
23 |
@@ -0,0 +1,32 @@ |
24 |
+https://github.com/ipmitool/ipmitool/pull/360 |
25 |
+ |
26 |
+From a9e262480722f5affd237ee10d0bbc8c55617cb7 Mon Sep 17 00:00:00 2001 |
27 |
+From: Khem Raj <raj.khem@×××××.com> |
28 |
+Date: Fri, 2 Sep 2022 07:30:10 -0700 |
29 |
+Subject: [PATCH] ipmi_fru.c: Provide missing function declarations |
30 |
+ |
31 |
+Fixes build with clang-15+ |
32 |
+ |
33 |
+Signed-off-by: Khem Raj <raj.khem@×××××.com> |
34 |
+--- |
35 |
+ lib/ipmi_fru.c | 7 +++++++ |
36 |
+ 1 file changed, 7 insertions(+) |
37 |
+ |
38 |
+diff --git a/lib/ipmi_fru.c b/lib/ipmi_fru.c |
39 |
+index 3d1d8a1a..5c5661cf 100644 |
40 |
+--- a/lib/ipmi_fru.c |
41 |
++++ b/lib/ipmi_fru.c |
42 |
+@@ -60,6 +60,13 @@ static const char *section_id[4] = { |
43 |
+ "Board Section", |
44 |
+ "Product Section" |
45 |
+ }; |
46 |
++/* From lib/ipmi_hpmfwupg.c: */ |
47 |
++uint16_t |
48 |
++ipmi_intf_get_max_request_data_size(struct ipmi_intf * intf); |
49 |
++ |
50 |
++/* From src/plugins/ipmi_intf.c: */ |
51 |
++uint16_t |
52 |
++ipmi_intf_get_max_response_data_size(struct ipmi_intf * intf); |
53 |
+ |
54 |
+ static const char * combined_voltage_desc[] = { |
55 |
+ "12 V", |
56 |
|
57 |
diff --git a/sys-apps/ipmitool/ipmitool-1.8.19.ebuild b/sys-apps/ipmitool/ipmitool-1.8.19.ebuild |
58 |
index fabe705490a8..318e661f232d 100644 |
59 |
--- a/sys-apps/ipmitool/ipmitool-1.8.19.ebuild |
60 |
+++ b/sys-apps/ipmitool/ipmitool-1.8.19.ebuild |
61 |
@@ -39,6 +39,7 @@ DEPEND="${RDEPEND} |
62 |
# but it doesn't actually need either. |
63 |
|
64 |
PATCHES=( |
65 |
+ "${FILESDIR}/${P}-missing-func-decl.patch" |
66 |
# yoinked out of debian's patchset, previously carried in a SRC_URI |
67 |
# tarball |
68 |
"${FILESDIR}/${P}-fix-buffer-overflow.patch" |