From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 1/3] gstreamer-plugins: Change anonymous python structure
Date: Tue, 10 Sep 2013 10:28:13 -0700 [thread overview]
Message-ID: <1378834095-8523-1-git-send-email-sgw@linux.intel.com> (raw)
This change ensures that the SRC_URI is set before base.bbclass code is called. This will
also ensure that the xz-native depends is set correct.
[YOCTO #5127]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
index 6f27957..651119e 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc
@@ -30,7 +30,9 @@ oe_runconf_prepend() {
fi
}
-python __anonymous () {
+SRC_URI = "${@get_gst_srcuri(d)}"
+
+def get_gst_srcuri(d):
# check if expected prefix is present
prefix = "gstreamer1.0-"
bpn = d.getVar("BPN", True)
@@ -43,10 +45,10 @@ python __anonymous () {
branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True)
if pv == "git":
- d.setVar("SRC_URI", "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch))
+ s = "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch)
else:
- d.setVar("SRC_URI", "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv))
-}
+ s = "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv)
+ return s
delete_liblink_m4_file() {
# This m4 file contains nastiness which conflicts with libtool 2.2.2
--
1.8.3.1
next reply other threads:[~2013-09-10 17:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 17:28 Saul Wold [this message]
2013-09-10 17:28 ` [PATCH 2/3] systemd.bbclass: get the correct /lib directory Saul Wold
2013-09-10 17:28 ` [PATCH 3/3] cmake.bbclass: ensure CMAKE_SYSTEM_NAME is correct Saul Wold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378834095-8523-1-git-send-email-sgw@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox