Patchwork [2/7] libxml-simple-perl: Use BBCLASSEXTEND insteand of *-native recipe

login
register
mail settings
Submitter Dongxiao Xu
Date Aug. 3, 2011, 3:19 p.m.
Message ID <d3516ab9dcace89460188c32b8a3c07a74a94224.1312384552.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/9111/
State New, archived
Headers show

Comments

Dongxiao Xu - Aug. 3, 2011, 3:19 p.m.
It's not appropriate to require xxx.bb in xxx-native.bb, causing that
xxx-native depends on target recipe.

Use BBCLASSEXTEND to solve this issue.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 .../perl/libxml-simple-perl-native_2.18.bb         |    7 -------
 .../perl/libxml-simple-perl_2.18.bb                |    2 ++
 2 files changed, 2 insertions(+), 7 deletions(-)
 delete mode 100644 meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb

Patch

diff --git a/meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb b/meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb
deleted file mode 100644
index 3877d0b..0000000
--- a/meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb
+++ /dev/null
@@ -1,7 +0,0 @@ 
-SECTION = "libs"
-
-inherit native
-
-require libxml-simple-perl_${PV}.bb
-
-DEPENDS += "libxml-parser-perl-native"
diff --git a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
index 3a50d7f..f2abf9d 100644
--- a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
+++ b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
@@ -14,3 +14,5 @@  S = "${WORKDIR}/XML-Simple-${PV}"
 EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}"
 
 inherit cpan
+
+BBCLASSEXTEND = "native"