[PATCH] access: ensure ACL files are rebuilt when protocol changes

Pavel Hrdina phrdina at redhat.com
Wed Sep 16 12:03:12 UTC 2020


On Wed, Sep 16, 2020 at 10:43:44AM +0100, Daniel P. Berrangé wrote:
> Meson is not told that the .x protocol files are an input for the
> generator, so it doesn't know to setup a rebuild dependancy.
> 
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  src/access/meson.build | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/access/meson.build b/src/access/meson.build
> index b23838a776..ff088024f6 100644
> --- a/src/access/meson.build
> +++ b/src/access/meson.build
> @@ -34,6 +34,7 @@ foreach name : [ 'remote', 'qemu', 'lxc' ]
>  
>    access_gen_headers += custom_target(
>      header_file,
> +    input: protocol_file,
>      output: header_file,
>      command: [
>        gendispatch_prog, '--mode=aclheader', name, name.to_upper(), protocol_file,

For some reason I though that listing it directly in the command will
make it as dependency.

Before pushing I would modify the command part to replace
`protocol_file` with `'@INPUT@'`.

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200916/ec634bc4/attachment-0001.sig>


More information about the libvir-list mailing list