Skip to contentSkip to conversation

base.bbclass, distutils.bbclass, native.bbclass: Allow BBEXTENDS native for python distutils based recipes

PATCH New Michael Lippautz 1 participant 1 message Feb 26, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base.bbclass, distutils.bbclass, native.bbclass: Allow BBEXTENDS native for python distutils based recipes

* Enable BBCLASSEXTEND for python recipe that use distutils class
* Uses new staging system

---
 classes/base.bbclass      |    2 ++
 classes/distutils.bbclass |    2 ++
 classes/native.bbclass    |    3 +++
 3 files changed, 7 insertions(+), 0 deletions(-)
classes/base.bbclass +2 -0
index 990e75e..9d38150 100644
@@ -1107,6 +1107,8 @@ def is_legacy_staging(d):
         legacy = False
     elif bb.data.getVar('NATIVE_INSTALL_WORKS', d, 1) == "1":
         legacy = False
+    elif stagefunc.strip() == "do_stage_native" and bb.data.getVar('DISTUTILS_NATIVE_STAGE_INSTALL', d, 1) == "1":
+        legacy = False
     if bb.data.getVar('PSTAGE_BROKEN_DESTDIR', d, 1) == "1":
         legacy = True
     if bb.data.getVar('FORCE_LEGACY_STAGING', d, 1) == "1":
classes/distutils.bbclass +2 -0
index 4d1fc8c..b06965f 100644
@@ -1,5 +1,7 @@
 inherit distutils-base
 
+DISTUTILS_NATIVE_STAGE_INSTALL = "1"
+
 DISTUTILS_BUILD_ARGS ?= ""
 DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}"
 DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \
classes/native.bbclass +3 -0
index 6698b61..044f92d 100644
@@ -70,6 +70,9 @@ do_stage_native () {
 	if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" == "1" ]
 	then
 		autotools_stage_all
+    elif [ "${DISTUTILS_NATIVE_STAGE_INSTALL}" == "1" ]
+    then
+        distutils_stage_all
 	else
 		oe_runmake install
 	fi
Signature · 1 line
1.6.4.4