Skip to contentSkip to conversation

gstreamer1.0: convert GSTREAMER_1_DEBUG to PACKAGECONFIG

PATCH In review Ricardo Ribalda Delgado 4 participants 7 messages May 8, 2015 – May 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 gstreamer1.0: convert GSTREAMER_1_DEBUG to PACKAGECONFIG

It is more elegant

---
 meta/recipes-multimedia/gstreamer/gstreamer1.0.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0.inc +3 -2
index a01c33ce5ff9..17a0d7f839c4 100644
@@ -9,11 +9,12 @@ DEPENDS = "glib-2.0 libxml2 bison-native flex-native"
 
 inherit autotools pkgconfig gettext
 
-GSTREAMER_1_DEBUG ?= "--disable-debug"
+PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
+
 EXTRA_OECONF = "--disable-docbook --disable-gtk-doc \
                 --disable-dependency-tracking --disable-check \
                 --disable-examples --disable-tests \
-                --disable-valgrind ${GSTREAMER_1_DEBUG} \
+                --disable-valgrind \
                 "
 
 RRECOMMENDS_${PN}_qemux86    += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 gstreamer1.0: Make check selectable via PACKAGECONFIG

This way, this configuration can be easily changed via .bbappend file without having to re-define the whole EXTRA_OECONF.

With --disable-check libgstcheck is not build.

---
 meta/recipes-multimedia/gstreamer/gstreamer1.0.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0.inc +2 -1
index 17a0d7f839c4..be8aa8f9cbb7 100644
@@ -10,9 +10,10 @@ DEPENDS = "glib-2.0 libxml2 bison-native flex-native"
 inherit autotools pkgconfig gettext
 
 PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
+PACKAGECONFIG[check] = "--enable-check,--disable-check"
 
 EXTRA_OECONF = "--disable-docbook --disable-gtk-doc \
-                --disable-dependency-tracking --disable-check \
+                --disable-dependency-tracking \
                 --disable-examples --disable-tests \
                 --disable-valgrind \
                 "
Signature · 1 line
2.1.4
#2 lore raw
In reply to Ricardo Ribalda Delgado
Quoted 1 line · Ricardo Ribalda Delgado

It is more elegant

For gstreamer 0.10, it was possible to enable debug for gstreamer and most gstreamer plug-ins by over-riding a single variable, GSTREAMER_DEBUG.

It might be nice if gstreamer 1.x allowed a similar approach. For that to happen, it looks like:

- Leave GSTREAMER_1_DEBUG as a variable in gstreamer1.0.inc
- Rename GSTREAMER_1_0_DEBUG -> GSTREAMER_1_DEBUG in gstreamer1.0-plugins.inc

Or perhaps even use the "GSTREAMER_DEBUG" variable in gstreamer 1.x recipes?

Quoted 34 lines
---
 meta/recipes-multimedia/gstreamer/gstreamer1.0.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0.inc +3 -3
index a01c33ce5ff9..17a0d7f839c4 100644
@@ -9,11 +9,12 @@ DEPENDS = "glib-2.0 libxml2 bison-native flex-native"
 
 inherit autotools pkgconfig gettext
 
-GSTREAMER_1_DEBUG ?= "--disable-debug"
+PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
+
 EXTRA_OECONF = "--disable-docbook --disable-gtk-doc \
                 --disable-dependency-tracking --disable-check \
                 --disable-examples --disable-tests \
-                --disable-valgrind ${GSTREAMER_1_DEBUG} \
+                --disable-valgrind \
                 "
 
 RRECOMMENDS_${PN}_qemux86    += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
--

2.1.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw

On Fri, May 8, 2015 at 4:07 PM, Andre McCurdy <[email protected]> wrote:
...

Quoted 1 line

Or perhaps even use the "GSTREAMER_DEBUG" variable in gstreamer 1.x recipes?

I think the PACKAGECONFIG is a nice compromise as it allows for granular control over what to enable or not. It is easy to enable it for recipes in a local.conf using pn-<package>_append or similar.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw
Quoted 7 lines · Otavio Salvador

On Fri, May 8, 2015 at 4:07 PM, Andre McCurdy <[email protected]> wrote:
...

Quoted 1 line

Or perhaps even use the "GSTREAMER_DEBUG" variable in gstreamer 1.x recipes?

I think the PACKAGECONFIG is a nice compromise as it allows for granular control over what to enable or not. It is easy to enable it for recipes in a local.conf using pn-<package>_append or similar.

Over-riding GSTREAMER_DEBUG could be done on a per-package basis too, if there's really a need to enable debugging selectively.

However, I guess when you want to enable gstreamer debugging, you typically want to do so through-out gstreamer and all plug-ins... and needing to control PACKAGECONFIG for each recipe makes it harder to do that.

Whatever happens, the GSTREAMER_DEBUG, GSTREAMER_1_DEBUG and GSTREAMER_1_0_DEBUG duplication should probably be fixed.

I don't have a strong preference though and I'm stuck partnered with an SoC vendor who only supports Gtreamer 0.10, so I'll be watching from the sidelines as everyone else debugs GStreamer 1.x in oe-core :-(

Quoted 4 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#5 lore raw
Quoted 18 lines · Andre McCurdy
Quoted 7 lines · Otavio Salvador

On Fri, May 8, 2015 at 4:07 PM, Andre McCurdy <[email protected]> wrote:
...

Quoted 1 line

Or perhaps even use the "GSTREAMER_DEBUG" variable in gstreamer 1.x recipes?

I think the PACKAGECONFIG is a nice compromise as it allows for granular control over what to enable or not. It is easy to enable it for recipes in a local.conf using pn-<package>_append or similar.

Over-riding GSTREAMER_DEBUG could be done on a per-package basis too, if there's really a need to enable debugging selectively.

However, I guess when you want to enable gstreamer debugging, you typically want to do so through-out gstreamer and all plug-ins... and needing to control PACKAGECONFIG for each recipe makes it harder to do that.

Quoted 7 lines

Whatever happens, the GSTREAMER_DEBUG, GSTREAMER_1_DEBUG and GSTREAMER_1_0_DEBUG duplication should probably be fixed.

I don't have a strong preference though and I'm stuck partnered with an SoC vendor who only supports Gtreamer 0.10, so I'll be watching from the sidelines as everyone else debugs GStreamer 1.x in oe-core :-(

I took the patch since I do think PACKAGECONFIG is an improvement for this. We could build upon it with something like:

GSTREAMER_CONFIG = ""
PACKAGECONFIG ??= "${GSTREAMER_CONFIG}"

then setting GSTREAMER_CONFIG = "debug" could do what you describe if there really is the demand for it.

Cheers,

Richard

#6 lore raw

Hello

Quoted 2 lines · Richard Purdie

GSTREAMER_CONFIG = ""

= or ?=

Quoted 4 lines

PACKAGECONFIG ??= "${GSTREAMER_CONFIG}"

then setting GSTREAMER_CONFIG = "debug" could do what you describe if there really is the demand for it.

Shall I send a patch to fix it also on plugins?

Thanks

Signature · 1 line
Ricardo Ribalda