summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support')
-rw-r--r--meta-oe/recipes-support/lvm2/files/0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch30
-rw-r--r--meta-oe/recipes-support/lvm2/files/0005-do-not-build-manual.patch13
-rw-r--r--meta-oe/recipes-support/lvm2/files/0006-start-lvm2-monitor.service-after-tmp.mount.patch13
-rw-r--r--meta-oe/recipes-support/lvm2/libdevmapper_2.03.02.bb (renamed from meta-oe/recipes-support/lvm2/libdevmapper_2.03.01.bb)0
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2.inc7
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/0001-explicitly-do-not-install-libdm.patch32
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch31
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb (renamed from meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb)5
8 files changed, 45 insertions, 86 deletions
diff --git a/meta-oe/recipes-support/lvm2/files/0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch b/meta-oe/recipes-support/lvm2/files/0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch
deleted file mode 100644
index 9ab1c06d2..000000000
--- a/meta-oe/recipes-support/lvm2/files/0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From b1ad91a059d99afd1ce25823b7c0a8d3ac63d2fd Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com>
3Date: Tue, 25 Oct 2016 11:55:49 +0000
4Subject: [PATCH 3/4] include fcntl.h for O_* defines and fcntl() signature
5
6On glibc _somehow_ this header gets pulled in indirectly
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Signed-off-by: Dengke Du <dengke.du@windriver.com>
10---
11Upstream-Status: Pending
12---
13 libdaemon/server/daemon-server.c | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c
17index 6af6de9..a9590e7 100644
18--- a/libdaemon/server/daemon-server.c
19+++ b/libdaemon/server/daemon-server.c
20@@ -18,6 +18,7 @@
21 #include "daemon-server.h"
22 #include "daemon-log.h"
23
24+#include <fcntl.h>
25 #include <dlfcn.h>
26 #include <errno.h>
27 #include <pthread.h>
28--
292.9.3
30
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 2124ebafe..7117d99a3 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
@@ -14,6 +14,11 @@ Do not build man to workaround the issue.
14Upstream-Status: Pending 14Upstream-Status: Pending
15 15
16Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 16Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
17
18
19Update context for lvm2 2.03.02.
20
21Signed-off-by: Kai Kang <kai.kang@windriver.com>
17--- 22---
18 Makefile.in | 6 +++--- 23 Makefile.in | 6 +++---
19 configure.ac | 1 - 24 configure.ac | 1 -
@@ -41,7 +46,7 @@ index 6a1a990..80cba91 100644
41 libdaemon lib tools daemons libdm \ 46 libdaemon lib tools daemons libdm \
42 udev po 47 udev po
43 tools.distclean: test.distclean 48 tools.distclean: test.distclean
44@@ -59,7 +59,7 @@ libdm.device-mapper: include.device-mapper 49@@ -65,7 +65,7 @@ libdm.device-mapper: include.device-mapper
45 daemons.device-mapper: libdm.device-mapper 50 daemons.device-mapper: libdm.device-mapper
46 tools.device-mapper: libdm.device-mapper 51 tools.device-mapper: libdm.device-mapper
47 scripts.device-mapper: include.device-mapper 52 scripts.device-mapper: include.device-mapper
@@ -51,17 +56,17 @@ index 6a1a990..80cba91 100644
51 ifeq ("@INTL@", "yes") 56 ifeq ("@INTL@", "yes")
52 lib.pofile: include.pofile 57 lib.pofile: include.pofile
53diff --git a/configure.ac b/configure.ac 58diff --git a/configure.ac b/configure.ac
54index 9c45745..8fee4c4 100644 59index 7fd0561..4154dc0 100644
55--- a/configure.ac 60--- a/configure.ac
56+++ b/configure.ac 61+++ b/configure.ac
57@@ -1806,7 +1806,6 @@ libdaemon/server/Makefile 62@@ -1812,7 +1812,6 @@ libdaemon/server/Makefile
58 libdm/Makefile 63 libdm/Makefile
59 libdm/dm-tools/Makefile 64 libdm/dm-tools/Makefile
60 libdm/libdevmapper.pc 65 libdm/libdevmapper.pc
61-man/Makefile 66-man/Makefile
62 po/Makefile 67 po/Makefile
68 scripts/lvm2-pvscan.service
63 scripts/blkdeactivate.sh 69 scripts/blkdeactivate.sh
64 scripts/blk_availability_init_red_hat
65-- 70--
662.7.4 712.7.4
67 72
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 0e68d62fc..e5ad4eaf2 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
@@ -10,20 +10,25 @@ So start lvm2-monitor.service after tmp.mount
10Upstream-Status: Inappropriate [oe specific] 10Upstream-Status: Inappropriate [oe specific]
11 11
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13
14
15Update context for lvm2 2.03.02.
16
17Signed-off-by: Kai Kang <kai.kang@windriver.com>
13--- 18---
14 scripts/lvm2_monitoring_systemd_red_hat.service.in | 2 +- 19 scripts/lvm2_monitoring_systemd_red_hat.service.in | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-) 20 1 file changed, 1 insertion(+), 1 deletion(-)
16 21
17diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in 22diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in
18index 22238b7..93b2bee 100644 23index 7ec4e4e..3282a95 100644
19--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in 24--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in
20+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in 25+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in
21@@ -2,7 +2,7 @@ 26@@ -2,7 +2,7 @@
22 Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling 27 Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
23 Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8) 28 Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8)
24 Requires=dm-event.socket lvm2-lvmetad.socket 29 Requires=dm-event.socket
25-After=dm-event.socket dm-event.service lvm2-lvmetad.socket lvm2-activation.service lvm2-lvmetad.service 30-After=dm-event.socket dm-event.service lvm2-activation.service
26+After=dm-event.socket dm-event.service lvm2-lvmetad.socket lvm2-activation.service lvm2-lvmetad.service tmp.mount 31+After=dm-event.socket dm-event.service lvm2-activation.service tmp.mount
27 Before=local-fs-pre.target 32 Before=local-fs-pre.target
28 DefaultDependencies=no 33 DefaultDependencies=no
29 Conflicts=shutdown.target 34 Conflicts=shutdown.target
diff --git a/meta-oe/recipes-support/lvm2/libdevmapper_2.03.01.bb b/meta-oe/recipes-support/lvm2/libdevmapper_2.03.02.bb
index 2c4febbe0..2c4febbe0 100644
--- a/meta-oe/recipes-support/lvm2/libdevmapper_2.03.01.bb
+++ b/meta-oe/recipes-support/lvm2/libdevmapper_2.03.02.bb
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 1961dca1e..8617f25cb 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -7,18 +7,19 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12713b4d9386533feeb07d6e4831765a \
7 7
8DEPENDS += "util-linux libaio" 8DEPENDS += "util-linux libaio"
9 9
10SRC_URI = "git://github.com/lvmteam/lvm2.git;protocol=https;branch=master \ 10SRC_URI = "ftp://sources.redhat.com/pub/lvm2/releases/LVM2.${PV}.tgz \
11 file://lvm.conf \ 11 file://lvm.conf \
12 file://0001-implement-libc-specific-reopen_stream.patch \ 12 file://0001-implement-libc-specific-reopen_stream.patch \
13 file://0002-Guard-use-of-mallinfo-with-__GLIBC__.patch \ 13 file://0002-Guard-use-of-mallinfo-with-__GLIBC__.patch \
14 file://0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch \
15 file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \ 14 file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \
16 file://0001-Avoid-bashisms-in-init-scripts.patch \ 15 file://0001-Avoid-bashisms-in-init-scripts.patch \
17 file://0005-do-not-build-manual.patch \ 16 file://0005-do-not-build-manual.patch \
18 file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ 17 file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \
19 " 18 "
19SRC_URI[md5sum] = "5fc07da5461a3794a751dcfc355827d5"
20SRC_URI[sha256sum] = "550ba750239fd75b7e52c9877565cabffef506bbf6d7f6f17b9700dee56c720f"
20 21
21S = "${WORKDIR}/git" 22S = "${WORKDIR}/LVM2.${PV}"
22 23
23inherit autotools-brokensep pkgconfig systemd license 24inherit autotools-brokensep pkgconfig systemd license
24 25
diff --git a/meta-oe/recipes-support/lvm2/lvm2/0001-explicitly-do-not-install-libdm.patch b/meta-oe/recipes-support/lvm2/lvm2/0001-explicitly-do-not-install-libdm.patch
index 8b805fc1a..24160b405 100644
--- a/meta-oe/recipes-support/lvm2/lvm2/0001-explicitly-do-not-install-libdm.patch
+++ b/meta-oe/recipes-support/lvm2/lvm2/0001-explicitly-do-not-install-libdm.patch
@@ -9,16 +9,21 @@ explicitly do not do the installation here.
9Upstream-Status: Inappropriate [meta-oe specific] 9Upstream-Status: Inappropriate [meta-oe specific]
10 10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12
13
14Update context for lvm2 2.03.02.
15
16Signed-off-by: Kai Kang <kai.kang@windriver.com>
12--- 17---
13 libdm/Makefile.in | 6 ++++-- 18 libdm/Makefile.in | 6 ++++--
14 libdm/dm-tools/Makefile.in | 6 ++++-- 19 libdm/dm-tools/Makefile.in | 6 ++++--
15 2 files changed, 8 insertions(+), 4 deletions(-) 20 2 files changed, 8 insertions(+), 4 deletions(-)
16 21
17diff --git a/libdm/Makefile.in b/libdm/Makefile.in 22diff --git a/libdm/Makefile.in b/libdm/Makefile.in
18index 8c8334a..effcf25 100644 23index e9bb5ae..4e9ae3f 100644
19--- a/libdm/Makefile.in 24--- a/libdm/Makefile.in
20+++ b/libdm/Makefile.in 25+++ b/libdm/Makefile.in
21@@ -81,9 +81,11 @@ ifeq ("@PKGCONFIG@", "yes") 26@@ -82,9 +82,11 @@ ifeq ("@PKGCONFIG@", "yes")
22 INSTALL_TYPE += install_pkgconfig 27 INSTALL_TYPE += install_pkgconfig
23 endif 28 endif
24 29
@@ -31,25 +36,30 @@ index 8c8334a..effcf25 100644
31+ echo "Do not install device mapper in lvm2" 36+ echo "Do not install device mapper in lvm2"
32 37
33 install_include: $(srcdir)/libdevmapper.h 38 install_include: $(srcdir)/libdevmapper.h
34 $(INSTALL_DATA) -D $< $(includedir)/$(<F) 39 @echo " [INSTALL] $<"
35diff --git a/libdm/dm-tools/Makefile.in b/libdm/dm-tools/Makefile.in 40diff --git a/libdm/dm-tools/Makefile.in b/libdm/dm-tools/Makefile.in
36index 39d411d..4a0f61a 100644 41index 15a9d8e..65e1306 100644
37--- a/libdm/dm-tools/Makefile.in 42--- a/libdm/dm-tools/Makefile.in
38+++ b/libdm/dm-tools/Makefile.in 43+++ b/libdm/dm-tools/Makefile.in
39@@ -60,9 +60,11 @@ install_dmsetup_static: dmsetup.static 44@@ -20,7 +20,8 @@ all: device-mapper
40 $(Q) $(INSTALL_PROGRAM) -D $< $(staticdir)/$(<F)
41 $(Q) $(LN_S) -f $(<F) $(staticdir)/dmstats
42 45
43-install_device-mapper: $(INSTALL_DMSETUP_TARGETS) 46 SOURCES2 = dmsetup.c
47 TARGETS_DM = dmsetup
48-install_device-mapper: install_dmsetup_dynamic
44+install_device-mapper: 49+install_device-mapper:
45+ echo "Do not install device mapper in lvm2" 50+ echo "Do not install device mapper in lvm2"
46 51
47-install: install_device-mapper 52 ifeq ("@STATIC_LINK@", "yes")
53 TARGETS_DM += dmsetup.static
54@@ -93,6 +94,7 @@ install_dmfilemapd_static: dmfilemapd.static
55 .PHONY: install_dmsetup_dynamic install_dmsetup_static
56 .PHONY: install_dmfilemapd install_dmfilemapd_static
57
58-install: install_device-mapper install_dmfilemapd
48+install: 59+install:
49+ echo "Do not install device mapper in lvm2" 60+ echo "Do not install device mapper in lvm2"
50 61
51 # dmfilemapd support 62 device-mapper: $(TARGETS_DM)
52 ifeq ("@BUILD_DMFILEMAPD@", "yes")
53-- 63--
542.7.4 642.7.4
55 65
diff --git a/meta-oe/recipes-support/lvm2/lvm2/0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch b/meta-oe/recipes-support/lvm2/lvm2/0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch
deleted file mode 100644
index 4eeac1c57..000000000
--- a/meta-oe/recipes-support/lvm2/lvm2/0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From b922f4a4e7e1c6c64a235bae4c575540bc4a12df Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 21 Feb 2019 14:00:34 +0800
4Subject: [PATCH] lvm2-monitoring service shouldn't refer to lvmetad
5
6Upstream-Status: Backport [https://sourceware.org/git/?p=lvm2.git;
7a=commit;h=df2fa88e631b13f0f2cfff4aeab80f12bd93ab72]
8
9Signed-off-by: Changqing Li <changqing.li@windriver.com>
10---
11 scripts/lvm2_monitoring_systemd_red_hat.service.in | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in
15index 2b87479..3282a95 100644
16--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in
17+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in
18@@ -1,8 +1,8 @@
19 [Unit]
20 Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
21 Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8)
22-Requires=dm-event.socket lvm2-lvmetad.socket
23-After=dm-event.socket dm-event.service lvm2-lvmetad.socket lvm2-activation.service lvm2-lvmetad.service tmp.mount
24+Requires=dm-event.socket
25+After=dm-event.socket dm-event.service lvm2-activation.service tmp.mount
26 Before=local-fs-pre.target
27 DefaultDependencies=no
28 Conflicts=shutdown.target
29--
302.7.4
31
diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb b/meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb
index 0df624b73..e2ce95c81 100644
--- a/meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb
+++ b/meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb
@@ -3,8 +3,7 @@ require lvm2.inc
3SRCREV = "913c28917e62577a2ef67152b2e5159237503dda" 3SRCREV = "913c28917e62577a2ef67152b2e5159237503dda"
4 4
5SRC_URI += "file://0001-explicitly-do-not-install-libdm.patch \ 5SRC_URI += "file://0001-explicitly-do-not-install-libdm.patch \
6 file://0001-lvm2-monitoring-service-shouldn-t-refer-to-lvmetad.patch \ 6 file://0001-dev-hdc-open-failed-No-medium-found-will-print-out-i.patch \
7 file://0001-dev-hdc-open-failed-No-medium-found-will-print-out-i.patch \
8 " 7 "
9 8
10DEPENDS += "autoconf-archive-native" 9DEPENDS += "autoconf-archive-native"
@@ -34,7 +33,7 @@ PACKAGE_BEFORE_PN = "${PN}-scripts ${PN}-udevrules"
34 33
35SYSTEMD_PACKAGES = "${PN}" 34SYSTEMD_PACKAGES = "${PN}"
36SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \ 35SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \
37 blk-availability.service" 36 blk-availability.service lvm2-pvscan@.service"
38SYSTEMD_AUTO_ENABLE = "disable" 37SYSTEMD_AUTO_ENABLE = "disable"
39 38
40TARGET_CC_ARCH += "${LDFLAGS}" 39TARGET_CC_ARCH += "${LDFLAGS}"