diff options
| author | Kai Kang <kai.kang@windriver.com> | 2023-12-06 10:24:46 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-12-07 14:25:11 -0800 |
| commit | 02f460c5e379b3b0980374b3f89d55bc195d03d3 (patch) | |
| tree | 07db71930eb05ac400b76c0fa96c8042fcb60f1d | |
| parent | da5e4c5eb2f0759da570d4fa76acfd09f0898565 (diff) | |
| download | meta-openembedded-02f460c5e379b3b0980374b3f89d55bc195d03d3.tar.gz | |
lvm2: 2.03.16 -> 2.03.22
Update lvm2 from 2.03.16 to 2.03.22.
* remove 0002-Guard-use-of-mallinfo-with-__GLIBC__.patch which has done
in upstream already
* add patch to check egrep & grep
* rebase patches
* add package config 'dbus' and fix errors about it
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/files/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/files/0004-tweak-MODPROBE_CMD-for-cross-compile.patch | 10 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/libdevmapper_2.03.22.bb (renamed from meta-oe/recipes-support/lvm2/libdevmapper_2.03.16.bb) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 4 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2/0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch | 12 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2/0001-lvmdbusd-create-dirs-for-lock-file.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2/tweak-for-lvmdbusd.patch | 55 | ||||
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2_2.03.22.bb (renamed from meta-oe/recipes-support/lvm2/lvm2_2.03.16.bb) | 19 |
9 files changed, 147 insertions, 44 deletions
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 new file mode 100644 index 0000000000..474c2f8ac7 --- /dev/null +++ b/meta-oe/recipes-support/lvm2/files/0001-configure.ac-check-egrep.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | configure.ac: check egrep | ||
| 2 | |||
| 3 | The macro AC_HEADER_STDC which requires AC_PROG_EGREP has been removed | ||
| 4 | from configure.ac, then it fails to substitute '@EGREP@': | ||
| 5 | |||
| 6 | | [GEN] command-lines-input.h | ||
| 7 | | /bin/bash: line 2: @EGREP@: command not found | ||
| 8 | | [GEN] command-count.h | ||
| 9 | |||
| 10 | Call AC_PROG_EGREP to fix the error. | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://gitlab.com/lvmteam/lvm2/-/merge_requests/4] | ||
| 13 | |||
| 14 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 15 | --- | ||
| 16 | configure.ac | 1 + | ||
| 17 | 1 file changed, 1 insertion(+) | ||
| 18 | |||
| 19 | diff --git a/configure.ac b/configure.ac | ||
| 20 | index 2e52498f9..d9462e22c 100644 | ||
| 21 | --- a/configure.ac | ||
| 22 | +++ b/configure.ac | ||
| 23 | @@ -78,6 +78,7 @@ AC_PROG_LN_S | ||
| 24 | AC_PROG_MAKE_SET | ||
| 25 | AC_PROG_MKDIR_P | ||
| 26 | AC_PROG_RANLIB | ||
| 27 | +AC_PROG_EGREP | ||
| 28 | AC_CHECK_TOOL([READELF], [readelf]) | ||
| 29 | AC_CHECK_TOOL(AR, ar) | ||
| 30 | AC_PATH_TOOL(CFLOW_CMD, cflow) | ||
| 31 | -- | ||
| 32 | 2.34.1 | ||
| 33 | |||
diff --git a/meta-oe/recipes-support/lvm2/files/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch b/meta-oe/recipes-support/lvm2/files/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch deleted file mode 100644 index 1fbaf0c9ae..0000000000 --- a/meta-oe/recipes-support/lvm2/files/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | From 3ae9c0b607ec33fb07f32a41e9d28cc9068dd39a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dengke Du <dengke.du@windriver.com> | ||
| 3 | Date: Tue, 25 Oct 2016 11:52:44 +0000 | ||
| 4 | Subject: [PATCH] Guard use of mallinfo() with __GLIBC__ | ||
| 5 | |||
| 6 | This API is glibc-only | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | ||
| 10 | |||
| 11 | --- | ||
| 12 | Upstream-Status: Pending | ||
| 13 | |||
| 14 | lib/mm/memlock.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | Index: LVM2.2.02.177/lib/mm/memlock.c | ||
| 18 | =================================================================== | ||
| 19 | --- LVM2.2.02.177.orig/lib/mm/memlock.c | ||
| 20 | +++ LVM2.2.02.177/lib/mm/memlock.c | ||
| 21 | @@ -151,7 +151,7 @@ static void _touch_memory(void *mem, siz | ||
| 22 | |||
| 23 | static void _allocate_memory(void) | ||
| 24 | { | ||
| 25 | -#ifndef VALGRIND_POOL | ||
| 26 | +#if !defined(VALGRIND_POOL) && defined(__GLIBC__) | ||
| 27 | void *stack_mem; | ||
| 28 | struct rlimit limit; | ||
| 29 | int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks; | ||
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 517b9a5f28..ed9972a5f9 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 | |||
| @@ -21,18 +21,18 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
| 21 | 1 file changed, 2 deletions(-) | 21 | 1 file changed, 2 deletions(-) |
| 22 | 22 | ||
| 23 | diff --git a/configure.ac b/configure.ac | 23 | diff --git a/configure.ac b/configure.ac |
| 24 | index e427708..aa374ea 100644 | 24 | index b43d8b9be..efe3062c1 100644 |
| 25 | --- a/configure.ac | 25 | --- a/configure.ac |
| 26 | +++ b/configure.ac | 26 | +++ b/configure.ac |
| 27 | @@ -1791,8 +1791,6 @@ if test "$BUILD_DMFILEMAPD" = yes; then | 27 | @@ -1646,8 +1646,6 @@ AS_IF([test "$BUILD_DMFILEMAPD" = "yes"], [ |
| 28 | fi | 28 | ]) |
| 29 | 29 | ||
| 30 | ################################################################################ | 30 | ################################################################################ |
| 31 | -AC_PATH_TOOL(MODPROBE_CMD, modprobe, [], [$PATH_SBIN]) | 31 | -AC_PATH_TOOL(MODPROBE_CMD, modprobe, [], [$PATH_SBIN]) |
| 32 | - | 32 | - |
| 33 | if test -n "$MODPROBE_CMD"; then | 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 | fi | 35 | ]) |
| 36 | -- | 36 | -- |
| 37 | 2.7.4 | 37 | 2.7.4 |
| 38 | 38 | ||
diff --git a/meta-oe/recipes-support/lvm2/libdevmapper_2.03.16.bb b/meta-oe/recipes-support/lvm2/libdevmapper_2.03.22.bb index be558ce1d2..be558ce1d2 100644 --- a/meta-oe/recipes-support/lvm2/libdevmapper_2.03.16.bb +++ b/meta-oe/recipes-support/lvm2/libdevmapper_2.03.22.bb | |||
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index 277e76f0d2..c96989bfaf 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
| @@ -10,15 +10,15 @@ DEPENDS += "libaio" | |||
| 10 | SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \ | 10 | SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \ |
| 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 \ | ||
| 14 | file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \ | 13 | file://0004-tweak-MODPROBE_CMD-for-cross-compile.patch \ |
| 15 | file://0001-Avoid-bashisms-in-init-scripts.patch \ | 14 | file://0001-Avoid-bashisms-in-init-scripts.patch \ |
| 16 | file://0005-do-not-build-manual.patch \ | 15 | file://0005-do-not-build-manual.patch \ |
| 17 | file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ | 16 | file://0006-start-lvm2-monitor.service-after-tmp.mount.patch \ |
| 18 | file://reproducible-build.patch \ | 17 | file://reproducible-build.patch \ |
| 18 | file://0001-configure.ac-check-egrep.patch \ | ||
| 19 | " | 19 | " |
| 20 | 20 | ||
| 21 | SRCREV = "6d1e894a867681af7a811ed63bc435f3aa55fec8" | 21 | SRCREV = "016e469caf856f1eb8dde39df0d1aa2e74225aed" |
| 22 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
| 23 | 23 | ||
| 24 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" | 24 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)" |
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 34e0620a1c..c0cf836ce8 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 | |||
| @@ -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 | ||
| 17 | diff --git a/configure.ac b/configure.ac | 17 | diff --git a/configure.ac b/configure.ac |
| 18 | index 4811d4a3d..137b31a82 100644 | 18 | index 991a0cf85..e59c82472 100644 |
| 19 | --- a/configure.ac | 19 | --- a/configure.ac |
| 20 | +++ b/configure.ac | 20 | +++ b/configure.ac |
| 21 | @@ -1611,6 +1611,8 @@ fi | 21 | @@ -1660,6 +1660,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,10 +27,10 @@ index 4811d4a3d..137b31a82 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 | @@ -1829,6 +1831,7 @@ AC_SUBST(SACKPT_CFLAGS) | 30 | @@ -1886,6 +1888,7 @@ AC_SUBST(PYTHON2DIR) |
| 31 | AC_SUBST(SACKPT_LIBS) | 31 | AC_SUBST(PYTHON3) |
| 32 | AC_SUBST(SALCK_CFLAGS) | 32 | AC_SUBST(PYTHON3DIR) |
| 33 | AC_SUBST(SALCK_LIBS) | 33 | AC_SUBST(RT_LIBS) |
| 34 | +AC_SUBST(BINDIR) | 34 | +AC_SUBST(BINDIR) |
| 35 | AC_SUBST(SBINDIR) | 35 | AC_SUBST(SBINDIR) |
| 36 | AC_SUBST(SELINUX_LIBS) | 36 | AC_SUBST(SELINUX_LIBS) |
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 new file mode 100644 index 0000000000..f6b293553d --- /dev/null +++ b/meta-oe/recipes-support/lvm2/lvm2/0001-lvmdbusd-create-dirs-for-lock-file.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | lvmdbusd: create dirs for lock file | ||
| 2 | |||
| 3 | Create 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 | |||
| 8 | Upstream-Status: Submitted [https://gitlab.com/lvmteam/lvm2/-/merge_requests/7] | ||
| 9 | |||
| 10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 11 | --- | ||
| 12 | daemons/lvmdbusd/utils.py | 1 + | ||
| 13 | 1 file changed, 1 insertion(+) | ||
| 14 | |||
| 15 | diff --git a/daemons/lvmdbusd/utils.py b/daemons/lvmdbusd/utils.py | ||
| 16 | index 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 | -- | ||
| 28 | 2.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 new file mode 100644 index 0000000000..3b85a17b61 --- /dev/null +++ b/meta-oe/recipes-support/lvm2/lvm2/tweak-for-lvmdbusd.patch | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | Not check python modules pyudev and dbus during configure that they are runtime | ||
| 2 | dependencies. Deal with them in the package config setting in the recipe. | ||
| 3 | |||
| 4 | Remove $(DESTDIR) from install destination that it is not suitable for oe. And | ||
| 5 | no generate python cache files too. | ||
| 6 | |||
| 7 | Upstream-Status: Pending [oe specific] | ||
| 8 | |||
| 9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 10 | --- | ||
| 11 | configure.ac | 4 ++-- | ||
| 12 | daemons/lvmdbusd/Makefile.in | 6 ++---- | ||
| 13 | 2 files changed, 4 insertions(+), 6 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/configure.ac b/configure.ac | ||
| 16 | index ee088b3f5..b94ef4e56 100644 | ||
| 17 | --- a/configure.ac | ||
| 18 | +++ b/configure.ac | ||
| 19 | @@ -1262,8 +1262,8 @@ AS_IF([test "$BUILD_LVMDBUSD" = "yes"], [ | ||
| 20 | AS_IF([test "$PYTHON3_BINDINGS" = "yes"], [PYTHON_BINDINGS="yes"]) | ||
| 21 | |||
| 22 | # To get this macro, install autoconf-archive package then run autoreconf | ||
| 23 | - AX_PYTHON_MODULE([pyudev], [Required], python3) | ||
| 24 | - AX_PYTHON_MODULE([dbus], [Required], python3) | ||
| 25 | + # AX_PYTHON_MODULE([pyudev], [Required], python3) | ||
| 26 | + # AX_PYTHON_MODULE([dbus], [Required], python3) | ||
| 27 | ]) | ||
| 28 | |||
| 29 | ################################################################################ | ||
| 30 | diff --git a/daemons/lvmdbusd/Makefile.in b/daemons/lvmdbusd/Makefile.in | ||
| 31 | index 9c2629279..a79daabf7 100644 | ||
| 32 | --- a/daemons/lvmdbusd/Makefile.in | ||
| 33 | +++ b/daemons/lvmdbusd/Makefile.in | ||
| 34 | @@ -16,7 +16,7 @@ top_srcdir = @top_srcdir@ | ||
| 35 | top_builddir = @top_builddir@ | ||
| 36 | |||
| 37 | lvmdbuspydir = $(python3dir)/lvmdbusd | ||
| 38 | -lvmdbusdir = $(DESTDIR)$(lvmdbuspydir) | ||
| 39 | +lvmdbusdir = $(lvmdbuspydir) | ||
| 40 | |||
| 41 | LVMDBUS_SRCDIR_FILES = \ | ||
| 42 | automatedproperties.py \ | ||
| 43 | @@ -55,11 +55,9 @@ install_lvmdbusd: $(LVMDBUSD) | ||
| 44 | @echo " [INSTALL] $<" | ||
| 45 | $(Q) $(INSTALL_DIR) $(sbindir) | ||
| 46 | $(Q) $(INSTALL_SCRIPT) $(LVMDBUSD) $(sbindir) | ||
| 47 | - $(Q) $(INSTALL_DIR) $(lvmdbusdir) $(lvmdbusdir)/__pycache__ | ||
| 48 | + $(Q) $(INSTALL_DIR) $(lvmdbusdir) | ||
| 49 | $(Q) (cd $(srcdir); $(INSTALL_DATA) $(LVMDBUS_SRCDIR_FILES) $(lvmdbusdir)) | ||
| 50 | $(Q) $(INSTALL_DATA) $(LVMDBUS_BUILDDIR_FILES) $(lvmdbusdir) | ||
| 51 | - $(Q) PYTHON=$(PYTHON3) $(PYCOMPILE) --destdir "$(DESTDIR)" --basedir "$(lvmdbuspydir)" $(LVMDBUS_SRCDIR_FILES) $(LVMDBUS_BUILDDIR_FILES) | ||
| 52 | - $(Q) $(CHMOD) 444 $(lvmdbusdir)/__pycache__/*.py[co] | ||
| 53 | |||
| 54 | install_lvm2: install_lvmdbusd | ||
| 55 | |||
diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.03.16.bb b/meta-oe/recipes-support/lvm2/lvm2_2.03.22.bb index 6a6cdc7cef..c675d3ded8 100644 --- a/meta-oe/recipes-support/lvm2/lvm2_2.03.16.bb +++ b/meta-oe/recipes-support/lvm2/lvm2_2.03.22.bb | |||
| @@ -2,11 +2,13 @@ require lvm2.inc | |||
| 2 | 2 | ||
| 3 | SRC_URI += " \ | 3 | SRC_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 \ | ||
| 6 | file://0001-lvmdbusd-create-dirs-for-lock-file.patch \ | ||
| 5 | " | 7 | " |
| 6 | 8 | ||
| 7 | DEPENDS += "autoconf-archive-native" | 9 | DEPENDS += "autoconf-archive-native" |
| 8 | 10 | ||
| 9 | inherit multilib_script | 11 | inherit multilib_script python3native |
| 10 | 12 | ||
| 11 | MULTILIB_SCRIPTS = "${PN}:${sysconfdir}/lvm/lvm.conf" | 13 | MULTILIB_SCRIPTS = "${PN}:${sysconfdir}/lvm/lvm.conf" |
| 12 | 14 | ||
| @@ -28,13 +30,22 @@ do_install:append() { | |||
| 28 | rm -rf ${D}${sysconfdir}/rc.d | 30 | rm -rf ${D}${sysconfdir}/rc.d |
| 29 | fi | 31 | fi |
| 30 | fi | 32 | fi |
| 33 | |||
| 34 | # following files only exist when package config `dbus` enabled | ||
| 35 | sed -i -e '1s,#!.*python.*,#!${USRBINPATH}/env python3,' \ | ||
| 36 | ${D}${sbindir}/lvmdbusd \ | ||
| 37 | ${D}${PYTHON_SITEPACKAGES_DIR}/lvmdbusd/lvmdb.py \ | ||
| 38 | ${D}${PYTHON_SITEPACKAGES_DIR}/lvmdbusd/lvm_shell_proxy.py \ | ||
| 39 | || true | ||
| 31 | } | 40 | } |
| 32 | 41 | ||
| 33 | PACKAGE_BEFORE_PN = "${PN}-scripts ${PN}-udevrules" | 42 | PACKAGE_BEFORE_PN = "${PN}-scripts ${PN}-udevrules" |
| 34 | 43 | ||
| 35 | SYSTEMD_PACKAGES = "${PN}" | 44 | SYSTEMD_PACKAGES = "${PN}" |
| 36 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \ | 45 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \ |
| 37 | blk-availability.service" | 46 | ${@bb.utils.contains('PACKAGECONFIG', 'dbus', 'lvm2-lvmdbusd.service', '', d)} \ |
| 47 | blk-availability.service \ | ||
| 48 | " | ||
| 38 | SYSTEMD_AUTO_ENABLE = "disable" | 49 | SYSTEMD_AUTO_ENABLE = "disable" |
| 39 | 50 | ||
| 40 | TARGET_CC_ARCH += "${LDFLAGS}" | 51 | TARGET_CC_ARCH += "${LDFLAGS}" |
| @@ -45,6 +56,8 @@ DEPENDS += "util-linux" | |||
| 45 | LVM2_PACKAGECONFIG:append:class-target = " \ | 56 | LVM2_PACKAGECONFIG:append:class-target = " \ |
| 46 | udev \ | 57 | udev \ |
| 47 | " | 58 | " |
| 59 | |||
| 60 | PACKAGECONFIG[dbus] = "--enable-dbus-service,--disable-dbus-service,,python3-dbus python3-pyudev" | ||
| 48 | PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udevdir=${nonarch_base_libdir}/udev/rules.d,--disable-udev_sync --disable-udev_rules,udev,${PN}-udevrules" | 61 | PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udevdir=${nonarch_base_libdir}/udev/rules.d,--disable-udev_sync --disable-udev_rules,udev,${PN}-udevrules" |
| 49 | 62 | ||
| 50 | PACKAGES =+ "libdevmapper" | 63 | PACKAGES =+ "libdevmapper" |
| @@ -57,6 +70,8 @@ FILES:libdevmapper = " \ | |||
| 57 | FILES:${PN} += " \ | 70 | FILES:${PN} += " \ |
| 58 | ${libdir}/device-mapper/*.so \ | 71 | ${libdir}/device-mapper/*.so \ |
| 59 | ${systemd_system_unitdir}/lvm2-pvscan@.service \ | 72 | ${systemd_system_unitdir}/lvm2-pvscan@.service \ |
| 73 | ${PYTHON_SITEPACKAGES_DIR}/lvmdbusd \ | ||
| 74 | ${datadir}/dbus-1/system-services/com.redhat.lvmdbus1.service \ | ||
| 60 | " | 75 | " |
| 61 | 76 | ||
| 62 | FILES:${PN}-scripts = " \ | 77 | FILES:${PN}-scripts = " \ |
