diff options
| -rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch | 155 | ||||
| -rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch | 17 | ||||
| -rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb (renamed from meta-networking/recipes-support/drbd/drbd-utils_9.28.0.bb) | 4 |
3 files changed, 20 insertions, 156 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 ef0229d5bb..93cb8e185e 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,29 +1,21 @@ | |||
| 1 | From 9109f15f5b8ae142823194b9ef50c392615fe38d Mon Sep 17 00:00:00 2001 | 1 | From a019fbe36ab965e754b818fe1bdb0cea0e3ffb60 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, 21 Apr 2022 17:22:35 +0800 | 3 | Date: Thu, 21 Apr 2022 17:22:35 +0800 |
| 4 | Subject: [PATCH] drbd-utils: support usermerge | 4 | Subject: [PATCH] drbd-utils: support usrmerge |
| 5 | 5 | ||
| 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 | Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> |
| 10 | --- | 10 | --- |
| 11 | configure.ac | 2 +- | 11 | configure.ac | 2 +- |
| 12 | scripts/Makefile.in | 10 +++++----- | 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | scripts/drbd-demote-or-escalate@.service | 2 +- | ||
| 14 | scripts/drbd-promote@.service | 4 ++-- | ||
| 15 | scripts/drbd-wait-promotable@.service | 2 +- | ||
| 16 | scripts/drbd.service | 6 +++--- | ||
| 17 | scripts/drbd@.service | 6 +++--- | ||
| 18 | scripts/ocf.ra@.service | 4 ++-- | ||
| 19 | user/v84/Makefile.in | 14 +++++++------- | ||
| 20 | 9 files changed, 25 insertions(+), 25 deletions(-) | ||
| 21 | 13 | ||
| 22 | diff --git a/configure.ac b/configure.ac | 14 | diff --git a/configure.ac b/configure.ac |
| 23 | index d3ec5ff1..910232b1 100644 | 15 | index 37148597..52015fb2 100644 |
| 24 | --- a/configure.ac | 16 | --- a/configure.ac |
| 25 | +++ b/configure.ac | 17 | +++ b/configure.ac |
| 26 | @@ -178,7 +178,7 @@ AC_ARG_WITH(tmpfilesdir, | 18 | @@ -217,7 +217,7 @@ AC_ARG_WITH(tmpfilesdir, |
| 27 | AC_SUBST(tmpfilesdir) | 19 | AC_SUBST(tmpfilesdir) |
| 28 | 20 | ||
| 29 | # set default early | 21 | # set default early |
| @@ -32,141 +24,6 @@ index d3ec5ff1..910232b1 100644 | |||
| 32 | if test x"$with_udev" = x || \ | 24 | if test x"$with_udev" = x || \ |
| 33 | test x"$with_udev" = xyes ; then | 25 | test x"$with_udev" = xyes ; then |
| 34 | if test x"$PKG_CONFIG" != x; then | 26 | if test x"$PKG_CONFIG" != x; then |
| 35 | diff --git a/scripts/Makefile.in b/scripts/Makefile.in | ||
| 36 | index 15a26f37..ff028310 100644 | ||
| 37 | --- a/scripts/Makefile.in | ||
| 38 | +++ b/scripts/Makefile.in | ||
| 39 | @@ -90,11 +90,11 @@ ifeq ($(subst both,systemd,$(initscripttype)),systemd) | ||
| 40 | install -d $(DESTDIR)$(systemdunitdir) | ||
| 41 | install -m 644 $(SYSTEMD_UNITS) $(DESTDIR)$(systemdunitdir)/ | ||
| 42 | install -m 644 $(SYSTEMD_TEMPLATES) $(DESTDIR)$(systemdunitdir)/ | ||
| 43 | - install -d $(DESTDIR)/lib/drbd/scripts | ||
| 44 | - install -m 755 drbd $(DESTDIR)/lib/drbd/scripts | ||
| 45 | - install -m 755 drbd-service-shim.sh $(DESTDIR)/lib/drbd/scripts | ||
| 46 | - install -m 755 drbd-wait-promotable.sh $(DESTDIR)/lib/drbd/scripts | ||
| 47 | - install -m 755 ocf.ra.wrapper.sh $(DESTDIR)/lib/drbd/scripts | ||
| 48 | + install -d $(DESTDIR)/${nonarch_libdir}/drbd/scripts | ||
| 49 | + install -m 755 drbd $(DESTDIR)/${nonarch_libdir}/drbd/scripts | ||
| 50 | + install -m 755 drbd-service-shim.sh $(DESTDIR)/${nonarch_libdir}/drbd/scripts | ||
| 51 | + install -m 755 drbd-wait-promotable.sh $(DESTDIR)/${nonarch_libdir}/drbd/scripts | ||
| 52 | + install -m 755 ocf.ra.wrapper.sh $(DESTDIR)/${nonarch_libdir}/drbd/scripts | ||
| 53 | install -d $(DESTDIR)$(tmpfilesdir)/ | ||
| 54 | install -m 444 drbd.tmpfiles.conf $(DESTDIR)$(tmpfilesdir)/drbd.conf | ||
| 55 | endif | ||
| 56 | diff --git a/scripts/drbd-demote-or-escalate@.service b/scripts/drbd-demote-or-escalate@.service | ||
| 57 | index 20932238..8b5ce4a2 100644 | ||
| 58 | --- a/scripts/drbd-demote-or-escalate@.service | ||
| 59 | +++ b/scripts/drbd-demote-or-escalate@.service | ||
| 60 | @@ -28,5 +28,5 @@ TimeoutSec=60 | ||
| 61 | # "Type=forking" would be an option to have it retry a number of times, | ||
| 62 | # and then only escalate to FailureAction if that did not help. | ||
| 63 | Type=oneshot | ||
| 64 | -ExecStart=/lib/drbd/scripts/drbd-service-shim.sh secondary-or-escalate %I | ||
| 65 | +ExecStart=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh secondary-or-escalate %I | ||
| 66 | ExecStopPost=-/bin/journalctl --sync | ||
| 67 | diff --git a/scripts/drbd-promote@.service b/scripts/drbd-promote@.service | ||
| 68 | index 71345d9b..678e0703 100644 | ||
| 69 | --- a/scripts/drbd-promote@.service | ||
| 70 | +++ b/scripts/drbd-promote@.service | ||
| 71 | @@ -24,5 +24,5 @@ RemainAfterExit=yes | ||
| 72 | # (ab)using systemd features | ||
| 73 | # if we cannot configure and promote, that's a condition, not a failure | ||
| 74 | # See the comment above wrt. FailureAction vs OnFailure | ||
| 75 | -ExecCondition=/lib/drbd/scripts/drbd-service-shim.sh primary %I | ||
| 76 | -ExecStop=/lib/drbd/scripts/drbd-service-shim.sh secondary %I | ||
| 77 | +ExecCondition=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh primary %I | ||
| 78 | +ExecStop=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh secondary %I | ||
| 79 | diff --git a/scripts/drbd-wait-promotable@.service b/scripts/drbd-wait-promotable@.service | ||
| 80 | index 81c3789f..3416abc6 100644 | ||
| 81 | --- a/scripts/drbd-wait-promotable@.service | ||
| 82 | +++ b/scripts/drbd-wait-promotable@.service | ||
| 83 | @@ -10,7 +10,7 @@ Type=oneshot | ||
| 84 | |||
| 85 | # on first start, wait for access to "good data" | ||
| 86 | # let systemd handle timeouts | ||
| 87 | -ExecStart=/lib/drbd/scripts/drbd-wait-promotable.sh %I | ||
| 88 | +ExecStart=@nonarch_libdir@/drbd/scripts/drbd-wait-promotable.sh %I | ||
| 89 | RemainAfterExit=yes | ||
| 90 | |||
| 91 | [Install] | ||
| 92 | diff --git a/scripts/drbd.service b/scripts/drbd.service | ||
| 93 | index 96c599e7..c81e95a6 100644 | ||
| 94 | --- a/scripts/drbd.service | ||
| 95 | +++ b/scripts/drbd.service | ||
| 96 | @@ -12,11 +12,11 @@ RemainAfterExit=yes | ||
| 97 | # A check for INIT_VERSION already exists, just set it to something. | ||
| 98 | Environment=INIT_VERSION=systemd | ||
| 99 | |||
| 100 | -ExecStart=/lib/drbd/scripts/drbd start | ||
| 101 | -ExecStop=/lib/drbd/scripts/drbd stop | ||
| 102 | +ExecStart=@nonarch_libdir@/drbd/scripts/drbd start | ||
| 103 | +ExecStop=@nonarch_libdir@/drbd/scripts/drbd stop | ||
| 104 | |||
| 105 | # Re-adjust everything on reload | ||
| 106 | -ExecReload=/lib/drbd/scripts/drbd reload | ||
| 107 | +ExecReload=@nonarch_libdir@/drbd/scripts/drbd reload | ||
| 108 | |||
| 109 | [Install] | ||
| 110 | WantedBy=multi-user.target | ||
| 111 | diff --git a/scripts/drbd@.service b/scripts/drbd@.service | ||
| 112 | index 0fad10be..556f3857 100644 | ||
| 113 | --- a/scripts/drbd@.service | ||
| 114 | +++ b/scripts/drbd@.service | ||
| 115 | @@ -35,8 +35,8 @@ RemainAfterExit=yes | ||
| 116 | |||
| 117 | # depends... do we want this as ExecCondition or as ExecStart | ||
| 118 | # failed start is "failed", failed condition is just "not startable yet" | ||
| 119 | -ExecStart=/lib/drbd/scripts/drbd-service-shim.sh adjust %I | ||
| 120 | -ExecReload=/lib/drbd/scripts/drbd-service-shim.sh adjust %I | ||
| 121 | +ExecStart=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh adjust %I | ||
| 122 | +ExecReload=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh adjust %I | ||
| 123 | |||
| 124 | # can only succeed, if you first stop all depending services | ||
| 125 | -ExecStopPost=/lib/drbd/scripts/drbd-service-shim.sh down %I | ||
| 126 | +ExecStopPost=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh down %I | ||
| 127 | diff --git a/scripts/ocf.ra@.service b/scripts/ocf.ra@.service | ||
| 128 | index 9c2268a6..1666c482 100644 | ||
| 129 | --- a/scripts/ocf.ra@.service | ||
| 130 | +++ b/scripts/ocf.ra@.service | ||
| 131 | @@ -22,5 +22,5 @@ Environment=monitor_inverval=30 | ||
| 132 | # Only the first argument is used by the wrapper, | ||
| 133 | # the %n is just to identify which is which in the process list. | ||
| 134 | # All parameterization is done via Environment= in per instance override.conf | ||
| 135 | -ExecStart=/lib/drbd/scripts/ocf.ra.wrapper.sh start-and-monitor %n | ||
| 136 | -ExecStopPost=/lib/drbd/scripts/ocf.ra.wrapper.sh stop %n | ||
| 137 | +ExecStart=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh start-and-monitor %n | ||
| 138 | +ExecStopPost=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh stop %n | ||
| 139 | diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in | ||
| 140 | index 0fcefc5f..81f7d5ec 100644 | ||
| 141 | --- a/user/v84/Makefile.in | ||
| 142 | +++ b/user/v84/Makefile.in | ||
| 143 | @@ -110,19 +110,19 @@ ifeq ($(WITH_84_SUPPORT),yes) | ||
| 144 | install -d $(DESTDIR)$(localstatedir)/lib/drbd | ||
| 145 | install -d $(DESTDIR)$(localstatedir)/run/drbd | ||
| 146 | install -d $(DESTDIR)$(localstatedir)/lock | ||
| 147 | - install -d $(DESTDIR)/lib/drbd/ | ||
| 148 | + install -d $(DESTDIR)/${nonarch_libdir}/drbd/ | ||
| 149 | if getent group haclient > /dev/null 2> /dev/null ; then \ | ||
| 150 | - install -g haclient -m 4750 drbdsetup-84 $(DESTDIR)/lib/drbd/ ; \ | ||
| 151 | - install -m 755 drbdadm-84 $(DESTDIR)/lib/drbd/ ; \ | ||
| 152 | + install -g haclient -m 4750 drbdsetup-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
| 153 | + install -m 755 drbdadm-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
| 154 | else \ | ||
| 155 | - install -m 755 drbdsetup-84 $(DESTDIR)/lib/drbd/ ; \ | ||
| 156 | - install -m 755 drbdadm-84 $(DESTDIR)/lib/drbd/ ; \ | ||
| 157 | + install -m 755 drbdsetup-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
| 158 | + install -m 755 drbdadm-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
| 159 | fi | ||
| 160 | endif | ||
| 161 | |||
| 162 | uninstall: | ||
| 163 | - rm -f $(DESTDIR)/lib/drbd/drbdsetup-84 | ||
| 164 | - rm -f $(DESTDIR)/lib/drbd/drbdadm-84 | ||
| 165 | + rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdsetup-84 | ||
| 166 | + rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdadm-84 | ||
| 167 | |||
| 168 | spell: | ||
| 169 | for f in drbdadm_adjust.c drbdadm_main.c drbdadm_parser.c drbdadm_usage_cnt.c drbdsetup.c drbdtool_common.c; do \ | ||
| 170 | -- | 27 | -- |
| 171 | 2.25.1 | 28 | 2.25.1 |
| 172 | 29 | ||
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 index c7766067a1..ac2626c1c8 100644 --- 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 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From bb044160faf4ae7615ddfdb17641dd88c33cde57 Mon Sep 17 00:00:00 2001 | 1 | From 26ed5003847a14a16d0c1d4030aa1a361c0289fb Mon Sep 17 00:00:00 2001 |
| 2 | From: Sakib Sajal <sakib.sajal@windriver.com> | 2 | From: Sakib Sajal <sakib.sajal@windriver.com> |
| 3 | Date: Thu, 31 Mar 2022 15:09:58 -0400 | 3 | Date: Thu, 31 Mar 2022 15:09:58 -0400 |
| 4 | Subject: [PATCH] drbdmon: add LDFLAGS when linking | 4 | Subject: [PATCH] drbdmon: add LDFLAGS when linking |
| @@ -7,11 +7,11 @@ Upstream-Status: Pending | |||
| 7 | 7 | ||
| 8 | Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> | 8 | Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> |
| 9 | --- | 9 | --- |
| 10 | user/drbdmon/Makefile.in | 4 ++-- | 10 | user/drbdmon/Makefile.in | 6 +++--- |
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) | 11 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 12 | 12 | ||
| 13 | diff --git a/user/drbdmon/Makefile.in b/user/drbdmon/Makefile.in | 13 | diff --git a/user/drbdmon/Makefile.in b/user/drbdmon/Makefile.in |
| 14 | index 7bd8987e..115a81b8 100644 | 14 | index 9c5427e9..0101a60b 100644 |
| 15 | --- a/user/drbdmon/Makefile.in | 15 | --- a/user/drbdmon/Makefile.in |
| 16 | +++ b/user/drbdmon/Makefile.in | 16 | +++ b/user/drbdmon/Makefile.in |
| 17 | @@ -1,6 +1,6 @@ | 17 | @@ -1,6 +1,6 @@ |
| @@ -22,12 +22,19 @@ index 7bd8987e..115a81b8 100644 | |||
| 22 | CXX = @CXX@ | 22 | CXX = @CXX@ |
| 23 | LIBS = @LIBS@ | 23 | LIBS = @LIBS@ |
| 24 | 24 | ||
| 25 | @@ -72,7 +72,7 @@ $(dsaext-obj): $(basename $(dsaext-obj)).cpp $(basename $(dsaext-obj)).h | 25 | @@ -76,10 +76,10 @@ $(dsaext-obj): $(basename $(dsaext-obj)).cpp $(basename $(dsaext-obj)).h |
| 26 | $(integerparse-obj): $(basename $(integerparse-obj)).cpp $(basename $(integerparse-obj)).h | 26 | $(integerparse-obj): $(basename $(integerparse-obj)).cpp $(basename $(integerparse-obj)).h |
| 27 | 27 | ||
| 28 | drbdmon: $(ls-obj) | 28 | drbdmon: $(ls-obj) |
| 29 | - $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LIBS) | 29 | - $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LIBS) |
| 30 | + $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) | 30 | + $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) |
| 31 | 31 | ||
| 32 | drbd-events-log-supplier: $(supplier-obj) | ||
| 33 | - $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ | ||
| 34 | + $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ | ||
| 35 | |||
| 32 | # do not try to rebuild Makefile itself | 36 | # do not try to rebuild Makefile itself |
| 33 | Makefile: ; | 37 | Makefile: ; |
| 38 | -- | ||
| 39 | 2.25.1 | ||
| 40 | |||
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.28.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb index af0afc2a91..d9f1ae3f77 100644 --- a/meta-networking/recipes-support/drbd/drbd-utils_9.28.0.bb +++ b/meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb | |||
| @@ -12,8 +12,8 @@ SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=master;prot | |||
| 12 | file://0001-drbdmon-add-LDFLAGS-when-linking.patch \ | 12 | file://0001-drbdmon-add-LDFLAGS-when-linking.patch \ |
| 13 | ${@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 | " | 14 | " |
| 15 | SRCREV_drbd-utils = "ba2ce9037989b6141222c7901d1219cf852949f1" | 15 | SRCREV_drbd-utils = "36ea199f38b543b2da92219109c2832e122e5bf9" |
| 16 | SRCREV_drbd-headers = "0349f00825b4198d4ec3248f43884114a187676a" | 16 | SRCREV_drbd-headers = "94f4472513f351efba5788f783feba6ac6efe9fc" |
| 17 | 17 | ||
| 18 | SRCREV_FORMAT = "drbd-utils_drbd-headers" | 18 | SRCREV_FORMAT = "drbd-utils_drbd-headers" |
| 19 | 19 | ||
