1 |
commit: 2c1e76900f3ab6b0a34f14372970325d6518340a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 04:52:07 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 04:52:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c1e7690 |
7 |
|
8 |
sys-cluster/sanlock: fix implicit function declarations |
9 |
|
10 |
Unlike normal missing includes, implicit function declaration |
11 |
fixes require a revbump as they can affect code generation. |
12 |
|
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
.../files/sanlock-3.8.4-implicit-func-decls.patch | 34 ++++++++++++++++++++++ |
16 |
...anlock-3.8.4.ebuild => sanlock-3.8.4-r1.ebuild} | 2 ++ |
17 |
2 files changed, 36 insertions(+) |
18 |
|
19 |
diff --git a/sys-cluster/sanlock/files/sanlock-3.8.4-implicit-func-decls.patch b/sys-cluster/sanlock/files/sanlock-3.8.4-implicit-func-decls.patch |
20 |
new file mode 100644 |
21 |
index 000000000000..7e99d9b1f939 |
22 |
--- /dev/null |
23 |
+++ b/sys-cluster/sanlock/files/sanlock-3.8.4-implicit-func-decls.patch |
24 |
@@ -0,0 +1,34 @@ |
25 |
+https://pagure.io/sanlock/issue/8 |
26 |
+ |
27 |
+From 272f9838f3495f5e419f77e000762c420754c96d Mon Sep 17 00:00:00 2001 |
28 |
+From: Khem Raj <raj.khem@×××××.com> |
29 |
+Date: Sep 02 2022 22:58:56 +0000 |
30 |
+Subject: add missing system header string.h |
31 |
+ |
32 |
+ |
33 |
+This is needed for mem* function prototypes used in these sources |
34 |
+ |
35 |
+Signed-off-by: Khem Raj <raj.khem@×××××.com> |
36 |
+ |
37 |
+--- a/src/sanlock_sock.c |
38 |
++++ b/src/sanlock_sock.c |
39 |
+@@ -12,6 +12,7 @@ |
40 |
+ #include <stdio.h> |
41 |
+ #include <stdint.h> |
42 |
+ #include <stddef.h> |
43 |
++#include <string.h> |
44 |
+ #include <sys/socket.h> |
45 |
+ #include <sys/un.h> |
46 |
+ |
47 |
+--- a/wdmd/wdmd_sock.c |
48 |
++++ b/wdmd/wdmd_sock.c |
49 |
+@@ -12,6 +12,7 @@ |
50 |
+ #include <stdio.h> |
51 |
+ #include <stdint.h> |
52 |
+ #include <stddef.h> |
53 |
++#include <string.h> |
54 |
+ #include <sys/socket.h> |
55 |
+ #include <sys/un.h> |
56 |
+ |
57 |
+ |
58 |
+ |
59 |
|
60 |
diff --git a/sys-cluster/sanlock/sanlock-3.8.4.ebuild b/sys-cluster/sanlock/sanlock-3.8.4-r1.ebuild |
61 |
similarity index 95% |
62 |
rename from sys-cluster/sanlock/sanlock-3.8.4.ebuild |
63 |
rename to sys-cluster/sanlock/sanlock-3.8.4-r1.ebuild |
64 |
index 638cec0ffefb..d48b048e3ead 100644 |
65 |
--- a/sys-cluster/sanlock/sanlock-3.8.4.ebuild |
66 |
+++ b/sys-cluster/sanlock/sanlock-3.8.4-r1.ebuild |
67 |
@@ -25,9 +25,11 @@ DEPEND=" |
68 |
python? ( ${PYTHON_DEPS} ) |
69 |
" |
70 |
RDEPEND="${DEPEND}" |
71 |
+BDEPEND="sys-apps/which" |
72 |
|
73 |
PATCHES=( |
74 |
"${FILESDIR}/sanlock-fence_sanlock-LDFLAGS.patch" |
75 |
+ "${FILESDIR}/sanlock-3.8.4-implicit-func-decls.patch" |
76 |
) |
77 |
|
78 |
CONFIG_CHECK="~SOFT_WATCHDOG" |