[oe-commits] Khem Raj : libxml2-native: Move EXTRA_OECONF to do_configure_prepend

GIT User account git at amethyst.openembedded.net
Tue Mar 24 21:10:04 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: c20e6cd2364611ecda9fee490840b5301c1546ce
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c20e6cd2364611ecda9fee490840b5301c1546ce

Author: Khem Raj <raj.khem at gmail.com>
Date:   Mon Mar 23 21:06:36 2009 -0700

libxml2-native: Move EXTRA_OECONF to do_configure_prepend

        * EXTRA_OECONF uses --with-python=${PYTHON_DIR}
          and PYTHON_DIR is a python evaluated. So unless
          we have python-native built and installed in staging
          we can not evaluate this variable. We move this
          evaluation inside do_configure so that it gets
          evluated after dependency is met.

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/libxml/libxml2-native.inc      |   18 ++++++++++--------
 recipes/libxml/libxml2-native_2.7.2.bb |    2 +-
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/recipes/libxml/libxml2-native.inc b/recipes/libxml/libxml2-native.inc
index b819f95..c8182de 100644
--- a/recipes/libxml/libxml2-native.inc
+++ b/recipes/libxml/libxml2-native.inc
@@ -7,14 +7,16 @@ S = "${WORKDIR}/libxml2-${PV}"
 
 inherit distutils-base autotools native pkgconfig
 
-EXTRA_OECONF = "\
-  --with-python=${PYTHON_DIR} \
-  --without-debug \
-  --without-legacy \
-  --with-catalog \
-  --without-docbook \
-  --with-c14n \
-"
+do_configure_prepend () {
+	EXTRA_OECONF = "\
+	--with-python=${PYTHON_DIR} \
+	--without-debug \
+	--without-legacy \
+	--with-catalog \
+	--without-docbook \
+	--with-c14n \
+	"
+}
 
 do_stage () {
 	oe_runmake install
diff --git a/recipes/libxml/libxml2-native_2.7.2.bb b/recipes/libxml/libxml2-native_2.7.2.bb
index bcbfb66..24261d6 100644
--- a/recipes/libxml/libxml2-native_2.7.2.bb
+++ b/recipes/libxml/libxml2-native_2.7.2.bb
@@ -1,2 +1,2 @@
 require libxml2-native.inc
-PR = "r1"
+PR = "r2"





More information about the Openembedded-commits mailing list