summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/drbd
diff options
context:
space:
mode:
authorSakib Sajal <sakib.sajal@windriver.com>2022-04-06 12:35:57 -0400
committerKhem Raj <raj.khem@gmail.com>2022-04-10 10:05:35 -0700
commitae60e9869b3ff1425dca70195b19cc24f06e722c (patch)
treee9661e4429dfe1a20e40b3d73cbde1d547bd4019 /meta-networking/recipes-support/drbd
parent6305aacfded18abba92424ad974ccaf704998924 (diff)
downloadmeta-openembedded-ae60e9869b3ff1425dca70195b19cc24f06e722c.tar.gz
drbd-utils: update 9.13.1 -> 9.20.2
Dropped patch which is merged upstream: 0001-v84-Make-setup_options-definitions-as-extern.patch Refreshed patch: 0001-drbd-utils-support-usrmerge.patch The compiled binaries are not linked to LDFLAGS options provided by the build system cause QA issue: do_package_qa: QA Issue: File /usr/sbin/drbdmon in package drbd-utils doesn't have GNU_HASH (didn't pass LDFLAGS?) Add LDFLAGS when linking drmdmon binary. Suppress new Clang warning -Wdefaulted-function-deleted and -Wunused-private-field Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/drbd')
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch39
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch29
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils/0001-v84-Make-setup_options-definitions-as-extern.patch32
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils_9.20.2.bb (renamed from meta-networking/recipes-support/drbd/drbd-utils_9.13.1.bb)11
4 files changed, 59 insertions, 52 deletions
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch
index 5e128727d5..d976680e3b 100644
--- a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch
+++ b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch
@@ -1,4 +1,4 @@
1From 642b5823abeee27a0fdc2d12d0e1235461ace9ed Mon Sep 17 00:00:00 2001 1From 83764f5d57b3370e0b04a70f814ca49237a66eea Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 5 Sep 2019 18:57:39 +0800 3Date: Thu, 5 Sep 2019 18:57:39 +0800
4Subject: [PATCH] drbd-utils: support usrmerge 4Subject: [PATCH] drbd-utils: support usrmerge
@@ -6,18 +6,19 @@ Subject: [PATCH] drbd-utils: support usrmerge
6Upstream-Status: Inappropriate[oe-specific] 6Upstream-Status: Inappropriate[oe-specific]
7 7
8Signed-off-by: Changqing Li <changqing.li@windriver.com> 8Signed-off-by: Changqing Li <changqing.li@windriver.com>
9Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
9--- 10---
10 configure.ac | 2 +- 11 configure.ac | 2 +-
11 scripts/Makefile.in | 4 ++-- 12 scripts/Makefile.in | 10 +++++-----
12 user/v83/Makefile.in | 14 +++++++------- 13 user/v83/Makefile.in | 14 +++++++-------
13 user/v84/Makefile.in | 14 +++++++------- 14 user/v84/Makefile.in | 14 +++++++-------
14 4 files changed, 17 insertions(+), 17 deletions(-) 15 4 files changed, 20 insertions(+), 20 deletions(-)
15 16
16diff --git a/configure.ac b/configure.ac 17diff --git a/configure.ac b/configure.ac
17index 4df1b4d..c4ef1bc 100644 18index ae575586..3d7deeae 100644
18--- a/configure.ac 19--- a/configure.ac
19+++ b/configure.ac 20+++ b/configure.ac
20@@ -176,7 +176,7 @@ AC_ARG_WITH(tmpfilesdir, 21@@ -180,7 +180,7 @@ AC_ARG_WITH(tmpfilesdir,
21 AC_SUBST(tmpfilesdir) 22 AC_SUBST(tmpfilesdir)
22 23
23 # set default early 24 # set default early
@@ -27,22 +28,28 @@ index 4df1b4d..c4ef1bc 100644
27 test x"$with_udev" = xyes ; then 28 test x"$with_udev" = xyes ; then
28 if test x"$PKG_CONFIG" != x; then 29 if test x"$PKG_CONFIG" != x; then
29diff --git a/scripts/Makefile.in b/scripts/Makefile.in 30diff --git a/scripts/Makefile.in b/scripts/Makefile.in
30index fbb0beb..da701a1 100644 31index fcd298e9..2521fb08 100644
31--- a/scripts/Makefile.in 32--- a/scripts/Makefile.in
32+++ b/scripts/Makefile.in 33+++ b/scripts/Makefile.in
33@@ -75,8 +75,8 @@ endif 34@@ -88,11 +88,11 @@ ifeq ($(subst both,systemd,$(initscripttype)),systemd)
34 ifeq ($(subst both,systemd,$(initscripttype)),systemd)
35 install -d $(DESTDIR)$(systemdunitdir) 35 install -d $(DESTDIR)$(systemdunitdir)
36 install -m 644 drbd.service $(DESTDIR)$(systemdunitdir)/ 36 install -m 644 drbd.service $(DESTDIR)$(systemdunitdir)/
37- install -d $(DESTDIR)/lib/drbd/ 37 install -m 644 $(SYSTEMD_TEMPLATES) $(DESTDIR)$(systemdunitdir)/
38- install -m 755 drbd $(DESTDIR)/lib/drbd/ 38- install -d $(DESTDIR)/lib/drbd/scripts
39+ install -d $(DESTDIR)/${nonarch_libdir}/drbd 39- install -m 755 drbd $(DESTDIR)/lib/drbd/scripts
40+ install -m 755 drbd $(DESTDIR)/${nonarch_libdir}/drbd 40- install -m 755 drbd-service-shim.sh $(DESTDIR)/lib/drbd/scripts
41- install -m 755 drbd-wait-promotable.sh $(DESTDIR)/lib/drbd/scripts
42- install -m 755 ocf.ra.wrapper.sh $(DESTDIR)/lib/drbd/scripts
43+ install -d $(DESTDIR)/${nonarch_libdir}/drbdscripts
44+ install -m 755 drbd $(DESTDIR)/${nonarch_libdir}/drbdscripts
45+ install -m 755 drbd-service-shim.sh $(DESTDIR)/${nonarch_libdir}/drbdscripts
46+ install -m 755 drbd-wait-promotable.sh $(DESTDIR)/${nonarch_libdir}/drbdscripts
47+ install -m 755 ocf.ra.wrapper.sh $(DESTDIR)/${nonarch_libdir}/drbdscripts
41 install -d $(DESTDIR)$(tmpfilesdir)/ 48 install -d $(DESTDIR)$(tmpfilesdir)/
42 install -m 444 drbd.tmpfiles.conf $(DESTDIR)$(tmpfilesdir)/drbd.conf 49 install -m 444 drbd.tmpfiles.conf $(DESTDIR)$(tmpfilesdir)/drbd.conf
43 endif 50 endif
44diff --git a/user/v83/Makefile.in b/user/v83/Makefile.in 51diff --git a/user/v83/Makefile.in b/user/v83/Makefile.in
45index 27516de..b301376 100644 52index 08cfe574..4c4971b6 100644
46--- a/user/v83/Makefile.in 53--- a/user/v83/Makefile.in
47+++ b/user/v83/Makefile.in 54+++ b/user/v83/Makefile.in
48@@ -96,19 +96,19 @@ install: 55@@ -96,19 +96,19 @@ install:
@@ -73,10 +80,10 @@ index 27516de..b301376 100644
73 .PHONY: install uninstall clean distclean 80 .PHONY: install uninstall clean distclean
74 ../../configure: 81 ../../configure:
75diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in 82diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in
76index 38977c6..05ef060 100644 83index 0fcefc5f..81f7d5ec 100644
77--- a/user/v84/Makefile.in 84--- a/user/v84/Makefile.in
78+++ b/user/v84/Makefile.in 85+++ b/user/v84/Makefile.in
79@@ -109,19 +109,19 @@ ifeq ($(WITH_84_SUPPORT),yes) 86@@ -110,19 +110,19 @@ ifeq ($(WITH_84_SUPPORT),yes)
80 install -d $(DESTDIR)$(localstatedir)/lib/drbd 87 install -d $(DESTDIR)$(localstatedir)/lib/drbd
81 install -d $(DESTDIR)$(localstatedir)/run/drbd 88 install -d $(DESTDIR)$(localstatedir)/run/drbd
82 install -d $(DESTDIR)$(localstatedir)/lock 89 install -d $(DESTDIR)$(localstatedir)/lock
@@ -104,5 +111,5 @@ index 38977c6..05ef060 100644
104 spell: 111 spell:
105 for f in drbdadm_adjust.c drbdadm_main.c drbdadm_parser.c drbdadm_usage_cnt.c drbdsetup.c drbdtool_common.c; do \ 112 for f in drbdadm_adjust.c drbdadm_main.c drbdadm_parser.c drbdadm_usage_cnt.c drbdsetup.c drbdtool_common.c; do \
106-- 113--
1072.7.4 1142.33.0
108 115
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch
new file mode 100644
index 0000000000..354be0ff18
--- /dev/null
+++ b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch
@@ -0,0 +1,29 @@
1From a61b9ff2d2cb7387a5cd347b2201535ee45a46ee Mon Sep 17 00:00:00 2001
2From: Sakib Sajal <sakib.sajal@windriver.com>
3Date: Thu, 31 Mar 2022 15:09:58 -0400
4Subject: [PATCH] drbdmon: add LDFLAGS when linking
5
6Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
7---
8 user/drbdmon/Makefile.in | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11--- a/user/drbdmon/Makefile.in
12+++ b/user/drbdmon/Makefile.in
13@@ -1,6 +1,6 @@
14 CXXFLAGS=-std=c++11 -I. -I../shared -Icppdsaext/src -Wall -Werror -pedantic-errors -fPIC -O2 \
15 -Wsign-compare -Wpointer-arith -Wswitch-default -Wswitch-enum -Wtype-limits \
16--Wmissing-declarations -Wshadow
17+-Wmissing-declarations -Wshadow -Wno-defaulted-function-deleted -Wno-unused-private-field
18 CXX = @CXX@
19 LIBS = @LIBS@
20
21@@ -51,7 +51,7 @@ $(dsaext-obj): $(basename $(dsaext-obj))
22 $(integerparse-obj): $(basename $(integerparse-obj)).cpp $(basename $(integerparse-obj)).h
23
24 drbdmon: $(ls-obj)
25- $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LIBS)
26+ $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS)
27
28 # do not try to rebuild Makefile itself
29 Makefile: ;
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-v84-Make-setup_options-definitions-as-extern.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-v84-Make-setup_options-definitions-as-extern.patch
deleted file mode 100644
index 6702f3bde4..0000000000
--- a/meta-networking/recipes-support/drbd/drbd-utils/0001-v84-Make-setup_options-definitions-as-extern.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From d095caf6f8f77fe056fb90ccd5d89c207a7f346d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Aug 2020 12:59:38 -0700
4Subject: [PATCH] v84: Make setup_options definitions as extern
5
6This is already defined in drbdadm_main.c, therefore make this
7declaration to be extern for other modules
8
9Fixes compatibility with gcc-10 which uses -fno-common by default
10
11Upstream-Status: Submitted [https://github.com/LINBIT/drbd-utils/pull/7]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 user/v84/drbdadm.h | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/user/v84/drbdadm.h b/user/v84/drbdadm.h
18index ed63d78c..8469f1c4 100644
19--- a/user/v84/drbdadm.h
20+++ b/user/v84/drbdadm.h
21@@ -251,7 +251,7 @@ struct setup_option {
22 bool explicit;
23 char *option;
24 };
25-struct setup_option *setup_options;
26+extern struct setup_option *setup_options;
27
28 extern void add_setup_option(bool explicit, char *option);
29
30--
312.28.0
32
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.13.1.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.20.2.bb
index a246464b29..640e4e7858 100644
--- a/meta-networking/recipes-support/drbd/drbd-utils_9.13.1.bb
+++ b/meta-networking/recipes-support/drbd/drbd-utils_9.20.2.bb
@@ -10,11 +10,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
10 10
11SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=${PV};protocol=https \ 11SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=${PV};protocol=https \
12 git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=git/drbd-headers;branch=master;protocol=https \ 12 git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=git/drbd-headers;branch=master;protocol=https \
13 file://0001-v84-Make-setup_options-definitions-as-extern.patch \
14 ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','file://0001-drbd-utils-support-usrmerge.patch','',d)} \ 13 ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','file://0001-drbd-utils-support-usrmerge.patch','',d)} \
14 file://0001-drbdmon-add-LDFLAGS-when-linking.patch \
15 " 15 "
16SRCREV_drbd-utils = "b24b0f7e42d500d3538d7eeffa017ec78d08f918" 16SRCREV_drbd-utils = "087ee6b4961ca154d76e4211223b03149373bed8"
17SRCREV_drbd-headers = "c757cf357edef67751b8f45a6ea894d287180087" 17SRCREV_drbd-headers = "f1529aa84e9d2f66c96ad283a1bbb708aabf03f7"
18 18
19SRCREV_FORMAT = "drbd-utils_drbd-headers" 19SRCREV_FORMAT = "drbd-utils_drbd-headers"
20 20
@@ -56,7 +56,10 @@ RDEPENDS:${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module
56FILES:${PN} += "/run" 56FILES:${PN} += "/run"
57FILES:${PN} += "${nonarch_base_libdir}/drbd \ 57FILES:${PN} += "${nonarch_base_libdir}/drbd \
58 ${nonarch_libdir}/drbd \ 58 ${nonarch_libdir}/drbd \
59 ${nonarch_libdir}/tmpfiles.d" 59 ${nonarch_libdir}/tmpfiles.d \
60 ${nonarch_libdir}/drbdscripts/* \
61 ${systemd_unitdir}/system/* \
62"
60FILES:${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug" 63FILES:${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug"
61 64
62CLEANBROKEN = "1" 65CLEANBROKEN = "1"