diff options
-rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch | 55 | ||||
-rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch | 47 | ||||
-rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils_9.28.0.bb (renamed from meta-networking/recipes-support/drbd/drbd-utils_9.27.0.bb) | 3 |
3 files changed, 10 insertions, 95 deletions
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch deleted file mode 100644 index b98e1e70c7..0000000000 --- a/meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | From 61991db099f66348dddbc3408e7ee8c05bda85cb Mon Sep 17 00:00:00 2001 | ||
2 | From: Yoann Congal <yoann.congal@smile.fr> | ||
3 | Date: Sat, 2 Mar 2024 16:23:07 +0100 | ||
4 | Subject: [PATCH] configure.ac: Add an option to disable host udev version | ||
5 | checks | ||
6 | |||
7 | In cross-compilation environment, the build host might have an outdated | ||
8 | udev or no udev at all. But the user may still want to build with the | ||
9 | enabled udev rule (for its udev-enabled target). | ||
10 | |||
11 | This patch adds a "--disable-udevchecks" option the disable build host | ||
12 | udev version check at configure-time and unconditionally install the | ||
13 | enabled udev rule. Without this new option, the behavior stays the same | ||
14 | (checks enabled). | ||
15 | |||
16 | Signed-off-by: Yoann Congal <yoann.congal@smile.fr> | ||
17 | Upstream-Status: Backport [https://github.com/LINBIT/drbd-utils/commit/f2b5a7335ae52109dfb95a9d99ae20519c43d59a] | ||
18 | --- | ||
19 | configure.ac | 9 +++++++-- | ||
20 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/configure.ac b/configure.ac | ||
23 | index f1d69ea3..4c56d33b 100644 | ||
24 | --- a/configure.ac | ||
25 | +++ b/configure.ac | ||
26 | @@ -71,6 +71,11 @@ AC_ARG_WITH([udev], | ||
27 | [AS_HELP_STRING([--with-udev], | ||
28 | [Enable udev integration])], | ||
29 | [WITH_UDEV=$withval]) | ||
30 | +AC_ARG_ENABLE([udevchecks], | ||
31 | + [AS_HELP_STRING([--disable-udevchecks], | ||
32 | + [Disable host udev version checks])], | ||
33 | + [], | ||
34 | + [enable_udevchecks=yes]) | ||
35 | AC_ARG_WITH([xen], | ||
36 | [AS_HELP_STRING([--with-xen], | ||
37 | [Enable Xen integration])], | ||
38 | @@ -315,7 +320,7 @@ if test -z $GIT; then | ||
39 | AC_MSG_WARN(Cannot update buildtag without git. You may safely ignore this warning when building from a tarball.) | ||
40 | fi | ||
41 | |||
42 | -if test $UDEVADM = false && test $UDEVINFO = false; then | ||
43 | +if test "x$enable_udevchecks" != "xno" && test $UDEVADM = false && test $UDEVINFO = false; then | ||
44 | if test "$WITH_UDEV" = "yes"; then | ||
45 | AC_MSG_WARN([udev support enabled, but neither udevadm nor udevinfo found on this system.]) | ||
46 | fi | ||
47 | @@ -423,7 +428,7 @@ else | ||
48 | test -z $INITDIR && INITDIR="$sysconfdir/init.d" | ||
49 | |||
50 | dnl Our udev rules file is known to work only with udev >= 85 | ||
51 | - if test "$WITH_UDEV" = "yes"; then | ||
52 | + if test "x$enable_udevchecks" != "xno" && test "$WITH_UDEV" = "yes"; then | ||
53 | udev_version=$( set -- $($UDEVADM version); echo $1 ) | ||
54 | if test -z "$udev_version"; then | ||
55 | udev_version=$( set -- $($UDEVINFO -V); echo $3 ) | ||
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 27f0a9b54a..ef0229d5bb 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 264ae7b062ac52a5545a8a562b51001f7ce7369d Mon Sep 17 00:00:00 2001 | 1 | From 9109f15f5b8ae142823194b9ef50c392615fe38d 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 usermerge |
@@ -16,15 +16,14 @@ Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> | |||
16 | scripts/drbd.service | 6 +++--- | 16 | scripts/drbd.service | 6 +++--- |
17 | scripts/drbd@.service | 6 +++--- | 17 | scripts/drbd@.service | 6 +++--- |
18 | scripts/ocf.ra@.service | 4 ++-- | 18 | scripts/ocf.ra@.service | 4 ++-- |
19 | user/v83/Makefile.in | 14 +++++++------- | ||
20 | user/v84/Makefile.in | 14 +++++++------- | 19 | user/v84/Makefile.in | 14 +++++++------- |
21 | 10 files changed, 32 insertions(+), 32 deletions(-) | 20 | 9 files changed, 25 insertions(+), 25 deletions(-) |
22 | 21 | ||
23 | diff --git a/configure.ac b/configure.ac | 22 | diff --git a/configure.ac b/configure.ac |
24 | index f1d69ea3..3289ac7d 100644 | 23 | index d3ec5ff1..910232b1 100644 |
25 | --- a/configure.ac | 24 | --- a/configure.ac |
26 | +++ b/configure.ac | 25 | +++ b/configure.ac |
27 | @@ -183,7 +183,7 @@ AC_ARG_WITH(tmpfilesdir, | 26 | @@ -178,7 +178,7 @@ AC_ARG_WITH(tmpfilesdir, |
28 | AC_SUBST(tmpfilesdir) | 27 | AC_SUBST(tmpfilesdir) |
29 | 28 | ||
30 | # set default early | 29 | # set default early |
@@ -34,10 +33,10 @@ index f1d69ea3..3289ac7d 100644 | |||
34 | test x"$with_udev" = xyes ; then | 33 | test x"$with_udev" = xyes ; then |
35 | if test x"$PKG_CONFIG" != x; then | 34 | if test x"$PKG_CONFIG" != x; then |
36 | diff --git a/scripts/Makefile.in b/scripts/Makefile.in | 35 | diff --git a/scripts/Makefile.in b/scripts/Makefile.in |
37 | index aca15a22..a1cd2ffe 100644 | 36 | index 15a26f37..ff028310 100644 |
38 | --- a/scripts/Makefile.in | 37 | --- a/scripts/Makefile.in |
39 | +++ b/scripts/Makefile.in | 38 | +++ b/scripts/Makefile.in |
40 | @@ -91,11 +91,11 @@ ifeq ($(subst both,systemd,$(initscripttype)),systemd) | 39 | @@ -90,11 +90,11 @@ ifeq ($(subst both,systemd,$(initscripttype)),systemd) |
41 | install -d $(DESTDIR)$(systemdunitdir) | 40 | install -d $(DESTDIR)$(systemdunitdir) |
42 | install -m 644 $(SYSTEMD_UNITS) $(DESTDIR)$(systemdunitdir)/ | 41 | install -m 644 $(SYSTEMD_UNITS) $(DESTDIR)$(systemdunitdir)/ |
43 | install -m 644 $(SYSTEMD_TEMPLATES) $(DESTDIR)$(systemdunitdir)/ | 42 | install -m 644 $(SYSTEMD_TEMPLATES) $(DESTDIR)$(systemdunitdir)/ |
@@ -137,37 +136,6 @@ index 9c2268a6..1666c482 100644 | |||
137 | -ExecStopPost=/lib/drbd/scripts/ocf.ra.wrapper.sh stop %n | 136 | -ExecStopPost=/lib/drbd/scripts/ocf.ra.wrapper.sh stop %n |
138 | +ExecStart=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh start-and-monitor %n | 137 | +ExecStart=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh start-and-monitor %n |
139 | +ExecStopPost=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh stop %n | 138 | +ExecStopPost=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh stop %n |
140 | diff --git a/user/v83/Makefile.in b/user/v83/Makefile.in | ||
141 | index 08cfe574..4c4971b6 100644 | ||
142 | --- a/user/v83/Makefile.in | ||
143 | +++ b/user/v83/Makefile.in | ||
144 | @@ -96,19 +96,19 @@ install: | ||
145 | ifeq ($(WITH_83_SUPPORT),yes) | ||
146 | install -d $(DESTDIR)$(localstatedir)/lib/drbd | ||
147 | install -d $(DESTDIR)$(localstatedir)/lock | ||
148 | - install -d $(DESTDIR)/lib/drbd/ | ||
149 | + install -d $(DESTDIR)/${nonarch_libdir}/drbd/ | ||
150 | if getent group haclient > /dev/null 2> /dev/null ; then \ | ||
151 | - install -g haclient -m 4750 drbdsetup-83 $(DESTDIR)/lib/drbd/ ; \ | ||
152 | - install -m 755 drbdadm-83 $(DESTDIR)/lib/drbd/ ; \ | ||
153 | + install -g haclient -m 4750 drbdsetup-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
154 | + install -m 755 drbdadm-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
155 | else \ | ||
156 | - install -m 755 drbdsetup-83 $(DESTDIR)/lib/drbd/ ; \ | ||
157 | - install -m 755 drbdadm-83 $(DESTDIR)/lib/drbd/ ; \ | ||
158 | + install -m 755 drbdsetup-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
159 | + install -m 755 drbdadm-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \ | ||
160 | fi | ||
161 | endif | ||
162 | |||
163 | uninstall: | ||
164 | - rm -f $(DESTDIR)/lib/drbd/drbdsetup-83 | ||
165 | - rm -f $(DESTDIR)/lib/drbd/drbdadm-83 | ||
166 | + rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdsetup-83 | ||
167 | + rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdadm-83 | ||
168 | |||
169 | .PHONY: install uninstall clean distclean | ||
170 | ../../configure: | ||
171 | diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in | 139 | diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in |
172 | index 0fcefc5f..81f7d5ec 100644 | 140 | index 0fcefc5f..81f7d5ec 100644 |
173 | --- a/user/v84/Makefile.in | 141 | --- a/user/v84/Makefile.in |
@@ -199,3 +167,6 @@ index 0fcefc5f..81f7d5ec 100644 | |||
199 | 167 | ||
200 | spell: | 168 | spell: |
201 | for f in drbdadm_adjust.c drbdadm_main.c drbdadm_parser.c drbdadm_usage_cnt.c drbdsetup.c drbdtool_common.c; do \ | 169 | for f in drbdadm_adjust.c drbdadm_main.c drbdadm_parser.c drbdadm_usage_cnt.c drbdsetup.c drbdtool_common.c; do \ |
170 | -- | ||
171 | 2.25.1 | ||
172 | |||
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.27.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.28.0.bb index 63f0fd18c1..af0afc2a91 100644 --- a/meta-networking/recipes-support/drbd/drbd-utils_9.27.0.bb +++ b/meta-networking/recipes-support/drbd/drbd-utils_9.28.0.bb | |||
@@ -11,9 +11,8 @@ SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=master;prot | |||
11 | git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=git/drbd-headers;branch=master;protocol=https \ | 11 | git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=git/drbd-headers;branch=master;protocol=https \ |
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 | file://0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch \ | ||
15 | " | 14 | " |
16 | SRCREV_drbd-utils = "fdd9a4d603a9dc99d110d8bd0e288d7c0b6f586e" | 15 | SRCREV_drbd-utils = "ba2ce9037989b6141222c7901d1219cf852949f1" |
17 | SRCREV_drbd-headers = "0349f00825b4198d4ec3248f43884114a187676a" | 16 | SRCREV_drbd-headers = "0349f00825b4198d4ec3248f43884114a187676a" |
18 | 17 | ||
19 | SRCREV_FORMAT = "drbd-utils_drbd-headers" | 18 | SRCREV_FORMAT = "drbd-utils_drbd-headers" |