commit: 2c1e76900f3ab6b0a34f14372970325d6518340a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Sep 7 04:52:07 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Sep 7 04:52:18 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c1e7690
sys-cluster/sanlock: fix implicit function declarations Unlike normal missing includes, implicit function declaration fixes require a revbump as they can affect code generation. Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/sanlock-3.8.4-implicit-func-decls.patch | 34 ++++++++++++++++++++++ ...anlock-3.8.4.ebuild => sanlock-3.8.4-r1.ebuild} | 2 ++ 2 files changed, 36 insertions(+) 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 new file mode 100644 index 000000000000..7e99d9b1f939 --- /dev/null +++ b/sys-cluster/sanlock/files/sanlock-3.8.4-implicit-func-decls.patch @@ -0,0 +1,34 @@ +https://pagure.io/sanlock/issue/8 + +From 272f9838f3495f5e419f77e000762c420754c96d Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.k...@gmail.com> +Date: Sep 02 2022 22:58:56 +0000 +Subject: add missing system header string.h + + +This is needed for mem* function prototypes used in these sources + +Signed-off-by: Khem Raj <raj.k...@gmail.com> + +--- a/src/sanlock_sock.c ++++ b/src/sanlock_sock.c +@@ -12,6 +12,7 @@ + #include <stdio.h> + #include <stdint.h> + #include <stddef.h> ++#include <string.h> + #include <sys/socket.h> + #include <sys/un.h> + +--- a/wdmd/wdmd_sock.c ++++ b/wdmd/wdmd_sock.c +@@ -12,6 +12,7 @@ + #include <stdio.h> + #include <stdint.h> + #include <stddef.h> ++#include <string.h> + #include <sys/socket.h> + #include <sys/un.h> + + + diff --git a/sys-cluster/sanlock/sanlock-3.8.4.ebuild b/sys-cluster/sanlock/sanlock-3.8.4-r1.ebuild similarity index 95% rename from sys-cluster/sanlock/sanlock-3.8.4.ebuild rename to sys-cluster/sanlock/sanlock-3.8.4-r1.ebuild index 638cec0ffefb..d48b048e3ead 100644 --- a/sys-cluster/sanlock/sanlock-3.8.4.ebuild +++ b/sys-cluster/sanlock/sanlock-3.8.4-r1.ebuild @@ -25,9 +25,11 @@ DEPEND=" python? ( ${PYTHON_DEPS} ) " RDEPEND="${DEPEND}" +BDEPEND="sys-apps/which" PATCHES=( "${FILESDIR}/sanlock-fence_sanlock-LDFLAGS.patch" + "${FILESDIR}/sanlock-3.8.4-implicit-func-decls.patch" ) CONFIG_CHECK="~SOFT_WATCHDOG"