[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] meson: add 'qemuutil' dependency for block.c
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH] meson: add 'qemuutil' dependency for block.c |
Date: |
Thu, 15 Aug 2024 16:58:00 +0100 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Wed, Aug 14, 2024 at 12:00:52PM +0200, Fiona Ebner wrote:
> The macro block_module_load() used by block.c is a wrapper around
> module_load(), which is implemented in util/module.c.
>
> Fixes linking for a future binary or downstream binary that does not
> depend on 'qemuutil' directly, but does depend on 'block'.
Such a scenario is impossible surely, even in future. Every file in
QEMU pulls in osdep.h, and as a result effectively gets a dep on
on qemuutil, not to mention the block layer using countless APIs
present in qemuutil
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
> meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meson.build b/meson.build
> index 81ecd4bae7..efa0ac8d0b 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -3555,7 +3555,7 @@ if have_block
> 'blockjob.c',
> 'job.c',
> 'qemu-io-cmds.c',
> - ))
> + ), qemuutil)
> if config_host_data.get('CONFIG_REPLICATION')
> block_ss.add(files('replication.c'))
> endif
> --
> 2.39.2
>
>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|