* [Buildroot] [PATCH 1/1] rygel: fix UI build
@ 2018-01-08 18:10 Fabrice Fontaine
2018-01-08 19:59 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2018-01-08 18:10 UTC (permalink / raw)
To: buildroot
Add a patch to avoid failing on a configure error if UI example can't be
built if libgtk3 is available but not gst1-plugins-base (gstreamer-video
is only needed for UI example, not for rygel UI)
Fixes:
- http://autobuild.buildroot.net/results/6c659aadfc418c0a27a93284eb34d75e2b0dc169
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...01-Allow-UI-build-without-gstreamer-video.patch | 37 ++++++++++++++++++++++
package/rygel/rygel.mk | 2 ++
2 files changed, 39 insertions(+)
create mode 100644 package/rygel/0001-Allow-UI-build-without-gstreamer-video.patch
diff --git a/package/rygel/0001-Allow-UI-build-without-gstreamer-video.patch b/package/rygel/0001-Allow-UI-build-without-gstreamer-video.patch
new file mode 100644
index 0000000000..6e1f528719
--- /dev/null
+++ b/package/rygel/0001-Allow-UI-build-without-gstreamer-video.patch
@@ -0,0 +1,37 @@
+From f3a49ad1a4ba172e97bd860bc067f7e9ebe69509 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 8 Jan 2018 13:27:42 +0100
+Subject: [PATCH] Allow UI build without gstreamer-video
+
+If EXAMPLE_UI dependencies are not met, only display a warning.
+Indeed, currently, we can't build rygel UI without gstreamer-video which
+is only a dependency of fullscreen-renderer application.
+
+fullscreen-renderer won't be build without gstreamer as HAVE_GSTREAMER
+has to be true to check HAVE_UI in examples/Makefile.am
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ configure.ac | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 00b94da..d140a27 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -359,7 +359,11 @@ if test x$try_ui = xyes ; then
+ [$RYGEL_COMMON_MODULES gio-2.0 >= $GIO_REQUIRED
+ gssdp-1.0 >= $GSSDP_REQUIRED
+ gstreamer-video-1.0 >= $GSTREAMER_REQUIRED
+- gtk+-3.0 >= $GTK_REQUIRED])
++ gtk+-3.0 >= $GTK_REQUIRED],,
++ [
++ AC_MSG_WARN([Example UI dependencies not found.])
++ AC_MSG_WARN([Example UI applications will not be built.])
++ ])
+ ],
+ [
+ AC_MSG_WARN([UI dependencies not found.])
+--
+2.7.4
+
diff --git a/package/rygel/rygel.mk b/package/rygel/rygel.mk
index e892df75a0..cd8897ceb5 100644
--- a/package/rygel/rygel.mk
+++ b/package/rygel/rygel.mk
@@ -16,6 +16,8 @@ RYGEL_DEPENDENCIES = \
libmediaart \
sqlite
RYGEL_INSTALL_STAGING = YES
+# We're patching configure.ac
+RYGEL_AUTORECONF = YES
RYGEL_CONF_OPTS += \
--disable-apidocs \
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] rygel: fix UI build
2018-01-08 18:10 [Buildroot] [PATCH 1/1] rygel: fix UI build Fabrice Fontaine
@ 2018-01-08 19:59 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-01-08 19:59 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 8 Jan 2018 19:10:42 +0100, Fabrice Fontaine wrote:
> Add a patch to avoid failing on a configure error if UI example can't be
> built if libgtk3 is available but not gst1-plugins-base (gstreamer-video
> is only needed for UI example, not for rygel UI)
>
> Fixes:
> - http://autobuild.buildroot.net/results/6c659aadfc418c0a27a93284eb34d75e2b0dc169
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...01-Allow-UI-build-without-gstreamer-video.patch | 37 ++++++++++++++++++++++
> package/rygel/rygel.mk | 2 ++
> 2 files changed, 39 insertions(+)
> create mode 100644 package/rygel/0001-Allow-UI-build-without-gstreamer-video.patch
Applied to master, thanks. Please submit the patch upstream if not
already done. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-08 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-08 18:10 [Buildroot] [PATCH 1/1] rygel: fix UI build Fabrice Fontaine
2018-01-08 19:59 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox