[OE-core] [PATCH 2/2] clutter-gst-3.0: add --enable/disable-gudev
Robert Yang
liezhi.yang at windriver.com
Thu Nov 12 08:51:39 UTC 2015
Fix dangling dependns on gudev, and systemd doesn't provide libgudev, so
it can't be enabled when systemd either.
Fixed:
libtool: error: cannot find the library 'tmp/sysroots/qemuarm64/usr/lib64/libgudev-1.0.la' or unhandled argument
'tmp/sysroots/qemuarm64/usr/lib64/libgudev-1.0.la'
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/recipes-graphics/clutter/clutter-gst-3.0.inc | 15 ++++++-
.../0001-configure.ac-add-enable-gudev.patch | 45 ++++++++++++++++++++
2 files changed, 59 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-graphics/clutter/clutter-gst-3.0/0001-configure.ac-add-enable-gudev.patch
diff --git a/meta/recipes-graphics/clutter/clutter-gst-3.0.inc b/meta/recipes-graphics/clutter/clutter-gst-3.0.inc
index d4fed71..c29bc7a 100644
--- a/meta/recipes-graphics/clutter/clutter-gst-3.0.inc
+++ b/meta/recipes-graphics/clutter/clutter-gst-3.0.inc
@@ -4,7 +4,12 @@ LICENSE = "LGPLv2+"
inherit clutter
-SRC_URI += "file://0001-Install-example-binary-needed-for-core-image-clutter.patch"
+SRC_URI += "file://0001-Install-example-binary-needed-for-core-image-clutter.patch \
+ file://0001-configure.ac-add-enable-gudev.patch \
+ "
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[gudev] = "--enable-gudev,--disable-gudev,udev"
DEPENDS = "gstreamer1.0-plugins-base gstreamer1.0-plugins-bad clutter-1.0"
RDEPENDS_${PN} += "gstreamer1.0-meta-base"
@@ -12,6 +17,14 @@ PACKAGES =+ "${PN}-examples"
EXTRA_OECONF += "--disable-introspection"
+python () {
+ if bb.utils.contains('EXTRA_OECONF', '--enable-gudev', True, False, d) and \
+ bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d):
+ bb.warn("%s: gudev can't be enabled since systemd doesn't provide libgudev" % \
+ d.getVar("PN", True))
+ d.appendVar('EXTRA_OECONF', ' --disable-gudev')
+}
+
FILES_${PN} += "${libdir}/gstreamer-1.0/lib*.so"
FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug/lib*.so"
diff --git a/meta/recipes-graphics/clutter/clutter-gst-3.0/0001-configure.ac-add-enable-gudev.patch b/meta/recipes-graphics/clutter/clutter-gst-3.0/0001-configure.ac-add-enable-gudev.patch
new file mode 100644
index 0000000..59f9fd8
--- /dev/null
+++ b/meta/recipes-graphics/clutter/clutter-gst-3.0/0001-configure.ac-add-enable-gudev.patch
@@ -0,0 +1,45 @@
+From 3454c53e9d906ef7e39e82e81a446bcece566e53 Mon Sep 17 00:00:00 2001
+From: Robert Yang <liezhi.yang at windriver.com>
+Date: Wed, 11 Nov 2015 22:34:51 -0800
+Subject: [PATCH] configure.ac: add --enable-gudev
+
+So that we can enable/disable gudev support clearly
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
+---
+ configure.ac | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 92022cb..595c944 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -209,13 +209,22 @@ AS_IF([test "x$have_cogl_osx" = xyes],
+ AC_SUBST([GL_LDFLAGS])
+ ])
+
+-PKG_CHECK_MODULES(GUDEV,
++have_gudev=no
++AC_ARG_ENABLE([gudev],
++ [AC_HELP_STRING([--enable-gudev=@<:@no/yes@:>@],
++ [Enable gudev support @<:@default=no@:>@])],
++ [],
++ enable_gudev=gudev)
++
++AS_IF([test "x$enable_gudev" = "xyes"], [
++ PKG_CHECK_MODULES(GUDEV,
+ [gudev-1.0],
+ [
+ have_gudev=yes
+ AC_DEFINE([HAVE_GUDEV], [1],
+ ["Defined if gudev is available"])
+ ],[ have_gudev=no ])
++])
+
+ dnl ========================================================================
+ dnl Experimental support for hardware accelerated decoders.
+--
+1.7.9.5
+
--
1.7.9.5
More information about the Openembedded-core
mailing list