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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux