Skip to contentSkip to conversation

qt5multimedia: add missing dependencies

PATCH Superseded Bartosz Golaszewski 4 participants 8 messages Jun 27, 2017 – Jul 2, 2017

lore
Share & tools
lore
#0 lore raw

v2 cover qt5multimedia: add missing dependencies

Qt5Multimedia conditionally builds support for pulseaudio and alsa if it detects corresponding libraries in the system but we need to explicitly depend on these packages.

v1 -> v2:
- also added libglib2 as dependency for pulseaudio support
- new patch: add alsa to dependencies

Bartosz Golaszewski (2):
qt5multimedia: conditionally add pulseaudio & libglib2 to dependencies
qt5multimedia: conditionally add alsa-lib to dependencies

 package/qt5/qt5multimedia/qt5multimedia.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
Signature · 1 line
2.9.3
#1 lore raw

PATCH v2 1/2 qt5multimedia: conditionally add pulseaudio & libglib2 to dependencies

Qt5Multimedia includes support for pulseaudio if it detects libpulse and libpulse-mainloop-glib in the system at build-time. We need to depend on pulseaudio and libglib2 if it is selected.

---
 package/qt5/qt5multimedia/qt5multimedia.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/qt5/qt5multimedia/qt5multimedia.mk +4 -0
index 133536e..19312ff 100644
@@ -26,6 +26,10 @@ ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
 QT5MULTIMEDIA_DEPENDENCIES += qt5declarative
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_PULSEAUDIO),yy)
+QT5MULTIMEDIA_DEPENDENCIES += libglib2 pulseaudio
+endif
+
 define QT5MULTIMEDIA_CONFIGURE_CMDS
 	(cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
 endef
Signature · 1 line
2.9.3
#2 lore raw

PATCH v2 1/2 qt5multimedia: conditionally add pulseaudio & libglib2 to dependencies

Quoted 14 lines · Bartosz Golaszewski

Qt5Multimedia includes support for pulseaudio if it detects libpulse and libpulse-mainloop-glib in the system at build-time. We need to depend on pulseaudio and libglib2 if it is selected.

---
 package/qt5/qt5multimedia/qt5multimedia.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/qt5/qt5multimedia/qt5multimedia.mk +0 -0
index 133536e..19312ff 100644

package/qt5/qt5multimedia/qt5multimedia.mk ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y) · line 35

Quoted 10 lines
package/qt5/qt5multimedia/qt5multimedia.mk +4 -0
@@ -26,6 +26,10 @@ ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
 QT5MULTIMEDIA_DEPENDENCIES += qt5declarative
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_PULSEAUDIO),yy)
+QT5MULTIMEDIA_DEPENDENCIES += libglib2 pulseaudio
+endif
+
 define QT5MULTIMEDIA_CONFIGURE_CMDS
 	(cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
 endef
#3 lore raw

PATCH v2 2/2 qt5multimedia: conditionally add alsa-lib to dependencies

In reply to Bartosz Golaszewski

Qt5Multimedia builds the alsa plugin if it detects libasound in the system. Add alsa-lib to dependencies if BR2_PACKAGE_ALSA_LIB is selected.

---
 package/qt5/qt5multimedia/qt5multimedia.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/qt5/qt5multimedia/qt5multimedia.mk +4 -0
index 19312ff..062d980 100644
@@ -30,6 +30,10 @@ ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_PULSEAUDIO),yy)
 QT5MULTIMEDIA_DEPENDENCIES += libglib2 pulseaudio
 endif
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+QT5MULTIMEDIA_DEPENDENCIES += alsa-lib
+endif
+
 define QT5MULTIMEDIA_CONFIGURE_CMDS
 	(cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
 endef
Signature · 1 line
2.9.3
#4 lore raw

PATCH v2 2/2 qt5multimedia: conditionally add alsa-lib to dependencies

Hello Bartoz,

Quoted 14 lines · Bartosz Golaszewski

Qt5Multimedia builds the alsa plugin if it detects libasound in the system. Add alsa-lib to dependencies if BR2_PACKAGE_ALSA_LIB is selected.

---
 package/qt5/qt5multimedia/qt5multimedia.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/qt5/qt5multimedia/qt5multimedia.mk +0 -0
index 19312ff..062d980 100644

package/qt5/qt5multimedia/qt5multimedia.mk ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_PULSEAUDIO),yy) · line 39

Quoted 10 lines
package/qt5/qt5multimedia/qt5multimedia.mk +4 -0
@@ -30,6 +30,10 @@ ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_PULSEAUDIO),yy)
 QT5MULTIMEDIA_DEPENDENCIES += libglib2 pulseaudio
 endif
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+QT5MULTIMEDIA_DEPENDENCIES += alsa-lib
+endif
+
 define QT5MULTIMEDIA_CONFIGURE_CMDS
 	(cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
 endef

Thanks for taking care of it...

Regards,
Peter

#5 lore raw

v2 cover qt5multimedia: add missing dependencies

In reply to Bartosz Golaszewski

2017-06-27 9:53 GMT+02:00 Bartosz Golaszewski <[email protected]>:

Quoted 12 lines

Qt5Multimedia conditionally builds support for pulseaudio and alsa if it detects corresponding libraries in the system but we need to explicitly depend on these packages.

v1 -> v2:
- also added libglib2 as dependency for pulseaudio support
- new patch: add alsa to dependencies

Bartosz Golaszewski (2):
qt5multimedia: conditionally add pulseaudio & libglib2 to dependencies
qt5multimedia: conditionally add alsa-lib to dependencies

Quoted 6 lines
 package/qt5/qt5multimedia/qt5multimedia.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

--
2.9.3

Wanted to CC Peter Seiderer, not Peter Korsgaard.

Thanks,
Bartosz

#6 lore raw

v2 cover qt5multimedia: add missing dependencies

In reply to Bartosz Golaszewski

Hello,

Quoted 3 lines · Bartosz Golaszewski

Bartosz Golaszewski (2):
qt5multimedia: conditionally add pulseaudio & libglib2 to dependencies
qt5multimedia: conditionally add alsa-lib to dependencies

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#7 lore raw

v2 cover qt5multimedia: add missing dependencies

In reply to Bartosz Golaszewski
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bartosz" == Bartosz Golaszewski <[email protected]> writes:

Qt5Multimedia conditionally builds support for pulseaudio and alsa if it detects corresponding libraries in the system but we need to explicitly depend on these packages.

Quoted 7 lines

v1 -> v2:
- also added libglib2 as dependency for pulseaudio support
- new patch: add alsa to dependencies

Bartosz Golaszewski (2):
qt5multimedia: conditionally add pulseaudio & libglib2 to dependencies
qt5multimedia: conditionally add alsa-lib to dependencies

Committed both to 2017.02.x and 2017.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard