Skip to contentSkip to conversation

Workaround oe-core/scripts/bitbake bug

PATCH New [email protected] 1 participant 1 message Feb 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Workaround oe-core/scripts/bitbake bug

From: Franklin S. Cooper Jr <[email protected]>

* There is a bug in the oe-core/scripts/bitbake script that causes a infinite recursive call.
* This issue is due to the oe-core/scripts/bitbake method of temporarily removing any layer's scripts directory from the system PATH variable.
* As of right now only one instance of a layer's scripts directory is removed from the path since only oe-core contained a scripts directory. This caused a problem when meta-arago added a scripts directory which revealed this problem.
* Detailed information and my proposed fix can be found here:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=3872
* For now rename scripts to arago-scripts to get around this problem until a proper fix is committed in oe-core.

---
 {scripts => arago-scripts}/relocate_sdk.py         |    0
 .../recipes-core/meta/meta-toolchain-arago.bb      |    2 +-
 2 files changed, 1 insertions(+), 1 deletions(-)
 rename {scripts => arago-scripts}/relocate_sdk.py (100%)
arago-scripts/relocate_sdk.py renamed from scripts/relocate_sdk.py +0 -0
similarity index 100%
rename from scripts/relocate_sdk.py
rename to arago-scripts/relocate_sdk.py
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
index b75583b..863e0ef 100644
@@ -77,7 +77,7 @@ fakeroot create_sdk_files() {
 	# Add version information
 	toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${REAL_MULTIMACH_TARGET_SYS}
 
-	cp ${ARAGOBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/
+	cp ${ARAGOBASE}/arago-scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/
 
 	# Replace the ##DEFAULT_INSTALL_DIR## with the correct pattern.
 	# Escape special characters like '+' and '.' in the SDKPATH
Signature · 1 line
1.7.0.4