From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Sven Püschel" <s.pueschel@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] lvm2: make libaio dependency conditional
Date: Wed, 15 Jul 2026 12:01:46 +0200 [thread overview]
Message-ID: <20260715100146.1255076-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20260703083435.1279918-1-s.pueschel@pengutronix.de>
Thanks, applied as 6feea7bf78c362b416b05fdd7b342072e2470ee5.
Michael
[sent from post-receive hook]
On Wed, 15 Jul 2026 12:01:46 +0200, Sven Püschel <s.pueschel@pengutronix.de> wrote:
> When only using the device-mapper related part of lvm2, libaio is not
> required. This requires us to only use the [install_]device-mapper
> make targets to avoid trying to compile the lvm2 tools, which depend on
> libaio.
>
> Also move the lvm2 configuration file to the LVM_TOOLS option, as it
> won't be built by the device-mapper target and doesn't seem to be
> relevant for dmsetup alone.
>
> Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
> Message-Id: <20260703083435.1279918-1-s.pueschel@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/lvm2.in b/rules/lvm2.in
> index f0b8123fc2da..db009f8d5825 100644
> --- a/rules/lvm2.in
> +++ b/rules/lvm2.in
> @@ -4,10 +4,10 @@ menuconfig LVM2
> tristate
> select LIBC_DL
> select GCCLIBS_GCC_S
> - select LIBAIO
> + select LIBAIO if LVM2_LVM_TOOLS
> select READLINE
> select NCURSES
> - select SYSTEMD if LVM2_SYSTEMD
> + select SYSTEMD if LVM2_SYSTEMD
> prompt "lvm2 "
> help
> LVM2 refers to a new userspace toolset that provide logical volume management
> diff --git a/rules/lvm2.make b/rules/lvm2.make
> index 6e781c66fd7e..d45c89356ba5 100644
> --- a/rules/lvm2.make
> +++ b/rules/lvm2.make
> @@ -90,6 +90,11 @@ LVM2_CONF_OPT := \
> --with-device-gid=$(PTXCONF_LVM2_DEVICE_GID) \
> --with-device-mode=$(PTXCONF_LVM2_DEVICE_MODE)
>
> +ifndef PTXCONF_LVM2_LVM_TOOLS
> +LVM2_MAKE_OPT := device-mapper
> +LVM2_INSTALL_OPT := install_device-mapper
> +endif
> +
> # ----------------------------------------------------------------------------
> # Target-Install
> # ----------------------------------------------------------------------------
> @@ -153,9 +158,9 @@ ifdef PTXCONF_LVM2_LVM_TOOLS
> @$(call install_link, lvm2, lvm, /usr/sbin/vgs)
> @$(call install_link, lvm2, lvm, /usr/sbin/vgscan)
> @$(call install_link, lvm2, lvm, /usr/sbin/vgsplit)
> -endif
>
> @$(call install_alternative, lvm2, 0, 0, 0644, /etc/lvm/lvm.conf)
> +endif
>
> @$(call install_lib, lvm2, 0, 0, 0644, libdevmapper)
> @$(call install_lib, lvm2, 0, 0, 0644, libdevmapper-event)
prev parent reply other threads:[~2026-07-15 10:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 8:33 [ptxdist] [PATCH v2 1/3] " Sven Püschel
2026-07-03 8:33 ` [ptxdist] [PATCH v2 2/3] lvm2: add option for libdevmapper-event.so Sven Püschel
2026-07-10 7:31 ` Michael Olbrich
2026-07-15 10:01 ` [ptxdist] [APPLIED] " Michael Olbrich
2026-07-03 8:33 ` [ptxdist] [PATCH v2 3/3] lvm2: add bash as dependency Sven Püschel
2026-07-10 7:32 ` Michael Olbrich
2026-07-15 10:01 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260715100146.1255076-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=s.pueschel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox