diff mbox series

[1/1] package/gtkiostream: fix build with alsa-lib

Message ID 20240720210114.1714249-1-fontaine.fabrice@gmail.com
State Accepted
Headers show
Series [1/1] package/gtkiostream: fix build with alsa-lib | expand

Commit Message

Fabrice Fontaine July 20, 2024, 9:01 p.m. UTC
Select BR2_PACKAGE_ALSA_LIB_MIXER if needed to fix the following build
failure with alsa-lib raised since the addition of the package in commit
fab48302865e5c0c98d91b696bc90e75e38189bb:

In file included from ../include/ALSA/MixerElement.H:20,
                 from ../include/ALSA/Mixer.H:20,
                 from ../include/ALSA/ALSA.H:56,
                 from ALSAControlMonitor.C:19:
../include/ALSA/MixerElementTypes.H:26:5: error: 'snd_mixer_selem_channel_id_t' does not name a type
   26 |     snd_mixer_selem_channel_id_t channel; ///< The ALSA channel ID
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: fab48302865e5c0c98d91b696bc90e75e38189bb
 - http://autobuild.buildroot.org/results/6be71c9fbdccbdf4f5e540bafa748dda833aeedb

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/gtkiostream/Config.in | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Petazzoni July 20, 2024, 9:04 p.m. UTC | #1
On Sat, 20 Jul 2024 23:01:14 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Select BR2_PACKAGE_ALSA_LIB_MIXER if needed to fix the following build
> failure with alsa-lib raised since the addition of the package in commit
> fab48302865e5c0c98d91b696bc90e75e38189bb:
> 
> In file included from ../include/ALSA/MixerElement.H:20,
>                  from ../include/ALSA/Mixer.H:20,
>                  from ../include/ALSA/ALSA.H:56,
>                  from ALSAControlMonitor.C:19:
> ../include/ALSA/MixerElementTypes.H:26:5: error: 'snd_mixer_selem_channel_id_t' does not name a type
>    26 |     snd_mixer_selem_channel_id_t channel; ///< The ALSA channel ID
>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Fixes: fab48302865e5c0c98d91b696bc90e75e38189bb
>  - http://autobuild.buildroot.org/results/6be71c9fbdccbdf4f5e540bafa748dda833aeedb
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/gtkiostream/Config.in | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas
diff mbox series

Patch

diff --git a/package/gtkiostream/Config.in b/package/gtkiostream/Config.in
index 17480b8ff8..1d1ec27346 100644
--- a/package/gtkiostream/Config.in
+++ b/package/gtkiostream/Config.in
@@ -2,6 +2,7 @@  config BR2_PACKAGE_GTKIOSTREAM
 	bool "gtkiostream"
 	depends on BR2_INSTALL_LIBSTDCPP # eigen
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_ALSA_LIB_MIXER if BR2_PACKAGE_ALSA_LIB
 	select BR2_PACKAGE_EIGEN
 	select BR2_PACKAGE_FFTW
 	select BR2_PACKAGE_FFTW_DOUBLE