mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
meson: Don't require the parted command at build time
We need libparted to be available at build time otherwise we can't link against it; we don't, however, need the parted command to be present until runtime and, just as is the case for other commands, we already perform a lookup through the virCommand API so making sure it's available at build time is unnecessary. This doesn't make any difference for platform such as Fedora and CentOS, where both the library and the command are in the same package, but others like Debian, Ubuntu and openSUSE have separate packages for the two components and this change means that we can install one less package at build time. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
868df2a768
commit
5a781738d1
@ -1043,14 +1043,6 @@ endif
|
||||
|
||||
libparted_version = '1.8.0'
|
||||
libparted_dep = dependency('libparted', version: '>=' + libparted_version, required: false)
|
||||
if libparted_dep.found()
|
||||
parted_prog = find_program('parted', required: false, dirs: libvirt_sbin_path)
|
||||
if parted_prog.found()
|
||||
conf.set_quoted('PARTED', parted_prog.path())
|
||||
else
|
||||
libparted_dep = dependency('', required: false)
|
||||
endif
|
||||
endif
|
||||
|
||||
libpcap_version = '1.5.0'
|
||||
if not get_option('libpcap').disabled()
|
||||
|
@ -40,6 +40,8 @@ VIR_LOG_INIT("storage.storage_backend_disk");
|
||||
|
||||
#define SECTOR_SIZE 512
|
||||
|
||||
#define PARTED "parted"
|
||||
|
||||
static bool
|
||||
virStorageVolPartFindExtended(virStorageVolDef *def,
|
||||
const void *opaque G_GNUC_UNUSED)
|
||||
|
@ -85,6 +85,8 @@ VIR_LOG_INIT("storage.storage_util");
|
||||
# define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO)
|
||||
#endif
|
||||
|
||||
#define PARTED "parted"
|
||||
|
||||
/* virStorageBackendNamespaceInit:
|
||||
* @poolType: virStoragePoolType
|
||||
* @xmlns: Storage Pool specific namespace callback methods
|
||||
|
Loading…
Reference in New Issue
Block a user