From 3801c4e4be34a7d0ad3032991cccaa0c80f47506 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 7 Jan 2024 15:19:01 +0100 Subject: [PATCH] package/lvm2: fix libaio handling libaio is only needed for standard install Signed-off-by: Fabrice Fontaine [yann.morin.1998@free.fr: fix check-package] Signed-off-by: Yann E. MORIN (cherry picked from commit ee9c92e4a4d518d07da5fc3d64aa695509ecdea7) Signed-off-by: Peter Korsgaard --- package/lvm2/Config.in | 2 +- package/lvm2/lvm2.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in index cc740dd40c..5d19f78b8a 100644 --- a/package/lvm2/Config.in +++ b/package/lvm2/Config.in @@ -3,7 +3,6 @@ config BR2_PACKAGE_LVM2 depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # needs fork() depends on !BR2_STATIC_LIBS # It fails to build statically - select BR2_PACKAGE_LIBAIO help This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM supports enterprise level volume management of disk and @@ -29,6 +28,7 @@ config BR2_PACKAGE_LVM2_STANDARD_INSTALL default y # http://lists.busybox.net/pipermail/buildroot/2016-August/170592.html depends on !BR2_TOOLCHAIN_USES_MUSL + select BR2_PACKAGE_LIBAIO help Install the standard suite of lvm2 programs. When this option is not set, only dmsetup is installed. diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk index 9caf99eb9b..474ea30bdc 100644 --- a/package/lvm2/lvm2.mk +++ b/package/lvm2/lvm2.mk @@ -25,7 +25,7 @@ LVM2_CONF_OPTS += \ --disable-nls \ --with-symvers=no -LVM2_DEPENDENCIES += host-pkgconf libaio +LVM2_DEPENDENCIES += host-pkgconf # LVM2 uses autoconf, but not automake, and the build system does not # take into account the toolchain passed at configure time. @@ -49,6 +49,7 @@ LVM2_CONF_OPTS += --disable-selinux endif ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),y) +LVM2_DEPENDENCIES += libaio LVM2_INSTALL_STAGING_OPTS += install LVM2_INSTALL_TARGET_OPTS += install ifeq ($(BR2_INIT_SYSTEMD),y)