diff options
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 @@ | |||
| 1 | From 5a0799d0bacc0cf93e15febdac7d8c50b21e7234 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 15 Jul 2023 13:13:12 -0700 | ||
| 4 | Subject: [PATCH] Disable annobin plugin | ||
| 5 | |||
| 6 | OE gcc does not build this plugin, moreover there are non gcc compilers | ||
| 7 | which can be used with OE as well e.g. clang which might not have it | ||
| 8 | either | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | dlm_controld/Makefile | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/dlm_controld/Makefile b/dlm_controld/Makefile | ||
| 17 | index 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 | -- | ||
| 30 | 2.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 @@ | |||
| 1 | From 4c40289eb9e47cfd272a8cc402fd2ddb29e2a3dc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Aring <aahringo@redhat.com> | ||
| 3 | Date: Wed, 24 May 2023 13:50:59 +0000 | ||
| 4 | Subject: [PATCH] dlm_controld: remove unnecessary header include | ||
| 5 | |||
| 6 | The timewarn netlink functionality got dropped and will be removed by | ||
| 7 | kernel 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 | ||
| 9 | commit. Recent builds fails now because the UAPI header in the Linux | ||
| 10 | kernel was removed. This means older dlm sources cannot be build with | ||
| 11 | newer kernel-headers, however it is not recommended to use older dlm | ||
| 12 | sources and all existing users should upgrade anyway. | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://pagure.io/dlm/c/ddbba6608896f81bfce8f8edf3d0f507714cfc43?branch=main] | ||
| 15 | Reported-by: Fabio M. Di Nitto <fdinitto@redhat.com> | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | dlm_controld/main.c | 1 - | ||
| 19 | 1 file changed, 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/dlm_controld/main.c b/dlm_controld/main.c | ||
| 22 | index 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 | -- | ||
| 34 | 2.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" | |||
| 8 | SRC_URI = "https://pagure.io/dlm/archive/dlm-${PV}/dlm-dlm-${PV}.tar.gz \ | 8 | SRC_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 | ||
| 13 | SRC_URI[sha256sum] = "90237e18af7422ac15fc756899b3bb6932597b13342296de8e0e120e6d8729ab" | 15 | SRC_URI[sha256sum] = "90237e18af7422ac15fc756899b3bb6932597b13342296de8e0e120e6d8729ab" |
| @@ -33,6 +35,8 @@ SYSTEMD_AUTO_ENABLE = "enable" | |||
| 33 | 35 | ||
| 34 | export EXTRA_OEMAKE = "" | 36 | export EXTRA_OEMAKE = "" |
| 35 | 37 | ||
| 38 | PARALLEL_MAKE = "" | ||
| 39 | |||
| 36 | DONTBUILD = "${@bb.utils.contains('PACKAGECONFIG', 'pacemaker', '', 'fence', d)}" | 40 | DONTBUILD = "${@bb.utils.contains('PACKAGECONFIG', 'pacemaker', '', 'fence', d)}" |
| 37 | 41 | ||
| 38 | do_compile:prepend:toolchain-clang() { | 42 | do_compile:prepend:toolchain-clang() { |
