]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpc: fix race against dtrace probe generator
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 2 Oct 2025 13:16:12 +0000 (14:16 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Oct 2025 11:10:02 +0000 (12:10 +0100)
The virt_socket_lib library has a dep on dtrace_gen_headers, but
the virprobe.h file (which includes the libvirt_probes.h) is also
used from virnetserverclient.c and virkeepalive.c files which do
not directly depend on virt_socket_lib. Thus it is possible for
the latter files to be built before the libvirt_probes.h file
has had its content written.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/meson.build

index 68aaf24b2aaac253b79142bebbd3dcccdbdf4b72..5a7a8c3d9394111da3648e6654f053d6933ada01 100644 (file)
@@ -48,6 +48,8 @@ endif
 rpc_gen_headers = []
 rpc_gen_sources = []
 
+rpc_gen_headers += dtrace_gen_headers
+
 foreach name : [ 'virnet', 'virkeepalive' ]
   protocol_file = files('@0@protocol.x'.format(name))
   header_file = '@0@protocol.h'.format(name)