diff options
author | Sakib Sajal <sakib.sajal@windriver.com> | 2022-04-06 12:35:57 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-04-10 10:05:35 -0700 |
commit | ae60e9869b3ff1425dca70195b19cc24f06e722c (patch) | |
tree | e9661e4429dfe1a20e40b3d73cbde1d547bd4019 /meta-networking/recipes-support/drbd/drbd-utils | |
parent | 6305aacfded18abba92424ad974ccaf704998924 (diff) | |
download | meta-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/drbd-utils')
3 files changed, 52 insertions, 48 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 @@ | |||
1 | From 642b5823abeee27a0fdc2d12d0e1235461ace9ed Mon Sep 17 00:00:00 2001 | 1 | From 83764f5d57b3370e0b04a70f814ca49237a66eea Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Thu, 5 Sep 2019 18:57:39 +0800 | 3 | Date: Thu, 5 Sep 2019 18:57:39 +0800 |
4 | Subject: [PATCH] drbd-utils: support usrmerge | 4 | Subject: [PATCH] drbd-utils: support usrmerge |
@@ -6,18 +6,19 @@ Subject: [PATCH] drbd-utils: support usrmerge | |||
6 | Upstream-Status: Inappropriate[oe-specific] | 6 | Upstream-Status: Inappropriate[oe-specific] |
7 | 7 | ||
8 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 8 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
9 | Signed-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 | ||
16 | diff --git a/configure.ac b/configure.ac | 17 | diff --git a/configure.ac b/configure.ac |
17 | index 4df1b4d..c4ef1bc 100644 | 18 | index 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 |
29 | diff --git a/scripts/Makefile.in b/scripts/Makefile.in | 30 | diff --git a/scripts/Makefile.in b/scripts/Makefile.in |
30 | index fbb0beb..da701a1 100644 | 31 | index 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 |
44 | diff --git a/user/v83/Makefile.in b/user/v83/Makefile.in | 51 | diff --git a/user/v83/Makefile.in b/user/v83/Makefile.in |
45 | index 27516de..b301376 100644 | 52 | index 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: |
75 | diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in | 82 | diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in |
76 | index 38977c6..05ef060 100644 | 83 | index 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 | -- |
107 | 2.7.4 | 114 | 2.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 @@ | |||
1 | From a61b9ff2d2cb7387a5cd347b2201535ee45a46ee Mon Sep 17 00:00:00 2001 | ||
2 | From: Sakib Sajal <sakib.sajal@windriver.com> | ||
3 | Date: Thu, 31 Mar 2022 15:09:58 -0400 | ||
4 | Subject: [PATCH] drbdmon: add LDFLAGS when linking | ||
5 | |||
6 | Signed-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 @@ | |||
1 | From d095caf6f8f77fe056fb90ccd5d89c207a7f346d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 12 Aug 2020 12:59:38 -0700 | ||
4 | Subject: [PATCH] v84: Make setup_options definitions as extern | ||
5 | |||
6 | This is already defined in drbdadm_main.c, therefore make this | ||
7 | declaration to be extern for other modules | ||
8 | |||
9 | Fixes compatibility with gcc-10 which uses -fno-common by default | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/LINBIT/drbd-utils/pull/7] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | user/v84/drbdadm.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/user/v84/drbdadm.h b/user/v84/drbdadm.h | ||
18 | index 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 | -- | ||
31 | 2.28.0 | ||
32 | |||