Skip to content

Commit cc4e9fb

Browse files
MarkusVolkkraj
authored andcommitted
lvm2: remove subitted patch
devmapper update also updated lvm2. Thus build fails with: patching file daemons/lvmdbusd/utils.py Hunk openembedded#1 FAILED at 778. 1 out of 1 hunk FAILED -- rejects in file daemons/lvmdbusd/utils.py - Drop the submitted patch - Move PV to lvm2.inc to ensure we keep it in sync for libdevmapper and lvm2 - refresh patches Signed-off-by: Markus Volk <[email protected]> Signed-off-by: Khem Raj <[email protected]>
1 parent 1e51790 commit cc4e9fb

14 files changed

+67
-105
lines changed

meta-oe/recipes-support/lvm2/files/0001-Avoid-bashisms-in-init-scripts.patch

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From ea66faf68c93735edb1f2691cd7364b8cab83fef Mon Sep 17 00:00:00 2001
1+
From 44695f332e206e1db43d50163e1bce0bedf75fb7 Mon Sep 17 00:00:00 2001
22
From: Peter Kjellerstedt <[email protected]>
33
Date: Mon, 26 Nov 2018 14:53:09 +0800
4-
Subject: [PATCH 1/3] Avoid bashisms in init scripts
4+
Subject: [PATCH] Avoid bashisms in init scripts
55

66
Upstream-Status: Inappropriate
77

@@ -19,7 +19,7 @@ Signed-off-by: Hongxu Jia <[email protected]>
1919
5 files changed, 10 insertions(+), 10 deletions(-)
2020

2121
diff --git a/scripts/blk_availability_init_red_hat.in b/scripts/blk_availability_init_red_hat.in
22-
index 347c395..b2e9cf9 100644
22+
index 347c39574..b2e9cf932 100644
2323
--- a/scripts/blk_availability_init_red_hat.in
2424
+++ b/scripts/blk_availability_init_red_hat.in
2525
@@ -1,4 +1,4 @@
@@ -37,7 +37,7 @@ index 347c395..b2e9cf9 100644
3737
;;
3838
esac
3939
diff --git a/scripts/cmirrord_init_red_hat.in b/scripts/cmirrord_init_red_hat.in
40-
index c82f8f5..a3a321d 100755
40+
index c82f8f547..a3a321d9c 100755
4141
--- a/scripts/cmirrord_init_red_hat.in
4242
+++ b/scripts/cmirrord_init_red_hat.in
4343
@@ -1,4 +1,4 @@
@@ -56,7 +56,7 @@ index c82f8f5..a3a321d 100755
5656
esac
5757

5858
diff --git a/scripts/lvm2_lvmpolld_init_red_hat.in b/scripts/lvm2_lvmpolld_init_red_hat.in
59-
index 176ff5d..825f6ad 100644
59+
index 176ff5dcb..825f6ad84 100644
6060
--- a/scripts/lvm2_lvmpolld_init_red_hat.in
6161
+++ b/scripts/lvm2_lvmpolld_init_red_hat.in
6262
@@ -1,4 +1,4 @@
@@ -75,7 +75,7 @@ index 176ff5d..825f6ad 100644
7575
esac
7676

7777
diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in
78-
index 95e4125..dff89cd 100644
78+
index 95e4125a0..dff89cd38 100644
7979
--- a/scripts/lvm2_monitoring_init_red_hat.in
8080
+++ b/scripts/lvm2_monitoring_init_red_hat.in
8181
@@ -1,4 +1,4 @@
@@ -94,7 +94,7 @@ index 95e4125..dff89cd 100644
9494
esac
9595

9696
diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4
97-
index 8eb06c5..2e8d0f7 100644
97+
index 8eb06c509..2e8d0f71e 100644
9898
--- a/scripts/lvm2_monitoring_init_rhel4
9999
+++ b/scripts/lvm2_monitoring_init_rhel4
100100
@@ -1,4 +1,4 @@
@@ -112,6 +112,3 @@ index 8eb06c5..2e8d0f7 100644
112112
;;
113113
esac
114114

115-
--
116-
2.7.4
117-

meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
configure.ac: check egrep
1+
From f261b2f1bc16c32a55a22e28bf1b2f15ac6c7a88 Mon Sep 17 00:00:00 2001
2+
From: Kai Kang <[email protected]>
3+
Date: Wed, 6 Dec 2023 10:24:46 +0800
4+
Subject: [PATCH] configure.ac: check egrep
25

36
The macro AC_HEADER_STDC which requires AC_PROG_EGREP has been removed
47
from configure.ac, then it fails to substitute '@EGREP@':
@@ -17,17 +20,14 @@ Signed-off-by: Kai Kang <[email protected]>
1720
1 file changed, 1 insertion(+)
1821

1922
diff --git a/configure.ac b/configure.ac
20-
index 2e52498f9..d9462e22c 100644
23+
index c2dbf3c9f..d9e7964c3 100644
2124
--- a/configure.ac
2225
+++ b/configure.ac
23-
@@ -78,6 +78,7 @@ AC_PROG_LN_S
26+
@@ -88,6 +88,7 @@ AC_PROG_EGREP
2427
AC_PROG_MAKE_SET
2528
AC_PROG_MKDIR_P
2629
AC_PROG_RANLIB
2730
+AC_PROG_EGREP
2831
AC_CHECK_TOOL([READELF], [readelf])
2932
AC_CHECK_TOOL(AR, ar)
3033
AC_PATH_TOOL(CFLOW_CMD, cflow)
31-
--
32-
2.34.1
33-

meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From e3103459416616d3b8508e7176e897b0ae6c90f2 Mon Sep 17 00:00:00 2001
1+
From a86919ed5468f3c152114446c189b00f5f656d59 Mon Sep 17 00:00:00 2001
22
From: Dengke Du <[email protected]>
33
Date: Tue, 25 Oct 2016 11:49:40 +0000
44
Subject: [PATCH] implement libc specific reopen_stream
@@ -13,27 +13,24 @@ http://git.alpinelinux.org/cgit/aports/tree/main/lvm2/fix-stdio-usage.patch
1313

1414
Signed-off-by: Khem Raj <[email protected]>
1515
Signed-off-by: Dengke Du <[email protected]>
16-
1716
---
18-
Upstream-Status: Pending
19-
2017
lib/log/log.c | 6 ++++++
2118
tools/lvmcmdline.c | 6 +++---
2219
2 files changed, 9 insertions(+), 3 deletions(-)
2320

24-
Index: LVM2.2.02.177/lib/log/log.c
25-
===================================================================
26-
--- LVM2.2.02.177.orig/lib/log/log.c
27-
+++ LVM2.2.02.177/lib/log/log.c
28-
@@ -161,6 +161,7 @@ static void _check_and_replace_standard_
21+
diff --git a/lib/log/log.c b/lib/log/log.c
22+
index 7b88252f0..e1720098a 100644
23+
--- a/lib/log/log.c
24+
+++ b/lib/log/log.c
25+
@@ -165,6 +165,7 @@ static void _check_and_replace_standard_log_streams(FILE *old_stream, FILE *new_
2926
* Close and reopen standard stream on file descriptor fd.
3027
*/
3128
int reopen_standard_stream(FILE **stream, const char *mode)
3229
+#ifdef __GLIBC__
3330
{
3431
int fd, fd_copy, new_fd;
3532
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)
3734
*stream = new_stream;
3835
return 1;
3936
}
@@ -45,11 +42,11 @@ Index: LVM2.2.02.177/lib/log/log.c
4542

4643
void init_log_fn(lvm2_log_fn_t log_fn)
4744
{
48-
Index: LVM2.2.02.177/tools/lvmcmdline.c
49-
===================================================================
50-
--- LVM2.2.02.177.orig/tools/lvmcmdline.c
51-
+++ LVM2.2.02.177/tools/lvmcmdline.c
52-
@@ -3095,7 +3095,7 @@ static int _check_standard_fds(void)
45+
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
46+
index 3fd23a521..c2ee39905 100644
47+
--- a/tools/lvmcmdline.c
48+
+++ b/tools/lvmcmdline.c
49+
@@ -3380,7 +3380,7 @@ static int _check_standard_fds(void)
5350
int err = is_valid_fd(STDERR_FILENO);
5451

5552
if (!is_valid_fd(STDIN_FILENO) &&
@@ -58,7 +55,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c
5855
if (err)
5956
perror("stdin stream open");
6057
else
61-
@@ -3105,7 +3105,7 @@ static int _check_standard_fds(void)
58+
@@ -3390,7 +3390,7 @@ static int _check_standard_fds(void)
6259
}
6360

6461
if (!is_valid_fd(STDOUT_FILENO) &&
@@ -67,7 +64,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c
6764
if (err)
6865
perror("stdout stream open");
6966
/* 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)
7168
}
7269

7370
if (!is_valid_fd(STDERR_FILENO) &&

meta-oe/recipes-support/lvm2/files/0001-include-libgen.h-for-basename.patch

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 1b9677f40ac547ba19d1cdbfd700901eab0a0d0b Mon Sep 17 00:00:00 2001
1+
From 4e7f4ea0bf89726255612a2a382c064e5923fbcd Mon Sep 17 00:00:00 2001
22
From: Khem Raj <[email protected]>
33
Date: Mon, 25 Mar 2024 13:07:28 -0700
44
Subject: [PATCH] include libgen.h for basename
@@ -16,17 +16,14 @@ Signed-off-by: Khem Raj <[email protected]>
1616
1 file changed, 1 insertion(+)
1717

1818
diff --git a/lib/device/device_id.c b/lib/device/device_id.c
19-
index 1422f5d05..8215811bd 100644
19+
index 2b183810a..53467cbbb 100644
2020
--- a/lib/device/device_id.c
2121
+++ b/lib/device/device_id.c
22-
@@ -25,6 +25,7 @@
22+
@@ -26,6 +26,7 @@
2323
#include "lib/datastruct/str_list.h"
2424
#include "lib/metadata/metadata-exported.h"
2525

2626
+#include <libgen.h>
2727
#include <sys/stat.h>
2828
#include <fcntl.h>
2929
#include <unistd.h>
30-
--
31-
2.44.0
32-

meta-oe/recipes-support/lvm2/files/0004-tweak-MODPROBE_CMD-for-cross-compile.patch

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 3bba45890985b877b823836e78a1c8ac3c878856 Mon Sep 17 00:00:00 2001
1+
From b30f842d5d200a8217a47465d6cdd99d3805ba76 Mon Sep 17 00:00:00 2001
22
From: Hongxu Jia <[email protected]>
33
Date: Tue, 31 Jul 2018 15:04:29 +0800
4-
Subject: [PATCH 4/4] tweak MODPROBE_CMD for cross compile
4+
Subject: [PATCH] tweak MODPROBE_CMD for cross compile
55

66
Lvm uses variable MODPROBE_CMD at runtime, so build time detection of modprobe
77
is incorrect.
@@ -21,10 +21,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
2121
1 file changed, 2 deletions(-)
2222

2323
diff --git a/configure.ac b/configure.ac
24-
index b43d8b9be..efe3062c1 100644
24+
index c8d81e16c..7c1c04627 100644
2525
--- a/configure.ac
2626
+++ 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"], [
2828
])
2929

3030
################################################################################
@@ -33,6 +33,3 @@ index b43d8b9be..efe3062c1 100644
3333
AS_IF([test -n "$MODPROBE_CMD"], [
3434
AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.])
3535
])
36-
--
37-
2.7.4
38-

meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 103ac1c1200df8190372d973e004776cffe8e659 Mon Sep 17 00:00:00 2001
1+
From e0e06b77e067da6a01dd9b0d5582a0a1709c655d Mon Sep 17 00:00:00 2001
22
From: Hongxu Jia <[email protected]>
33
Date: Mon, 26 Nov 2018 14:59:55 +0800
4-
Subject: [PATCH 2/3] do not build manual
4+
Subject: [PATCH] do not build manual
55

66
On some host (ubuntu 1404), build manual failed.
77
...
@@ -26,7 +26,7 @@ Signed-off-by: Wang Mingyu <[email protected]>
2626
2 files changed, 3 insertions(+), 4 deletions(-)
2727

2828
diff --git a/Makefile.in b/Makefile.in
29-
index 3b7e0ec..37f14eb 100644
29+
index 06c4b1823..90df7b09c 100644
3030
--- a/Makefile.in
3131
+++ b/Makefile.in
3232
@@ -18,7 +18,7 @@ top_builddir = @top_builddir@
@@ -47,7 +47,7 @@ index 3b7e0ec..37f14eb 100644
4747
libdaemon lib tools daemons libdm \
4848
udev po
4949
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
5151

5252
daemons.device-mapper: libdm.device-mapper
5353
tools.device-mapper: libdm.device-mapper
@@ -57,17 +57,14 @@ index 3b7e0ec..37f14eb 100644
5757

5858
ifeq ("@INTL@", "yes")
5959
diff --git a/configure.ac b/configure.ac
60-
index 6def519..18a5c97 100644
60+
index 7c1c04627..5364dd68e 100644
6161
--- a/configure.ac
6262
+++ b/configure.ac
63-
@@ -2018,7 +2018,6 @@ libdaemon/server/Makefile
63+
@@ -2022,7 +2022,6 @@ libdaemon/server/Makefile
6464
libdm/Makefile
6565
libdm/dm-tools/Makefile
6666
libdm/libdevmapper.pc
6767
-man/Makefile
6868
po/Makefile
6969
scripts/lvm2-pvscan.service
7070
scripts/blkdeactivate.sh
71-
--
72-
2.25.1
73-

meta-oe/recipes-support/lvm2/files/0006-start-lvm2-monitor.service-after-tmp.mount.patch

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From e213ed33a28704f6f538df41a91b7ce95594a4f8 Mon Sep 17 00:00:00 2001
1+
From 20a110ade91c73f4cb3883a3a9676708a93ca786 Mon Sep 17 00:00:00 2001
22
From: Hongxu Jia <[email protected]>
33
Date: Tue, 15 Oct 2019 18:12:54 +0800
44
Subject: [PATCH] start lvm2-monitor.service after tmp.mount
@@ -19,7 +19,7 @@ Signed-off-by: Wang Mingyu <[email protected]>
1919
1 file changed, 1 insertion(+), 1 deletion(-)
2020

2121
diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in
22-
index c0c96e3..2a99a37 100644
22+
index c0c96e316..2a99a379d 100644
2323
--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in
2424
+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in
2525
@@ -2,7 +2,7 @@
@@ -31,6 +31,3 @@ index c0c96e3..2a99a37 100644
3131
Before=local-fs-pre.target shutdown.target
3232
DefaultDependencies=no
3333
Conflicts=shutdown.target
34-
--
35-
2.25.1
36-

meta-oe/recipes-support/lvm2/files/reproducible-build.patch

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
configure.ac: override CONFIGURE_LINE
1+
From f5c6fabbdf2e7bfa105658b9dfe45d2ab86f34bb Mon Sep 17 00:00:00 2001
2+
From: Joe Slater <[email protected]>
3+
Date: Fri, 17 Jul 2020 13:59:56 -0700
4+
Subject: [PATCH] configure.ac: override CONFIGURE_LINE
25

36
For reproducible binaries, we need to report a constant CONFIGURE_LINE.
47

58
Upstream-Status: Pending
69

710
Signed-off-by: Joe Slater <[email protected]>
11+
---
12+
configure.ac | 10 +++++++++-
13+
1 file changed, 9 insertions(+), 1 deletion(-)
814

9-
10-
--- git.orig/configure.ac
11-
+++ git/configure.ac
15+
diff --git a/configure.ac b/configure.ac
16+
index 5364dd68e..c2dbf3c9f 100644
17+
--- a/configure.ac
18+
+++ b/configure.ac
1219
@@ -15,7 +15,15 @@ AC_PREREQ(2.69)
1320
################################################################################
1421
dnl -- Process this file with autoconf to produce a configure script.

meta-oe/recipes-support/lvm2/lvm2_2.03.22.bb renamed to meta-oe/recipes-support/lvm2/lvm2.bb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ require lvm2.inc
33
SRC_URI += " \
44
file://0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch \
55
file://tweak-for-lvmdbusd.patch \
6-
file://0001-lvmdbusd-create-dirs-for-lock-file.patch \
76
"
87

98
DEPENDS += "autoconf-archive-native"

meta-oe/recipes-support/lvm2/lvm2.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \
2121

2222
SRCREV = "90ec2cd92f6367c431dd8dae55d0cbe7e196734f"
2323
S = "${WORKDIR}/git"
24+
PV = "2.03.24"
2425

2526
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)"
2627

meta-oe/recipes-support/lvm2/lvm2/0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ddf36613f3408ce42f15b03b4e9c6ad8478b97f8 Mon Sep 17 00:00:00 2001
1+
From 2ff2a867db8d3e1c660d191a1805f9e355169c80 Mon Sep 17 00:00:00 2001
22
From: Hongxu Jia <[email protected]>
33
Date: Tue, 2 Mar 2021 01:33:05 -0800
44
Subject: [PATCH] fix command /bin/findmnt, /bin/lsblk, /bin/sort not found
@@ -15,10 +15,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
1515
2 files changed, 7 insertions(+), 3 deletions(-)
1616

1717
diff --git a/configure.ac b/configure.ac
18-
index 991a0cf85..e59c82472 100644
18+
index d9e7964c3..9dfdcfe01 100644
1919
--- a/configure.ac
2020
+++ 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"], [
2222

2323
SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))"
2424

@@ -27,7 +27,7 @@ index 991a0cf85..e59c82472 100644
2727
SBINDIR="$(eval echo $(eval echo $sbindir))"
2828
LVM_PATH="$SBINDIR/lvm"
2929
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)
3131
AC_SUBST(PYTHON3)
3232
AC_SUBST(PYTHON3DIR)
3333
AC_SUBST(RT_LIBS)
@@ -68,6 +68,3 @@ index 7c517b87b..7ef1bb766 100644
6868

6969
# Do not show tool errors by default (only done/skipping summary
7070
# message provided by this script) and no verbose mode by default.
71-
--
72-
2.29.2
73-

meta-oe/recipes-support/lvm2/lvm2/0001-lvmdbusd-create-dirs-for-lock-file.patch

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)