GNOME Bugzilla – Bug 792919
Make ALSA support optional
Last modified: 2018-01-26 10:29:51 UTC
ALSA support is not mandatory for libgnome-volume-control, but it can not be made optional.
Created attachment 367459 [details] [review] build: Make ALSA support optional This patch makes the ALSA support optional by using an option.
Review of attachment 367459 [details] [review]: Is it possible to pass that information down from the meson.build that uses libgvc as a submodule? For example, gnome-settings-daemon requires this option on Linux systems, not on others, neither gnome-shell nor gnome-control-center require it (it's in fact, not useful at all there).
(In reply to Bastien Nocera from comment #2) > Review of attachment 367459 [details] [review] [review]: > > Is it possible to pass that information down from the meson.build that uses > libgvc as a submodule? Yes, by using the `default_options` parameter in the `subproject` function. For example: libgvc = subproject( 'gvc', default_options: [ 'static=true', 'alsa=false, ] ) > For example, gnome-settings-daemon requires this option on Linux systems, > not on others, neither gnome-shell nor gnome-control-center require it (it's > in fact, not useful at all there). Actually, I have made this patch just for `gnome-settings-daemon`, that can disable ALSA on non linux platforms. The default value of the option is true, so those packages will have the same behaviour regardless of this change.
Comment on attachment 367459 [details] [review] build: Make ALSA support optional Pushed as 67533bf - build: Make ALSA support optional
(In reply to Iñigo Martínez from comment #3) > (In reply to Bastien Nocera from comment #2) > > Review of attachment 367459 [details] [review] [review] [review]: > > > > Is it possible to pass that information down from the meson.build that uses > > libgvc as a submodule? > > Yes, by using the `default_options` parameter in the `subproject` function. > For example: > > libgvc = subproject( > 'gvc', > default_options: [ > 'static=true', > 'alsa=false, > ] > ) Great, very useful. > > For example, gnome-settings-daemon requires this option on Linux systems, > > not on others, neither gnome-shell nor gnome-control-center require it (it's > > in fact, not useful at all there). > > Actually, I have made this patch just for `gnome-settings-daemon`, that can > disable ALSA on non linux platforms. > > The default value of the option is true, so those packages will have the > same behaviour regardless of this change. Well, we don't want true on those, as alsa is not required for those modules, and unusable on non-Linux. I'll try to update gnome-control-center and gnome-shell for that.
https://bugzilla.gnome.org/show_bug.cgi?id=792921 and https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/10