From 4f64854dff25de2331b54324729e966a9db1f1da Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Fri, 11 Aug 2017 23:36:52 +0200 Subject: gstreamer1.0: upgrade to version 1.12.2 * Version 1.12 introduces support for libdw (provided by elfutils). libdw adds source lines & numbers to backtraces. A new "dw" packageconfig added for enabling/disabling this feature. In addition, the old patch for deterministic unwind configuration was replaced with one that also allows the same for the dw configuration. This new patch was also submitted to bugzilla. * Leftover docbook cruft was removed, meaning that the "--disable-docbook" configure switch is gone. (From OE-Core rev: a6c12ff35c97f4225a6b2f226ae4483d7bacdfb9) Signed-off-by: Carlos Rafael Giani Signed-off-by: Richard Purdie --- meta/recipes-multimedia/gstreamer/gstreamer1.0.inc | 2 +- ...dd-switches-for-enabling-disabling-libdw-.patch | 70 ++++++++++++++++++++++ .../gstreamer1.0/deterministic-unwind.patch | 24 -------- .../gstreamer/gstreamer1.0_1.10.4.bb | 13 ---- .../gstreamer/gstreamer1.0_1.12.2.bb | 13 ++++ 5 files changed, 84 insertions(+), 38 deletions(-) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-configure-Add-switches-for-enabling-disabling-libdw-.patch delete mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0/deterministic-unwind.patch delete mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0_1.10.4.bb create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0_1.12.2.bb (limited to 'meta/recipes-multimedia') diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc index 72d7ce68d0..329193486d 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc @@ -25,10 +25,10 @@ PACKAGECONFIG[tests] = "--enable-tests,--disable-tests" PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," PACKAGECONFIG[gst-tracer-hooks] = "--enable-gst-tracer-hooks,--disable-gst-tracer-hooks," PACKAGECONFIG[unwind] = "--with-unwind,--without-unwind,libunwind" +PACKAGECONFIG[dw] = "--with-dw,--without-dw,elfutils" EXTRA_OECONF = " \ --disable-dependency-tracking \ - --disable-docbook \ --disable-examples \ " diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-configure-Add-switches-for-enabling-disabling-libdw-.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-configure-Add-switches-for-enabling-disabling-libdw-.patch new file mode 100644 index 0000000000..1132fd5a48 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-configure-Add-switches-for-enabling-disabling-libdw-.patch @@ -0,0 +1,70 @@ +From a0cb41ba72913eda06049d266ec43ea8f52b5bee Mon Sep 17 00:00:00 2001 +From: Carlos Rafael Giani +Date: Fri, 11 Aug 2017 21:21:36 +0200 +Subject: [PATCH] configure: Add switches for enabling/disabling libdw and + libunwind + +[Original patch modified to be applicable to 1.12.2] + +Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=778193] + +Signed-off-by: Carlos Rafael Giani +--- + configure.ac | 38 ++++++++++++++++++++++++++++++++------ + 1 file changed, 32 insertions(+), 6 deletions(-) + +diff --git a/configure.ac b/configure.ac +index b6b2923..32dd827 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -821,15 +821,41 @@ fi + AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes") + + dnl libunwind is optionally used by the leaks tracer +-PKG_CHECK_MODULES(UNWIND, libunwind, HAVE_UNWIND=yes, HAVE_UNWIND=no) +-if test "x$HAVE_UNWIND" = "xyes"; then +- AC_DEFINE(HAVE_UNWIND, 1, [libunwind available]) ++AC_ARG_WITH([unwind],[AS_HELP_STRING([--with-unwind=yes|no|auto],[use libunwind])], ++ [], [with_unwind=auto]) ++if [ test "x${with_unwind}" != "xno" ]; then ++ PKG_CHECK_MODULES(UNWIND, [libunwind], ++ [ ++ HAVE_UNWIND=yes ++ AC_DEFINE(HAVE_UNWIND, 1, [libunwind available]) ++ ], ++ [ ++ HAVE_UNWIND=no ++ if [ test "x${with_unwind}" = "xyes" ]; then ++ AC_MSG_ERROR([could not find libunwind]) ++ fi ++ ]) ++else ++ HAVE_UNWIND=no + fi + + dnl libdw is optionally used to add source lines and numbers to backtraces +-PKG_CHECK_MODULES(DW, libdw, HAVE_DW=yes, HAVE_DW=no) +-if test "x$HAVE_DW" = "xyes"; then +- AC_DEFINE(HAVE_DW, 1, [libdw available]) ++AC_ARG_WITH([dw],[AS_HELP_STRING([--with-dw=yes|no|auto],[use libdw])], ++ [], [with_dw=auto]) ++if [ test "x${with_dw}" != "xno" ]; then ++ PKG_CHECK_MODULES(DW, [libdw], ++ [ ++ HAVE_DW=yes ++ AC_DEFINE(HAVE_DW, 1, [libdw available]) ++ ], ++ [ ++ HAVE_DW=no ++ if [ test "x${with_dw}" = "xyes" ]; then ++ AC_MSG_ERROR([could not find libdw]) ++ fi ++ ]) ++else ++ HAVE_DW=no + fi + + dnl Check for backtrace() from libc +-- +2.7.4 + diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0/deterministic-unwind.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0/deterministic-unwind.patch deleted file mode 100644 index e39e6cad09..0000000000 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0/deterministic-unwind.patch +++ /dev/null @@ -1,24 +0,0 @@ -Make the detection of libunwind deterministic. - -Upstream-Status: Pending -Signed-off-by: Ross Burton - -diff --git a/configure.ac b/configure.ac -index ac88fb2..182c19a 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -829,3 +828,0 @@ AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes") --dnl libunwind is optionally used by the leaks tracer --PKG_CHECK_MODULES(UNWIND, libunwind, HAVE_UNWIND=yes, HAVE_UNWIND=no) -- -@@ -839,3 +836,7 @@ AC_CHECK_FUNC(backtrace, [ --if test "x$HAVE_UNWIND" = "xyes"; then -- AC_DEFINE(HAVE_UNWIND, 1, [libunwind available]) --fi -+dnl libunwind is optionally used by the leaks tracer -+AC_ARG_WITH([unwind],[AS_HELP_STRING([--with-unwind],[use libunwind])], -+ [], [with_unwind=yes]) -+AS_IF([test "$with_unwind" = yes], -+ [PKG_CHECK_MODULES(UNWIND, libunwind) -+ AC_DEFINE(HAVE_UNWIND, 1, [libunwind available])] -+) diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.10.4.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.10.4.bb deleted file mode 100644 index 2a6799345f..0000000000 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.10.4.bb +++ /dev/null @@ -1,13 +0,0 @@ -require gstreamer1.0.inc - -LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ - file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" - -SRC_URI = " \ - http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \ - file://deterministic-unwind.patch \ -" -SRC_URI[md5sum] = "7c91a97e4a2dc81eafd59d0a2f8b0d6e" -SRC_URI[sha256sum] = "50c2f5af50a6cc6c0a3f3ed43bdd8b5e2bff00bacfb766d4be139ec06d8b5218" - -S = "${WORKDIR}/gstreamer-${PV}" diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.12.2.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.12.2.bb new file mode 100644 index 0000000000..8d41a59d91 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.12.2.bb @@ -0,0 +1,13 @@ +require gstreamer1.0.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ + file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" + +SRC_URI = " \ + http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \ + file://0001-configure-Add-switches-for-enabling-disabling-libdw-.patch \ +" +SRC_URI[md5sum] = "4748860621607ffd96244fb79c86c238" +SRC_URI[sha256sum] = "9fde3f39a2ea984f9e07ce09250285ce91f6e3619d186889f75b5154ecf994ba" + +S = "${WORKDIR}/gstreamer-${PV}" -- cgit v1.2.3-54-g00ecf