audio/dbus: Fix building with modules enabled on macOS
PATCH 1/1 audio/dbus: Fix building with modules enabled on macOS
When configuring QEMU with --enable-modules we get on macOS:
--- stderr ---
Dependency ui-dbus cannot be satisfied
ui-dbus depends on pixman and opengl, so add these dependencies to audio-dbus.
--- audio/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
audio/meson.build +1 -1
@@ -28,7 +28,7 @@ endforeach if dbus_display module_ss = ss.source_set() - module_ss.add(when: gio, if_true: files('dbusaudio.c')) + module_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'], if_true: files('dbusaudio.c')) audio_modules += {'dbus': module_ss} endif
Signature · 1 line
2.34.1
Hi
Quoted 8 lines · Philippe Mathieu-Daudé via
When configuring QEMU with --enable-modules we get on macOS:
--- stderr ---
Dependency ui-dbus cannot be satisfiedui-dbus depends on pixman and opengl, so add these dependencies to audio-dbus.
Weird, why would the audio module need pixman and opengl, on macos?
Quoted 25 lines
Fixes 739362d420 ("audio: add "dbus" audio backend")Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- audio/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)audio/meson.build +1
-2@@ -28,7 +28,7 @@ endforeach if dbus_display module_ss = ss.source_set() - module_ss.add(when: gio, if_true: files('dbusaudio.c')) + module_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'], if_true: files('dbusaudio.c')) audio_modules += {'dbus': module_ss} endif --2.34.1
Signature · 1 line
Marc-André Lureau
Quoted 6 lines · Marc-André Lureau
Hi
On Thu, Feb 3, 2022 at 9:04 PM Philippe Mathieu-Daudé via <[email protected] <mailto:[email protected]>> wrote:
When configuring QEMU with --enable-modules we get on macOS:
Quoted 8 lines
--- stderr ---
Dependency ui-dbus cannot be satisfiedui-dbus depends on pixman and opengl, so add these dependencies to audio-dbus.
Weird, why would the audio module need pixman and opengl, on macos?
audio/dbusaudio.c depends on module_dep("ui-dbus") which itself depends on it (ui/meson.build):
if dbus_display
dbus_ss = ss.source_set()
...
dbus_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'],
if_true: [files(
'dbus-chardev.c',
'dbus-clipboard.c',
'dbus-console.c',
'dbus-error.c',
'dbus-listener.c',
'dbus.c',
), dbus_display1]) ui_modules += {'dbus' : dbus_ss}
endif
Quoted 31 lines
Fixes: 739362d420 ("audio: add "dbus" audio backend") Signed-off-by: Philippe Mathieu-Daudé <[email protected] <mailto:[email protected]>> --- audio/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/meson.build b/audio/meson.build index 0ac3791d0b..d9b295514f 100644 --- a/audio/meson.build +++ b/audio/meson.build @@ -28,7 +28,7 @@ endforeach if dbus_display module_ss = ss.source_set() - module_ss.add(when: gio, if_true: files('dbusaudio.c')) + module_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'], if_true: files('dbusaudio.c')) audio_modules += {'dbus': module_ss} endif -- 2.34.1Signature · 1 line
Marc-André Lureau
Quoted 20 lines · Philippe Mathieu-Daudé via
When configuring QEMU with --enable-modules we get on macOS:
--- stderr ---
Dependency ui-dbus cannot be satisfiedui-dbus depends on pixman and opengl, so add these dependencies to audio-dbus.
Fixes 739362d420 ("audio: add "dbus" audio backend")Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- audio/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)audio/meson.build +0
-0
audio/meson.build endforeach · line 34
Quoted 8 lines
audio/meson.build +1
-1@@ -28,7 +28,7 @@ endforeach if dbus_display module_ss = ss.source_set() - module_ss.add(when: gio, if_true: files('dbusaudio.c')) + module_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'], if_true: files('dbusaudio.c')) audio_modules += {'dbus': module_ss} endif
I got the same problem when building master branch on my Linux server. This patch looks good to me and it fixes my problem.
Thanks
Li Zhang