summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch17
-rw-r--r--meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch12
-rw-r--r--meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch31
-rw-r--r--meta-oe/recipes-support/lvm2/files/0001-include-libgen.h-for-basename.patch9
-rw-r--r--meta-oe/recipes-support/lvm2/files/0004-tweak-MODPROBE_CMD-for-cross-compile.patch11
-rw-r--r--meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch15
-rw-r--r--meta-oe/recipes-support/lvm2/files/0006-start-lvm2-monitor.service-after-tmp.mount.patch7
-rw-r--r--meta-oe/recipes-support/lvm2/files/reproducible-build.patch15
-rw-r--r--meta-oe/recipes-support/lvm2/libdevmapper.bb (renamed from meta-oe/recipes-support/lvm2/libdevmapper_2.03.24.bb)0
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2.bb (renamed from meta-oe/recipes-support/lvm2/lvm2_2.03.22.bb)1
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2.inc1
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch11
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/0001-lvmdbusd-create-dirs-for-lock-file.patch29
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/tweak-for-lvmdbusd.patch13
14 files changed, 67 insertions, 105 deletions
diff --git a/meta-oe/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch b/meta-oe/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch
index 3c4a3a151d..fb58793a17 100644
--- a/meta-oe/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch
+++ b/meta-oe/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch
@@ -1,7 +1,7 @@
1From ea66faf68c93735edb1f2691cd7364b8cab83fef Mon Sep 17 00:00:00 2001 1From 44695f332e206e1db43d50163e1bce0bedf75fb7 Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <peter.kjellerstedt@axis.com> 2From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
3Date: Mon, 26 Nov 2018 14:53:09 +0800 3Date: Mon, 26 Nov 2018 14:53:09 +0800
4Subject: [PATCH 1/3] Avoid bashisms in init scripts 4Subject: [PATCH] Avoid bashisms in init scripts
5 5
6Upstream-Status: Inappropriate 6Upstream-Status: Inappropriate
7 7
@@ -19,7 +19,7 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
19 5 files changed, 10 insertions(+), 10 deletions(-) 19 5 files changed, 10 insertions(+), 10 deletions(-)
20 20
21diff --git a/scripts/blk_availability_init_red_hat.in b/scripts/blk_availability_init_red_hat.in 21diff --git a/scripts/blk_availability_init_red_hat.in b/scripts/blk_availability_init_red_hat.in
22index 347c395..b2e9cf9 100644 22index 347c39574..b2e9cf932 100644
23--- a/scripts/blk_availability_init_red_hat.in 23--- a/scripts/blk_availability_init_red_hat.in
24+++ b/scripts/blk_availability_init_red_hat.in 24+++ b/scripts/blk_availability_init_red_hat.in
25@@ -1,4 +1,4 @@ 25@@ -1,4 +1,4 @@
@@ -37,7 +37,7 @@ index 347c395..b2e9cf9 100644
37 ;; 37 ;;
38 esac 38 esac
39diff --git a/scripts/cmirrord_init_red_hat.in b/scripts/cmirrord_init_red_hat.in 39diff --git a/scripts/cmirrord_init_red_hat.in b/scripts/cmirrord_init_red_hat.in
40index c82f8f5..a3a321d 100755 40index c82f8f547..a3a321d9c 100755
41--- a/scripts/cmirrord_init_red_hat.in 41--- a/scripts/cmirrord_init_red_hat.in
42+++ b/scripts/cmirrord_init_red_hat.in 42+++ b/scripts/cmirrord_init_red_hat.in
43@@ -1,4 +1,4 @@ 43@@ -1,4 +1,4 @@
@@ -56,7 +56,7 @@ index c82f8f5..a3a321d 100755
56 esac 56 esac
57 57
58diff --git a/scripts/lvm2_lvmpolld_init_red_hat.in b/scripts/lvm2_lvmpolld_init_red_hat.in 58diff --git a/scripts/lvm2_lvmpolld_init_red_hat.in b/scripts/lvm2_lvmpolld_init_red_hat.in
59index 176ff5d..825f6ad 100644 59index 176ff5dcb..825f6ad84 100644
60--- a/scripts/lvm2_lvmpolld_init_red_hat.in 60--- a/scripts/lvm2_lvmpolld_init_red_hat.in
61+++ b/scripts/lvm2_lvmpolld_init_red_hat.in 61+++ b/scripts/lvm2_lvmpolld_init_red_hat.in
62@@ -1,4 +1,4 @@ 62@@ -1,4 +1,4 @@
@@ -75,7 +75,7 @@ index 176ff5d..825f6ad 100644
75 esac 75 esac
76 76
77diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in 77diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in
78index 95e4125..dff89cd 100644 78index 95e4125a0..dff89cd38 100644
79--- a/scripts/lvm2_monitoring_init_red_hat.in 79--- a/scripts/lvm2_monitoring_init_red_hat.in
80+++ b/scripts/lvm2_monitoring_init_red_hat.in 80+++ b/scripts/lvm2_monitoring_init_red_hat.in
81@@ -1,4 +1,4 @@ 81@@ -1,4 +1,4 @@
@@ -94,7 +94,7 @@ index 95e4125..dff89cd 100644
94 esac 94 esac
95 95
96diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4 96diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4
97index 8eb06c5..2e8d0f7 100644 97index 8eb06c509..2e8d0f71e 100644
98--- a/scripts/lvm2_monitoring_init_rhel4 98--- a/scripts/lvm2_monitoring_init_rhel4
99+++ b/scripts/lvm2_monitoring_init_rhel4 99+++ b/scripts/lvm2_monitoring_init_rhel4
100@@ -1,4 +1,4 @@ 100@@ -1,4 +1,4 @@
@@ -112,6 +112,3 @@ index 8eb06c5..2e8d0f7 100644
112 ;; 112 ;;
113 esac 113 esac
114 114
115--
1162.7.4
117
diff --git a/meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch b/meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch
index 474c2f8ac7..f4b0f913d8 100644
--- a/meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch
+++ b/meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch
@@ -1,4 +1,7 @@
1configure.ac: check egrep 1From f261b2f1bc16c32a55a22e28bf1b2f15ac6c7a88 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Wed, 6 Dec 2023 10:24:46 +0800
4Subject: [PATCH] configure.ac: check egrep
2 5
3The macro AC_HEADER_STDC which requires AC_PROG_EGREP has been removed 6The macro AC_HEADER_STDC which requires AC_PROG_EGREP has been removed
4from configure.ac, then it fails to substitute '@EGREP@': 7from configure.ac, then it fails to substitute '@EGREP@':
@@ -17,10 +20,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
17 1 file changed, 1 insertion(+) 20 1 file changed, 1 insertion(+)
18 21
19diff --git a/configure.ac b/configure.ac 22diff --git a/configure.ac b/configure.ac
20index 2e52498f9..d9462e22c 100644 23index c2dbf3c9f..d9e7964c3 100644
21--- a/configure.ac 24--- a/configure.ac
22+++ b/configure.ac 25+++ b/configure.ac
23@@ -78,6 +78,7 @@ AC_PROG_LN_S 26@@ -88,6 +88,7 @@ AC_PROG_EGREP
24 AC_PROG_MAKE_SET 27 AC_PROG_MAKE_SET
25 AC_PROG_MKDIR_P 28 AC_PROG_MKDIR_P
26 AC_PROG_RANLIB 29 AC_PROG_RANLIB
@@ -28,6 +31,3 @@ index 2e52498f9..d9462e22c 100644
28 AC_CHECK_TOOL([READELF], [readelf]) 31 AC_CHECK_TOOL([READELF], [readelf])
29 AC_CHECK_TOOL(AR, ar) 32 AC_CHECK_TOOL(AR, ar)
30 AC_PATH_TOOL(CFLOW_CMD, cflow) 33 AC_PATH_TOOL(CFLOW_CMD, cflow)
31--
322.34.1
33
diff --git a/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch b/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch
index f46d7f7014..a064516e32 100644
--- a/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch
+++ b/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch
@@ -1,4 +1,4 @@
1From e3103459416616d3b8508e7176e897b0ae6c90f2 Mon Sep 17 00:00:00 2001 1From a86919ed5468f3c152114446c189b00f5f656d59 Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com> 2From: Dengke Du <dengke.du@windriver.com>
3Date: Tue, 25 Oct 2016 11:49:40 +0000 3Date: Tue, 25 Oct 2016 11:49:40 +0000
4Subject: [PATCH] implement libc specific reopen_stream 4Subject: [PATCH] implement libc specific reopen_stream
@@ -13,19 +13,16 @@ http://git.alpinelinux.org/cgit/aports/tree/main/lvm2/fix-stdio-usage.patch
13 13
14Signed-off-by: Khem Raj <raj.khem@gmail.com> 14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Signed-off-by: Dengke Du <dengke.du@windriver.com> 15Signed-off-by: Dengke Du <dengke.du@windriver.com>
16
17--- 16---
18Upstream-Status: Pending
19
20 lib/log/log.c | 6 ++++++ 17 lib/log/log.c | 6 ++++++
21 tools/lvmcmdline.c | 6 +++--- 18 tools/lvmcmdline.c | 6 +++---
22 2 files changed, 9 insertions(+), 3 deletions(-) 19 2 files changed, 9 insertions(+), 3 deletions(-)
23 20
24Index: LVM2.2.02.177/lib/log/log.c 21diff --git a/lib/log/log.c b/lib/log/log.c
25=================================================================== 22index 7b88252f0..e1720098a 100644
26--- LVM2.2.02.177.orig/lib/log/log.c 23--- a/lib/log/log.c
27+++ LVM2.2.02.177/lib/log/log.c 24+++ b/lib/log/log.c
28@@ -161,6 +161,7 @@ static void _check_and_replace_standard_ 25@@ -165,6 +165,7 @@ static void _check_and_replace_standard_log_streams(FILE *old_stream, FILE *new_
29 * Close and reopen standard stream on file descriptor fd. 26 * Close and reopen standard stream on file descriptor fd.
30 */ 27 */
31 int reopen_standard_stream(FILE **stream, const char *mode) 28 int reopen_standard_stream(FILE **stream, const char *mode)
@@ -33,7 +30,7 @@ Index: LVM2.2.02.177/lib/log/log.c
33 { 30 {
34 int fd, fd_copy, new_fd; 31 int fd, fd_copy, new_fd;
35 const char *name; 32 const char *name;
36@@ -207,6 +208,11 @@ int reopen_standard_stream(FILE **stream 33@@ -211,6 +212,11 @@ int reopen_standard_stream(FILE **stream, const char *mode)
37 *stream = new_stream; 34 *stream = new_stream;
38 return 1; 35 return 1;
39 } 36 }
@@ -45,11 +42,11 @@ Index: LVM2.2.02.177/lib/log/log.c
45 42
46 void init_log_fn(lvm2_log_fn_t log_fn) 43 void init_log_fn(lvm2_log_fn_t log_fn)
47 { 44 {
48Index: LVM2.2.02.177/tools/lvmcmdline.c 45diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
49=================================================================== 46index 3fd23a521..c2ee39905 100644
50--- LVM2.2.02.177.orig/tools/lvmcmdline.c 47--- a/tools/lvmcmdline.c
51+++ LVM2.2.02.177/tools/lvmcmdline.c 48+++ b/tools/lvmcmdline.c
52@@ -3095,7 +3095,7 @@ static int _check_standard_fds(void) 49@@ -3380,7 +3380,7 @@ static int _check_standard_fds(void)
53 int err = is_valid_fd(STDERR_FILENO); 50 int err = is_valid_fd(STDERR_FILENO);
54 51
55 if (!is_valid_fd(STDIN_FILENO) && 52 if (!is_valid_fd(STDIN_FILENO) &&
@@ -58,7 +55,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c
58 if (err) 55 if (err)
59 perror("stdin stream open"); 56 perror("stdin stream open");
60 else 57 else
61@@ -3105,7 +3105,7 @@ static int _check_standard_fds(void) 58@@ -3390,7 +3390,7 @@ static int _check_standard_fds(void)
62 } 59 }
63 60
64 if (!is_valid_fd(STDOUT_FILENO) && 61 if (!is_valid_fd(STDOUT_FILENO) &&
@@ -67,7 +64,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c
67 if (err) 64 if (err)
68 perror("stdout stream open"); 65 perror("stdout stream open");
69 /* else no stdout */ 66 /* else no stdout */
70@@ -3113,7 +3113,7 @@ static int _check_standard_fds(void) 67@@ -3398,7 +3398,7 @@ static int _check_standard_fds(void)
71 } 68 }
72 69
73 if (!is_valid_fd(STDERR_FILENO) && 70 if (!is_valid_fd(STDERR_FILENO) &&
diff --git a/meta-oe/recipes-support/lvm2/files/0001-include-libgen.h-for-basename.patch b/meta-oe/recipes-support/lvm2/files/0001-include-libgen.h-for-basename.patch
index 7add3a7bb1..83a7f936b1 100644
--- a/meta-oe/recipes-support/lvm2/files/0001-include-libgen.h-for-basename.patch
+++ b/meta-oe/recipes-support/lvm2/files/0001-include-libgen.h-for-basename.patch
@@ -1,4 +1,4 @@
1From 1b9677f40ac547ba19d1cdbfd700901eab0a0d0b Mon Sep 17 00:00:00 2001 1From 4e7f4ea0bf89726255612a2a382c064e5923fbcd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 25 Mar 2024 13:07:28 -0700 3Date: Mon, 25 Mar 2024 13:07:28 -0700
4Subject: [PATCH] include libgen.h for basename 4Subject: [PATCH] include libgen.h for basename
@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 1 file changed, 1 insertion(+) 16 1 file changed, 1 insertion(+)
17 17
18diff --git a/lib/device/device_id.c b/lib/device/device_id.c 18diff --git a/lib/device/device_id.c b/lib/device/device_id.c
19index 1422f5d05..8215811bd 100644 19index 2b183810a..53467cbbb 100644
20--- a/lib/device/device_id.c 20--- a/lib/device/device_id.c
21+++ b/lib/device/device_id.c 21+++ b/lib/device/device_id.c
22@@ -25,6 +25,7 @@ 22@@ -26,6 +26,7 @@
23 #include "lib/datastruct/str_list.h" 23 #include "lib/datastruct/str_list.h"
24 #include "lib/metadata/metadata-exported.h" 24 #include "lib/metadata/metadata-exported.h"
25 25
@@ -27,6 +27,3 @@ index 1422f5d05..8215811bd 100644
27 #include <sys/stat.h> 27 #include <sys/stat.h>
28 #include <fcntl.h> 28 #include <fcntl.h>
29 #include <unistd.h> 29 #include <unistd.h>
30--
312.44.0
32
diff --git a/meta-oe/recipes-support/lvm2/files/0004-tweak-MODPROBE_CMD-for-cross-compile.patch b/meta-oe/recipes-support/lvm2/files/0004-tweak-MODPROBE_CMD-for-cross-compile.patch
index ed9972a5f9..6435c3fd92 100644
--- a/meta-oe/recipes-support/lvm2/files/0004-tweak-MODPROBE_CMD-for-cross-compile.patch
+++ b/meta-oe/recipes-support/lvm2/files/0004-tweak-MODPROBE_CMD-for-cross-compile.patch
@@ -1,7 +1,7 @@
1From 3bba45890985b877b823836e78a1c8ac3c878856 Mon Sep 17 00:00:00 2001 1From b30f842d5d200a8217a47465d6cdd99d3805ba76 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 31 Jul 2018 15:04:29 +0800 3Date: Tue, 31 Jul 2018 15:04:29 +0800
4Subject: [PATCH 4/4] tweak MODPROBE_CMD for cross compile 4Subject: [PATCH] tweak MODPROBE_CMD for cross compile
5 5
6Lvm uses variable MODPROBE_CMD at runtime, so build time detection of modprobe 6Lvm uses variable MODPROBE_CMD at runtime, so build time detection of modprobe
7is incorrect. 7is incorrect.
@@ -21,10 +21,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
21 1 file changed, 2 deletions(-) 21 1 file changed, 2 deletions(-)
22 22
23diff --git a/configure.ac b/configure.ac 23diff --git a/configure.ac b/configure.ac
24index b43d8b9be..efe3062c1 100644 24index c8d81e16c..7c1c04627 100644
25--- a/configure.ac 25--- a/configure.ac
26+++ b/configure.ac 26+++ b/configure.ac
27@@ -1646,8 +1646,6 @@ AS_IF([test "$BUILD_DMFILEMAPD" = "yes"], [ 27@@ -1689,8 +1689,6 @@ AS_IF([test "$BUILD_DMFILEMAPD" = "yes"], [
28 ]) 28 ])
29 29
30 ################################################################################ 30 ################################################################################
@@ -33,6 +33,3 @@ index b43d8b9be..efe3062c1 100644
33 AS_IF([test -n "$MODPROBE_CMD"], [ 33 AS_IF([test -n "$MODPROBE_CMD"], [
34 AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.]) 34 AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.])
35 ]) 35 ])
36--
372.7.4
38
diff --git a/meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch b/meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch
index 7979efbefb..e7aaad4d0e 100644
--- a/meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch
+++ b/meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch
@@ -1,7 +1,7 @@
1From 103ac1c1200df8190372d973e004776cffe8e659 Mon Sep 17 00:00:00 2001 1From e0e06b77e067da6a01dd9b0d5582a0a1709c655d Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 26 Nov 2018 14:59:55 +0800 3Date: Mon, 26 Nov 2018 14:59:55 +0800
4Subject: [PATCH 2/3] do not build manual 4Subject: [PATCH] do not build manual
5 5
6On some host (ubuntu 1404), build manual failed. 6On some host (ubuntu 1404), build manual failed.
7... 7...
@@ -26,7 +26,7 @@ Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
26 2 files changed, 3 insertions(+), 4 deletions(-) 26 2 files changed, 3 insertions(+), 4 deletions(-)
27 27
28diff --git a/Makefile.in b/Makefile.in 28diff --git a/Makefile.in b/Makefile.in
29index 3b7e0ec..37f14eb 100644 29index 06c4b1823..90df7b09c 100644
30--- a/Makefile.in 30--- a/Makefile.in
31+++ b/Makefile.in 31+++ b/Makefile.in
32@@ -18,7 +18,7 @@ top_builddir = @top_builddir@ 32@@ -18,7 +18,7 @@ top_builddir = @top_builddir@
@@ -47,7 +47,7 @@ index 3b7e0ec..37f14eb 100644
47 libdaemon lib tools daemons libdm \ 47 libdaemon lib tools daemons libdm \
48 udev po 48 udev po
49 tools.distclean: test.distclean 49 tools.distclean: test.distclean
50@@ -59,7 +59,7 @@ unit-test run-unit-test: test 50@@ -59,7 +59,7 @@ unit-test run-unit-test: test libdm
51 51
52 daemons.device-mapper: libdm.device-mapper 52 daemons.device-mapper: libdm.device-mapper
53 tools.device-mapper: libdm.device-mapper 53 tools.device-mapper: libdm.device-mapper
@@ -57,10 +57,10 @@ index 3b7e0ec..37f14eb 100644
57 57
58 ifeq ("@INTL@", "yes") 58 ifeq ("@INTL@", "yes")
59diff --git a/configure.ac b/configure.ac 59diff --git a/configure.ac b/configure.ac
60index 6def519..18a5c97 100644 60index 7c1c04627..5364dd68e 100644
61--- a/configure.ac 61--- a/configure.ac
62+++ b/configure.ac 62+++ b/configure.ac
63@@ -2018,7 +2018,6 @@ libdaemon/server/Makefile 63@@ -2022,7 +2022,6 @@ libdaemon/server/Makefile
64 libdm/Makefile 64 libdm/Makefile
65 libdm/dm-tools/Makefile 65 libdm/dm-tools/Makefile
66 libdm/libdevmapper.pc 66 libdm/libdevmapper.pc
@@ -68,6 +68,3 @@ index 6def519..18a5c97 100644
68 po/Makefile 68 po/Makefile
69 scripts/lvm2-pvscan.service 69 scripts/lvm2-pvscan.service
70 scripts/blkdeactivate.sh 70 scripts/blkdeactivate.sh
71--
722.25.1
73
diff --git a/meta-oe/recipes-support/lvm2/files/0006-start-lvm2-monitor.service-after-tmp.mount.patch b/meta-oe/recipes-support/lvm2/files/0006-start-lvm2-monitor.service-after-tmp.mount.patch
index 5b9b2d5748..2d49820057 100644
--- a/meta-oe/recipes-support/lvm2/files/0006-start-lvm2-monitor.service-after-tmp.mount.patch
+++ b/meta-oe/recipes-support/lvm2/files/0006-start-lvm2-monitor.service-after-tmp.mount.patch
@@ -1,4 +1,4 @@
1From e213ed33a28704f6f538df41a91b7ce95594a4f8 Mon Sep 17 00:00:00 2001 1From 20a110ade91c73f4cb3883a3a9676708a93ca786 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Oct 2019 18:12:54 +0800 3Date: Tue, 15 Oct 2019 18:12:54 +0800
4Subject: [PATCH] start lvm2-monitor.service after tmp.mount 4Subject: [PATCH] start lvm2-monitor.service after tmp.mount
@@ -19,7 +19,7 @@ Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
19 1 file changed, 1 insertion(+), 1 deletion(-) 19 1 file changed, 1 insertion(+), 1 deletion(-)
20 20
21diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in 21diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in
22index c0c96e3..2a99a37 100644 22index c0c96e316..2a99a379d 100644
23--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in 23--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in
24+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in 24+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in
25@@ -2,7 +2,7 @@ 25@@ -2,7 +2,7 @@
@@ -31,6 +31,3 @@ index c0c96e3..2a99a37 100644
31 Before=local-fs-pre.target shutdown.target 31 Before=local-fs-pre.target shutdown.target
32 DefaultDependencies=no 32 DefaultDependencies=no
33 Conflicts=shutdown.target 33 Conflicts=shutdown.target
34--
352.25.1
36
diff --git a/meta-oe/recipes-support/lvm2/files/reproducible-build.patch b/meta-oe/recipes-support/lvm2/files/reproducible-build.patch
index 3f53db9e5c..ca632d213f 100644
--- a/meta-oe/recipes-support/lvm2/files/reproducible-build.patch
+++ b/meta-oe/recipes-support/lvm2/files/reproducible-build.patch
@@ -1,14 +1,21 @@
1configure.ac: override CONFIGURE_LINE 1From f5c6fabbdf2e7bfa105658b9dfe45d2ab86f34bb Mon Sep 17 00:00:00 2001
2From: Joe Slater <joe.slater@windriver.com>
3Date: Fri, 17 Jul 2020 13:59:56 -0700
4Subject: [PATCH] configure.ac: override CONFIGURE_LINE
2 5
3For reproducible binaries, we need to report a constant CONFIGURE_LINE. 6For reproducible binaries, we need to report a constant CONFIGURE_LINE.
4 7
5Upstream-Status: Pending 8Upstream-Status: Pending
6 9
7Signed-off-by: Joe Slater <joe.slater@windriver.com> 10Signed-off-by: Joe Slater <joe.slater@windriver.com>
11---
12 configure.ac | 10 +++++++++-
13 1 file changed, 9 insertions(+), 1 deletion(-)
8 14
9 15diff --git a/configure.ac b/configure.ac
10--- git.orig/configure.ac 16index 5364dd68e..c2dbf3c9f 100644
11+++ git/configure.ac 17--- a/configure.ac
18+++ b/configure.ac
12@@ -15,7 +15,15 @@ AC_PREREQ(2.69) 19@@ -15,7 +15,15 @@ AC_PREREQ(2.69)
13 ################################################################################ 20 ################################################################################
14 dnl -- Process this file with autoconf to produce a configure script. 21 dnl -- Process this file with autoconf to produce a configure script.
diff --git a/meta-oe/recipes-support/lvm2/libdevmapper_2.03.24.bb b/meta-oe/recipes-support/lvm2/libdevmapper.bb
index be558ce1d2..be558ce1d2 100644
--- a/meta-oe/recipes-support/lvm2/libdevmapper_2.03.24.bb
+++ b/meta-oe/recipes-support/lvm2/libdevmapper.bb
diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.03.22.bb b/meta-oe/recipes-support/lvm2/lvm2.bb
index 200457c693..868f5a249e 100644
--- a/meta-oe/recipes-support/lvm2/lvm2_2.03.22.bb
+++ b/meta-oe/recipes-support/lvm2/lvm2.bb
@@ -3,7 +3,6 @@ require lvm2.inc
3SRC_URI += " \ 3SRC_URI += " \
4 file://0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch \ 4 file://0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch \
5 file://tweak-for-lvmdbusd.patch \ 5 file://tweak-for-lvmdbusd.patch \
6 file://0001-lvmdbusd-create-dirs-for-lock-file.patch \
7 " 6 "
8 7
9DEPENDS += "autoconf-archive-native" 8DEPENDS += "autoconf-archive-native"
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 0351eb6b39..29cc7425ba 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -21,6 +21,7 @@ SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \
21 21
22SRCREV = "90ec2cd92f6367c431dd8dae55d0cbe7e196734f" 22SRCREV = "90ec2cd92f6367c431dd8dae55d0cbe7e196734f"
23S = "${WORKDIR}/git" 23S = "${WORKDIR}/git"
24PV = "2.03.24"
24 25
25UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" 26UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)"
26 27
diff --git a/meta-oe/recipes-support/lvm2/lvm2/0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch b/meta-oe/recipes-support/lvm2/lvm2/0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch
index c0cf836ce8..96a3d64fdf 100644
--- a/meta-oe/recipes-support/lvm2/lvm2/0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch
+++ b/meta-oe/recipes-support/lvm2/lvm2/0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch
@@ -1,4 +1,4 @@
1From ddf36613f3408ce42f15b03b4e9c6ad8478b97f8 Mon Sep 17 00:00:00 2001 1From 2ff2a867db8d3e1c660d191a1805f9e355169c80 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 2 Mar 2021 01:33:05 -0800 3Date: Tue, 2 Mar 2021 01:33:05 -0800
4Subject: [PATCH] fix command /bin/findmnt, /bin/lsblk, /bin/sort not found 4Subject: [PATCH] fix command /bin/findmnt, /bin/lsblk, /bin/sort not found
@@ -15,10 +15,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15 2 files changed, 7 insertions(+), 3 deletions(-) 15 2 files changed, 7 insertions(+), 3 deletions(-)
16 16
17diff --git a/configure.ac b/configure.ac 17diff --git a/configure.ac b/configure.ac
18index 991a0cf85..e59c82472 100644 18index d9e7964c3..9dfdcfe01 100644
19--- a/configure.ac 19--- a/configure.ac
20+++ b/configure.ac 20+++ b/configure.ac
21@@ -1660,6 +1660,8 @@ AS_IF([test -n "$MODPROBE_CMD"], [ 21@@ -1704,6 +1704,8 @@ AS_IF([test -n "$MODPROBE_CMD"], [
22 22
23 SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))" 23 SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))"
24 24
@@ -27,7 +27,7 @@ index 991a0cf85..e59c82472 100644
27 SBINDIR="$(eval echo $(eval echo $sbindir))" 27 SBINDIR="$(eval echo $(eval echo $sbindir))"
28 LVM_PATH="$SBINDIR/lvm" 28 LVM_PATH="$SBINDIR/lvm"
29 AC_DEFINE_UNQUOTED(LVM_PATH, ["$LVM_PATH"], [Path to lvm binary.]) 29 AC_DEFINE_UNQUOTED(LVM_PATH, ["$LVM_PATH"], [Path to lvm binary.])
30@@ -1886,6 +1888,7 @@ AC_SUBST(PYTHON2DIR) 30@@ -1944,6 +1946,7 @@ AC_SUBST(PYTHON2DIR)
31 AC_SUBST(PYTHON3) 31 AC_SUBST(PYTHON3)
32 AC_SUBST(PYTHON3DIR) 32 AC_SUBST(PYTHON3DIR)
33 AC_SUBST(RT_LIBS) 33 AC_SUBST(RT_LIBS)
@@ -68,6 +68,3 @@ index 7c517b87b..7ef1bb766 100644
68 68
69 # Do not show tool errors by default (only done/skipping summary 69 # Do not show tool errors by default (only done/skipping summary
70 # message provided by this script) and no verbose mode by default. 70 # message provided by this script) and no verbose mode by default.
71--
722.29.2
73
diff --git a/meta-oe/recipes-support/lvm2/lvm2/0001-lvmdbusd-create-dirs-for-lock-file.patch b/meta-oe/recipes-support/lvm2/lvm2/0001-lvmdbusd-create-dirs-for-lock-file.patch
deleted file mode 100644
index f6b293553d..0000000000
--- a/meta-oe/recipes-support/lvm2/lvm2/0001-lvmdbusd-create-dirs-for-lock-file.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1lvmdbusd: create dirs for lock file
2
3Create leading dirs for lvmdbusd lock file, otherwise it fails to start:
4
5| systemd[1]: Starting LVM2 D-Bus service...
6| lvmdbusd[1602]: [1602]: Error during creation of lock file(/var/lock/lvm/lvmdbusd): errno(2), exiting!
7
8Upstream-Status: Submitted [https://gitlab.com/lvmteam/lvm2/-/merge_requests/7]
9
10Signed-off-by: Kai Kang <kai.kang@windriver.com>
11---
12 daemons/lvmdbusd/utils.py | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/daemons/lvmdbusd/utils.py b/daemons/lvmdbusd/utils.py
16index d479175f6..830648659 100644
17--- a/daemons/lvmdbusd/utils.py
18+++ b/daemons/lvmdbusd/utils.py
19@@ -778,6 +778,7 @@ class LockFile(object):
20
21 def __enter__(self):
22 try:
23+ os.makedirs(os.path.dirname(self.lock_file))
24 self.fd = os.open(self.lock_file, os.O_CREAT | os.O_RDWR, stat.S_IRUSR | stat.S_IWUSR)
25
26 # Get and set the close on exec and lock the file
27--
282.34.1
29
diff --git a/meta-oe/recipes-support/lvm2/lvm2/tweak-for-lvmdbusd.patch b/meta-oe/recipes-support/lvm2/lvm2/tweak-for-lvmdbusd.patch
index 3b85a17b61..200f2f044a 100644
--- a/meta-oe/recipes-support/lvm2/lvm2/tweak-for-lvmdbusd.patch
+++ b/meta-oe/recipes-support/lvm2/lvm2/tweak-for-lvmdbusd.patch
@@ -1,3 +1,8 @@
1From 34f5a21afae759d48fa11e77b622ca35a4feabaa Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Wed, 6 Dec 2023 10:24:46 +0800
4Subject: [PATCH] lvm2: 2.03.16 -> 2.03.22
5
1Not check python modules pyudev and dbus during configure that they are runtime 6Not check python modules pyudev and dbus during configure that they are runtime
2dependencies. Deal with them in the package config setting in the recipe. 7dependencies. Deal with them in the package config setting in the recipe.
3 8
@@ -13,10 +18,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
13 2 files changed, 4 insertions(+), 6 deletions(-) 18 2 files changed, 4 insertions(+), 6 deletions(-)
14 19
15diff --git a/configure.ac b/configure.ac 20diff --git a/configure.ac b/configure.ac
16index ee088b3f5..b94ef4e56 100644 21index 9dfdcfe01..fcf5c8b78 100644
17--- a/configure.ac 22--- a/configure.ac
18+++ b/configure.ac 23+++ b/configure.ac
19@@ -1262,8 +1262,8 @@ AS_IF([test "$BUILD_LVMDBUSD" = "yes"], [ 24@@ -1282,8 +1282,8 @@ AS_IF([test "$BUILD_LVMDBUSD" = "yes"], [
20 AS_IF([test "$PYTHON3_BINDINGS" = "yes"], [PYTHON_BINDINGS="yes"]) 25 AS_IF([test "$PYTHON3_BINDINGS" = "yes"], [PYTHON_BINDINGS="yes"])
21 26
22 # To get this macro, install autoconf-archive package then run autoreconf 27 # To get this macro, install autoconf-archive package then run autoreconf
@@ -28,7 +33,7 @@ index ee088b3f5..b94ef4e56 100644
28 33
29 ################################################################################ 34 ################################################################################
30diff --git a/daemons/lvmdbusd/Makefile.in b/daemons/lvmdbusd/Makefile.in 35diff --git a/daemons/lvmdbusd/Makefile.in b/daemons/lvmdbusd/Makefile.in
31index 9c2629279..a79daabf7 100644 36index 08b061fb2..e2b1c3209 100644
32--- a/daemons/lvmdbusd/Makefile.in 37--- a/daemons/lvmdbusd/Makefile.in
33+++ b/daemons/lvmdbusd/Makefile.in 38+++ b/daemons/lvmdbusd/Makefile.in
34@@ -16,7 +16,7 @@ top_srcdir = @top_srcdir@ 39@@ -16,7 +16,7 @@ top_srcdir = @top_srcdir@
@@ -41,7 +46,7 @@ index 9c2629279..a79daabf7 100644
41 LVMDBUS_SRCDIR_FILES = \ 46 LVMDBUS_SRCDIR_FILES = \
42 automatedproperties.py \ 47 automatedproperties.py \
43@@ -55,11 +55,9 @@ install_lvmdbusd: $(LVMDBUSD) 48@@ -55,11 +55,9 @@ install_lvmdbusd: $(LVMDBUSD)
44 @echo " [INSTALL] $<" 49 $(SHOW) " [INSTALL] $<"
45 $(Q) $(INSTALL_DIR) $(sbindir) 50 $(Q) $(INSTALL_DIR) $(sbindir)
46 $(Q) $(INSTALL_SCRIPT) $(LVMDBUSD) $(sbindir) 51 $(Q) $(INSTALL_SCRIPT) $(LVMDBUSD) $(sbindir)
47- $(Q) $(INSTALL_DIR) $(lvmdbusdir) $(lvmdbusdir)/__pycache__ 52- $(Q) $(INSTALL_DIR) $(lvmdbusdir) $(lvmdbusdir)/__pycache__