Subject: Parted 3.2 requires LVM2 but does not check for it
From: [email-masked] (Ludovic Courtès)
To: [email-masked]
Date: Mon, 11 Aug 2014 22:53:00 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Parted 3.2 requires LVM2 on GNU/Linux (this was not the case in 3.1) but
‘configure’ does not check for it, leading to compilation errors:

--8<---------------cut here---------------start------------->8---
  CC       arch/linux.lo
arch/linux.c: In function 'dm_canonical_path':
arch/linux.c:2313:16: warning: implicit declaration of function 'dm_task_create' [-Wimplicit-function-declaration]
         struct dm_task *task = dm_task_create (DM_DEVICE_INFO);
                ^
arch/linux.c:2313:48: error: 'DM_DEVICE_INFO' undeclared (first use in this function)
         struct dm_task *task = dm_task_create (DM_DEVICE_INFO);
[...]
--8<---------------cut here---------------end--------------->8---

It would be great if there was a configure check, for instance.

Thanks,
Ludo’.