[meta-mentor] [PATCH] avahi-ui: Use inheritance rather than hard-coding to define python specifications.

Belal, Awais awais_belal at mentor.com
Mon May 20 06:30:00 PDT 2013


From: Awais Belal <awais_belal at mentor.com>

Use pythonnative class to correctly define the directory thorugh which
python should be picked up, otherwise the configure script for the avahi-ui
package goes to check in the host system and misleads if the version of python
is different on host than the one being used in the target installation. This
class also adds package dependency on python-native.

Use python-dir to be able to generate the PYTHON_SITEPACKAGES_DIR specifically
as defined by the target image rather than hard-coding this path which would
again require updates in the future with the change of python version.

Note: This is generic but is typically required for mentor/mel6.

Signed-off-by: Awais Belal <awais_belal at mentor.com>
---
 recipes/avahi/avahi-ui_0.6.31.bbappend | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/avahi/avahi-ui_0.6.31.bbappend b/recipes/avahi/avahi-ui_0.6.31.bbappend
index 4aadd4c..248124d 100644
--- a/recipes/avahi/avahi-ui_0.6.31.bbappend
+++ b/recipes/avahi/avahi-ui_0.6.31.bbappend
@@ -1,6 +1,6 @@
-PRINC := "${@int(PRINC) + 1}"
+PRINC := "${@int(PRINC) + 2}"
 
-PYTHON_SITEPACKAGES_DIR = "/usr/lib/python2.7/dist-packages"
+inherit python-dir pythonnative
 
 EXTRA_OECONF += "--enable-python \
                 "
-- 
1.8.2.2




More information about the meta-mentor mailing list