qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/3] meson: Fixes for dbus modules
@ 2024-02-14 14:03 Akihiko Odaki
  2024-02-14 14:03 ` [PATCH v7 1/3] audio: Depend on dbus_display1_dep Akihiko Odaki
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Akihiko Odaki @ 2024-02-14 14:03 UTC (permalink / raw)
  To: Marc-André Lureau, Gerd Hoffmann, Paolo Bonzini,
	Daniel P. Berrangé, Thomas Huth, Philippe Mathieu-Daudé,
	Laurent Vivier
  Cc: qemu-devel, Akihiko Odaki

I found it was failing to build dbus modules when --enable-dbus so here
are fixes.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
Changes in v7:
- Reverted to v2.
- Dropped patch "Move dbus-display1 out of ui".
- Rebased.
- Link to v6: https://lore.kernel.org/r/20240214-dbus-v6-1-411af2b9289e@daynix.com

Changes in v6:
- Dropped patch "audio: Do not include ui/dbus.h" (Marc-André Lureau).
- Rebased.
- Link to v5: https://lore.kernel.org/r/20231217-dbus-v5-0-8122e822a392@daynix.com

Changes in v5:
- Fixed docs/interop/dbus-display.rst.
- Link to v4: https://lore.kernel.org/r/20231217-dbus-v4-0-4fd5410bf04f@daynix.com

Changes in v4:
- Moved dbus_display1 to util.
- Link to v3: https://lore.kernel.org/r/20231216-dbus-v3-0-b4bcbed7374a@daynix.com

Changes in v3:
- Merged dbus_display1_lib into libqemuutil.
- Added patch "audio: Do not include ui/dbus.h".
- Link to v2: https://lore.kernel.org/r/20231215-dbus-v2-0-1e2e6aa02115@daynix.com

Changes in v2:
- Updated MAINTAINERS.
- Link to v1: https://lore.kernel.org/r/20231215-dbus-v1-0-349e059ac5b2@daynix.com

---
Akihiko Odaki (3):
      audio: Depend on dbus_display1_dep
      meson: Explicitly specify dbus-display1.h dependency
      tests/qtest: Depend on dbus_display1_dep

 audio/meson.build       | 3 ++-
 tests/qtest/meson.build | 2 +-
 ui/meson.build          | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)
---
base-commit: 5005aed8a7e728d028efb40e243ecfc2b4f3df3a
change-id: 20231215-dbus-86876ecb7b09

Best regards,
-- 
Akihiko Odaki <akihiko.odaki@daynix.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v7 1/3] audio: Depend on dbus_display1_dep
  2024-02-14 14:03 [PATCH v7 0/3] meson: Fixes for dbus modules Akihiko Odaki
@ 2024-02-14 14:03 ` Akihiko Odaki
  2024-02-14 14:03 ` [PATCH v7 2/3] meson: Explicitly specify dbus-display1.h dependency Akihiko Odaki
  2024-02-14 14:03 ` [PATCH v7 3/3] tests/qtest: Depend on dbus_display1_dep Akihiko Odaki
  2 siblings, 0 replies; 4+ messages in thread
From: Akihiko Odaki @ 2024-02-14 14:03 UTC (permalink / raw)
  To: Marc-André Lureau, Gerd Hoffmann, Paolo Bonzini,
	Daniel P. Berrangé, Thomas Huth, Philippe Mathieu-Daudé,
	Laurent Vivier
  Cc: qemu-devel, Akihiko Odaki

dbusaudio needs dbus_display1_dep.

Fixes: 739362d4205c ("audio: add "dbus" audio backend")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 audio/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/audio/meson.build b/audio/meson.build
index c8f658611f42..608f35e6af78 100644
--- a/audio/meson.build
+++ b/audio/meson.build
@@ -30,7 +30,8 @@ endforeach
 
 if dbus_display
     module_ss = ss.source_set()
-    module_ss.add(when: [gio, pixman], if_true: files('dbusaudio.c'))
+    module_ss.add(when: [gio, dbus_display1_dep, pixman],
+                  if_true: files('dbusaudio.c'))
     audio_modules += {'dbus': module_ss}
 endif
 

-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v7 2/3] meson: Explicitly specify dbus-display1.h dependency
  2024-02-14 14:03 [PATCH v7 0/3] meson: Fixes for dbus modules Akihiko Odaki
  2024-02-14 14:03 ` [PATCH v7 1/3] audio: Depend on dbus_display1_dep Akihiko Odaki
@ 2024-02-14 14:03 ` Akihiko Odaki
  2024-02-14 14:03 ` [PATCH v7 3/3] tests/qtest: Depend on dbus_display1_dep Akihiko Odaki
  2 siblings, 0 replies; 4+ messages in thread
From: Akihiko Odaki @ 2024-02-14 14:03 UTC (permalink / raw)
  To: Marc-André Lureau, Gerd Hoffmann, Paolo Bonzini,
	Daniel P. Berrangé, Thomas Huth, Philippe Mathieu-Daudé,
	Laurent Vivier
  Cc: qemu-devel, Akihiko Odaki

Explicitly specify dbus-display1.h as a dependency so that files
depending on it will not get compiled too early.

Fixes: 1222070e7728 ("meson: ensure dbus-display generated code is built before other units")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 ui/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/meson.build b/ui/meson.build
index 376e0d771ba9..0b7e2b6f6b42 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -91,7 +91,7 @@ if dbus_display
                                           '--c-namespace', 'QemuDBus',
                                           '--generate-c-code', '@BASENAME@'])
   dbus_display1_lib = static_library('dbus-display1', dbus_display1, dependencies: gio)
-  dbus_display1_dep = declare_dependency(link_with: dbus_display1_lib, include_directories: include_directories('.'))
+  dbus_display1_dep = declare_dependency(link_with: dbus_display1_lib, sources: dbus_display1[0])
   dbus_ss.add(when: [gio, dbus_display1_dep],
               if_true: [files(
                 'dbus-chardev.c',

-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v7 3/3] tests/qtest: Depend on dbus_display1_dep
  2024-02-14 14:03 [PATCH v7 0/3] meson: Fixes for dbus modules Akihiko Odaki
  2024-02-14 14:03 ` [PATCH v7 1/3] audio: Depend on dbus_display1_dep Akihiko Odaki
  2024-02-14 14:03 ` [PATCH v7 2/3] meson: Explicitly specify dbus-display1.h dependency Akihiko Odaki
@ 2024-02-14 14:03 ` Akihiko Odaki
  2 siblings, 0 replies; 4+ messages in thread
From: Akihiko Odaki @ 2024-02-14 14:03 UTC (permalink / raw)
  To: Marc-André Lureau, Gerd Hoffmann, Paolo Bonzini,
	Daniel P. Berrangé, Thomas Huth, Philippe Mathieu-Daudé,
	Laurent Vivier
  Cc: qemu-devel, Akihiko Odaki

It ensures dbus-display1.c will not be recompiled.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 tests/qtest/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 39557d5ecbb0..eb075fcda283 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -344,7 +344,7 @@ if vnc.found()
 endif
 
 if dbus_display
-  qtests += {'dbus-display-test': [dbus_display1, gio]}
+  qtests += {'dbus-display-test': [dbus_display1_dep, gio]}
 endif
 
 qtest_executables = {}

-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-14 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-14 14:03 [PATCH v7 0/3] meson: Fixes for dbus modules Akihiko Odaki
2024-02-14 14:03 ` [PATCH v7 1/3] audio: Depend on dbus_display1_dep Akihiko Odaki
2024-02-14 14:03 ` [PATCH v7 2/3] meson: Explicitly specify dbus-display1.h dependency Akihiko Odaki
2024-02-14 14:03 ` [PATCH v7 3/3] tests/qtest: Depend on dbus_display1_dep Akihiko Odaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).