Skip to contentSkip to conversation

drbd-utils: upgrade 9.30.0 -> 9.34.0

PATCH New [email protected] 1 participant 1 message Apr 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drbd-utils: upgrade 9.30.0 -> 9.34.0

From: Haiqing Bai <[email protected]>

Changes:
- Drop 0001-Fix-build-with-gcc-15.patch (merged upstream).
- Add 0001-fix-the-hardcoded-legacy-helper-path.patch: replace the hardcoded "/lib/drbd" path in add_lib_drbd_to_path() with the build-configured DRBD_LEGACY_LIB_DIR derived from LIBDIR
- Remove sed fixup for the now-absent [email protected].
- Install new upstream 50-drbd.preset into systemd system-preset

---
 .../0001-Fix-build-with-gcc-15.patch          | 34 ------------
 ...fix-the-hardcoded-legacy-helper-path.patch | 53 +++++++++++++++++++
 ...d-utils_9.30.0.bb => drbd-utils_9.34.0.bb} | 11 ++--
 3 files changed, 60 insertions(+), 38 deletions(-)
 delete mode 100644 meta-networking/recipes-support/drbd/drbd-utils/0001-Fix-build-with-gcc-15.patch
 create mode 100644 meta-networking/recipes-support/drbd/drbd-utils/0001-fix-the-hardcoded-legacy-helper-path.patch
 rename meta-networking/recipes-support/drbd/{drbd-utils_9.30.0.bb => drbd-utils_9.34.0.bb} (88%)
meta-networking/recipes-support/drbd/drbd-utils/0001-Fix-build-with-gcc-15.patch deleted +0 -34
deleted file mode 100644
index 00105fb844..0000000000
@@ -1,34 +0,0 @@
-From b42265af87d9efcc9aac91b3a3da3df5c5c66e29 Mon Sep 17 00:00:00 2001
-From: Nguyen Dat Tho <[email protected]>
-Date: Wed, 9 Apr 2025 17:33:25 +0900
-Subject: [PATCH] Fix build with gcc-15
-
-To fix the following error:
-In file included from string_matching.cpp:1:
-./string_matching.h:10:18: error: 'uint16_t' does not name a type
-   10 |     extern const uint16_t   PATTERN_LIMIT;
-      |                  ^~~~~~~~
-./string_matching.h:7:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
-
-Upstream-Status: Submitted [https://github.com/LINBIT/drbd-utils/pull/50]
-
-Signed-off-by: Nguyen Dat Tho <[email protected]>
----
- user/drbdmon/string_matching.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/user/drbdmon/string_matching.h b/user/drbdmon/string_matching.h
-index 9b3918fe..b783ba48 100644
---- a/user/drbdmon/string_matching.h
-+++ b/user/drbdmon/string_matching.h
-@@ -4,6 +4,7 @@
- #include <string>
- #include <memory>
- #include <stdexcept>
-+#include <cstdint>
- 
- namespace string_matching
- {
--- 
-2.34.1
-
meta-networking/recipes-support/drbd/drbd-utils/0001-fix-the-hardcoded-legacy-helper-path.patch new file +53 -0

53 lines not on this page · raw message

meta-networking/recipes-support/drbd/drbd-utils_9.34.0.bb renamed from meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb +7 -4
similarity index 88%
rename from meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb
rename to meta-networking/recipes-support/drbd/drbd-utils_9.34.0.bb
index 4c520e8c78..abc406b5e0 100644
@@ -11,10 +11,10 @@ SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=master;prot
            git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/drbd-headers;branch=master;protocol=https \
            file://0001-drbdmon-add-LDFLAGS-when-linking.patch \
            ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','file://0001-drbd-utils-support-usrmerge.patch','',d)} \
-           file://0001-Fix-build-with-gcc-15.patch \
+           file://0001-fix-the-hardcoded-legacy-helper-path.patch \
            "
-SRCREV_drbd-utils = "36ea199f38b543b2da92219109c2832e122e5bf9"
-SRCREV_drbd-headers = "94f4472513f351efba5788f783feba6ac6efe9fc"
+SRCREV_drbd-utils = "7fe34d56a7264cfc92fc5270471827bb3f7773e6"
+SRCREV_drbd-headers = "8ab631bfa8eb606e53c86f50b9f2d6f51d0f9ca5"
 
 SRCREV_FORMAT = "drbd-utils_drbd-headers"
 
@@ -56,7 +56,9 @@ do_install:append() {
     sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/[email protected]
     sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/drbd.service
     sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/[email protected]
-    sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/[email protected]
+
+    install -D -m 0644 ${D}/50-drbd.preset ${D}${systemd_unitdir}/system-preset/50-drbd.preset
+    rm -f ${D}/50-drbd.preset
 }
 
 RDEPENDS:${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module-constant perl-module-overloading perl-module-exporter-heavy"
@@ -69,6 +71,7 @@ FILES:${PN} += "${nonarch_base_libdir}/drbd \
                 ${nonarch_libdir}/tmpfiles.d \
                 ${nonarch_libdir}/drbdscripts/* \
                 ${systemd_unitdir}/system/* \
+                ${systemd_unitdir}/system-preset/50-drbd.preset \
 "
 FILES:${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug"
 
Signature · 1 line
2.43.0