summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-07-15 13:15:31 -0700
committerKhem Raj <raj.khem@gmail.com>2023-07-15 13:23:02 -0700
commit225e5848415e5f79811563b748f3d49e3ebefca5 (patch)
treeab754ad68a152fdc7a07ff0f436168bb022b9499
parentcf42a4421baf717a186b9f57cb8911533865a0fb (diff)
downloadmeta-openembedded-225e5848415e5f79811563b748f3d49e3ebefca5.tar.gz
dlm: Fix build with linux kernel 6.4+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-extended/dlm/dlm/0001-Disable-annobin-plugin.patch31
-rw-r--r--meta-networking/recipes-extended/dlm/dlm/0001-dlm_controld-remove-unnecessary-header-include.patch35
-rw-r--r--meta-networking/recipes-extended/dlm/dlm_4.2.0.bb4
3 files changed, 70 insertions, 0 deletions
diff --git a/meta-networking/recipes-extended/dlm/dlm/0001-Disable-annobin-plugin.patch b/meta-networking/recipes-extended/dlm/dlm/0001-Disable-annobin-plugin.patch
new file mode 100644
index 0000000000..6302829267
--- /dev/null
+++ b/meta-networking/recipes-extended/dlm/dlm/0001-Disable-annobin-plugin.patch
@@ -0,0 +1,31 @@
1From 5a0799d0bacc0cf93e15febdac7d8c50b21e7234 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2023 13:13:12 -0700
4Subject: [PATCH] Disable annobin plugin
5
6OE gcc does not build this plugin, moreover there are non gcc compilers
7which can be used with OE as well e.g. clang which might not have it
8either
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 dlm_controld/Makefile | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/dlm_controld/Makefile b/dlm_controld/Makefile
17index 8802d88..0380ec9 100644
18--- a/dlm_controld/Makefile
19+++ b/dlm_controld/Makefile
20@@ -47,7 +47,7 @@ CFLAGS += -D_GNU_SOURCE -O2 -ggdb \
21
22 BIN_CFLAGS += $(CFLAGS) -fPIE -DPIE
23 BIN_CFLAGS += -I../include -I../libdlm
24-LIB_CFLAGS += $(CFLAGS) -fPIC -fplugin=annobin
25+LIB_CFLAGS += $(CFLAGS) -fPIC
26
27 BIN_LDFLAGS += $(LDFLAGS) -Wl,-z,relro -Wl,-z,now -pie
28 BIN_LDFLAGS += -lpthread -lrt -lcpg -lcmap -lcfg -lquorum -luuid
29--
302.41.0
31
diff --git a/meta-networking/recipes-extended/dlm/dlm/0001-dlm_controld-remove-unnecessary-header-include.patch b/meta-networking/recipes-extended/dlm/dlm/0001-dlm_controld-remove-unnecessary-header-include.patch
new file mode 100644
index 0000000000..55efcea184
--- /dev/null
+++ b/meta-networking/recipes-extended/dlm/dlm/0001-dlm_controld-remove-unnecessary-header-include.patch
@@ -0,0 +1,35 @@
1From 4c40289eb9e47cfd272a8cc402fd2ddb29e2a3dc Mon Sep 17 00:00:00 2001
2From: Alexander Aring <aahringo@redhat.com>
3Date: Wed, 24 May 2023 13:50:59 +0000
4Subject: [PATCH] dlm_controld: remove unnecessary header include
5
6The timewarn netlink functionality got dropped and will be removed by
7kernel v6.4. The user space part was already dropped by commit 34ea31e7
8("controld: remove timewarn handling"). This is just a left over of this
9commit. Recent builds fails now because the UAPI header in the Linux
10kernel was removed. This means older dlm sources cannot be build with
11newer kernel-headers, however it is not recommended to use older dlm
12sources and all existing users should upgrade anyway.
13
14Upstream-Status: Backport [https://pagure.io/dlm/c/ddbba6608896f81bfce8f8edf3d0f507714cfc43?branch=main]
15Reported-by: Fabio M. Di Nitto <fdinitto@redhat.com>
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 dlm_controld/main.c | 1 -
19 1 file changed, 1 deletion(-)
20
21diff --git a/dlm_controld/main.c b/dlm_controld/main.c
22index 7cf6348..e70e96a 100644
23--- a/dlm_controld/main.c
24+++ b/dlm_controld/main.c
25@@ -12,7 +12,6 @@
26 #include <pthread.h>
27 #include <linux/netlink.h>
28 #include <linux/genetlink.h>
29-#include <linux/dlm_netlink.h>
30 #include <uuid/uuid.h>
31
32 #ifdef USE_SD_NOTIFY
33--
342.41.0
35
diff --git a/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb b/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb
index 8cfb27a903..5073192763 100644
--- a/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb
+++ b/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb
@@ -8,6 +8,8 @@ REQUIRED_DISTRO_FEATURES = "systemd"
8SRC_URI = "https://pagure.io/dlm/archive/dlm-${PV}/dlm-dlm-${PV}.tar.gz \ 8SRC_URI = "https://pagure.io/dlm/archive/dlm-${PV}/dlm-dlm-${PV}.tar.gz \
9 file://0001-Include-sys-sysmacros.h-for-major-minor-macros-in-gl.patch \ 9 file://0001-Include-sys-sysmacros.h-for-major-minor-macros-in-gl.patch \
10 file://0001-make-Replace-cp-a-with-mode-preserving-options.patch \ 10 file://0001-make-Replace-cp-a-with-mode-preserving-options.patch \
11 file://0001-dlm_controld-remove-unnecessary-header-include.patch \
12 file://0001-Disable-annobin-plugin.patch \
11 " 13 "
12 14
13SRC_URI[sha256sum] = "90237e18af7422ac15fc756899b3bb6932597b13342296de8e0e120e6d8729ab" 15SRC_URI[sha256sum] = "90237e18af7422ac15fc756899b3bb6932597b13342296de8e0e120e6d8729ab"
@@ -33,6 +35,8 @@ SYSTEMD_AUTO_ENABLE = "enable"
33 35
34export EXTRA_OEMAKE = "" 36export EXTRA_OEMAKE = ""
35 37
38PARALLEL_MAKE = ""
39
36DONTBUILD = "${@bb.utils.contains('PACKAGECONFIG', 'pacemaker', '', 'fence', d)}" 40DONTBUILD = "${@bb.utils.contains('PACKAGECONFIG', 'pacemaker', '', 'fence', d)}"
37 41
38do_compile:prepend:toolchain-clang() { 42do_compile:prepend:toolchain-clang() {