* [PATCH 1/3] gstreamer-plugins: Change anonymous python structure
@ 2013-09-10 17:28 Saul Wold
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
0 siblings, 2 replies; 3+ messages in thread
From: Saul Wold @ 2013-09-10 17:28 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/3] systemd.bbclass: get the correct /lib directory
2013-09-10 17:28 [PATCH 1/3] gstreamer-plugins: Change anonymous python structure Saul Wold
@ 2013-09-10 17:28 ` Saul Wold
2013-09-10 17:28 ` [PATCH 3/3] cmake.bbclass: ensure CMAKE_SYSTEM_NAME is correct Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2013-09-10 17:28 UTC (permalink / raw)
To: openembedded-core
By using os.path.dirname(systemd_unitdir) we get the correct /lib directory instead of
dealing with possibly multilib directories. This address a QA Error for shipped/not
installed /lib with multilib and x32.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/classes/systemd.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 8ec4992..eab8735 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -168,9 +168,9 @@ python rm_systemd_unitdir (){
systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True))
if os.path.exists(systemd_unitdir):
shutil.rmtree(systemd_unitdir)
- base_libdir = oe.path.join(d.getVar("D", True), d.getVar('base_libdir', True))
- if (os.path.exists(base_libdir) and not os.listdir(base_libdir)):
- os.rmdir(base_libdir)
+ systemd_libdir = os.path.dirname(systemd_unitdir)
+ if (os.path.exists(systemd_libdir) and not os.listdir(systemd_libdir)):
+ os.rmdir(systemd_libdir)
}
do_install[postfuncs] += "rm_systemd_unitdir "
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 3/3] cmake.bbclass: ensure CMAKE_SYSTEM_NAME is correct
2013-09-10 17:28 [PATCH 1/3] gstreamer-plugins: Change anonymous python structure Saul Wold
2013-09-10 17:28 ` [PATCH 2/3] systemd.bbclass: get the correct /lib directory Saul Wold
@ 2013-09-10 17:28 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2013-09-10 17:28 UTC (permalink / raw)
To: openembedded-core
Using TARGET_OS can add the ABIEXTENSION so ensure that is is removed for the Linux
TARGET_OS, we might have other TARGET_OSes so don't hard code CMAKE_SYSTEM_NAME
[YOCTO #5145]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/classes/cmake.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 1e72371..30c1792 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -35,7 +35,7 @@ cmake_do_generate_toolchain_file() {
cat > ${WORKDIR}/toolchain.cmake <<EOF
# CMake system name must be something like "Linux".
# This is important for cross-compiling.
-set( CMAKE_SYSTEM_NAME `echo ${TARGET_OS} | sed 's/^./\u&/'` )
+set( CMAKE_SYSTEM_NAME `echo ${TARGET_OS} | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` )
set( CMAKE_SYSTEM_PROCESSOR ${TARGET_ARCH} )
set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} )
set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} )
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-10 17:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-10 17:28 [PATCH 1/3] gstreamer-plugins: Change anonymous python structure Saul Wold
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
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.