* pkg-config confusion
@ 2010-09-24 12:43 Gary Thomas
2010-09-24 13:42 ` [PATCH 1/2] gst-plugins-base 0.10.30: depend on gtk+ Michael Smith
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2010-09-24 12:43 UTC (permalink / raw)
To: Poky, openembedded-devel
I'm trying to update the gstreamer plugin recipes to use the
latest released packages. This is causing some problems though
as with the newest code, the wrong version of ORCC is being used.
I've traced this down to the fact that previous releases just
inferred ORCC=orcc which worked correctly and picked up the
cross-tool compiler (in sysroots/i686-linux/... etc)
However, the new releases have a fancy M4 macro plus some command
line magic for using ORCC. This falls apart because of these
lines:
ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
Looking into this at configure time, I see that there is some confusion
ORCC=/usr/bin/orcc, PKG_CONFIG=/home/local/p69_poky/tmp/sysroots/i686-linux/usr/bin/pkg-config => /home/local/p69_poky/tmp/sysroots/i686-linux/usr/bin/pkg-config
PKG_CONFIG_DISABLE_UNINSTALLED=yes
PKG_CONFIG_SYSROOT_DIR=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi
PKG_CONFIG_DIR=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/lib/pkgconfig
PKG_CONFIG_LIBDIR=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/lib/pkgconfig
PKG_CONFIG_PATH=/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/lib/pkgconfig:/home/local/p69_poky/tmp/sysroots/armv7a-poky-linux-gnueabi/usr/share/pkgconfig
So, it looks like bitbake is trying to run pkg-config using the
native version, but with the installed target databases. This
in turn has it pick up the target version of ORCC, not the cross
version.
How can I convince it otherwise?
n.b. I think this same problem exists elsewhere as I've seen it
try to use the wrong version of the pygobject compiler which is
handled similarly.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] gst-plugins-base 0.10.30: depend on gtk+
2010-09-24 12:43 pkg-config confusion Gary Thomas
@ 2010-09-24 13:42 ` Michael Smith
2010-09-24 13:42 ` [PATCH 2/2] gst-plugins.inc: fix path to orcc when prefix != /usr Michael Smith
0 siblings, 1 reply; 3+ messages in thread
From: Michael Smith @ 2010-09-24 13:42 UTC (permalink / raw)
To: openembedded-devel
Some of the tests and examples require gtk.
Signed-off-by: Michael Smith <msmith@cbnco.com>
---
recipes/gstreamer/gst-plugins-base_0.10.30.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/recipes/gstreamer/gst-plugins-base_0.10.30.bb b/recipes/gstreamer/gst-plugins-base_0.10.30.bb
index e4fb226..0826562 100644
--- a/recipes/gstreamer/gst-plugins-base_0.10.30.bb
+++ b/recipes/gstreamer/gst-plugins-base_0.10.30.bb
@@ -16,7 +16,7 @@ PROVIDES += "gst-plugins"
# if alsa has been built and is present. You will
# not get an error if this is not present, just
# a missing alsa plugin
-DEPENDS += "udev cdparanoia pango libtheora alsa-lib libsm virtual/libx11 freetype gnome-vfs libxv"
+DEPENDS += "udev cdparanoia pango libtheora alsa-lib libsm virtual/libx11 freetype gnome-vfs libxv gtk+"
# Needs a udev that enabled gudev, which isn't the default
EXTRA_OECONF_append = " --with-gudev"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] gst-plugins.inc: fix path to orcc when prefix != /usr
2010-09-24 13:42 ` [PATCH 1/2] gst-plugins-base 0.10.30: depend on gtk+ Michael Smith
@ 2010-09-24 13:42 ` Michael Smith
0 siblings, 0 replies; 3+ messages in thread
From: Michael Smith @ 2010-09-24 13:42 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Michael Smith <msmith@cbnco.com>
---
recipes/gstreamer/gst-plugins.inc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/recipes/gstreamer/gst-plugins.inc b/recipes/gstreamer/gst-plugins.inc
index 62fbd40..8dc1ef6 100644
--- a/recipes/gstreamer/gst-plugins.inc
+++ b/recipes/gstreamer/gst-plugins.inc
@@ -21,9 +21,11 @@ do_configure_prepend() {
sed -i -e 's:`$PKG_CONFIG --variable=includedir gstreamer-0.10`:${STAGING_INCDIR}/gstreamer-0.10:g' ${S}/configure.ac
}
+# orc.m4 calls pkg-config ----variable=orcc orc-0.4 to get the path to orcc,
+# resulting in /usr/bin/orcc. Force it to use the staged orcc.
do_configure_append() {
for i in $(find ${S} -name "Makefile") ; do
- sed -i -e s:/usr/bin/orcc:${STAGING_BINDIR_NATIVE}/orcc:g $i
+ sed -i -e s:${bindir}/orcc:${STAGING_BINDIR_NATIVE}/orcc:g $i
done
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-24 13:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-24 12:43 pkg-config confusion Gary Thomas
2010-09-24 13:42 ` [PATCH 1/2] gst-plugins-base 0.10.30: depend on gtk+ Michael Smith
2010-09-24 13:42 ` [PATCH 2/2] gst-plugins.inc: fix path to orcc when prefix != /usr Michael Smith
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.