[oe] [PATCH] base.bbclass: re-adding backward compatibility with bitbake w.r.t decodeurl

Khem Raj raj.khem at gmail.com
Tue Jul 6 23:06:10 UTC 2010


I am testing this patch to restore the behavior while using unpatched 
bitbake. Please lend a hand in testing this fix.

Thanks
-Khem

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 classes/base.bbclass |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 2da0b7a..d6058f0 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -219,7 +219,15 @@ def oe_unpack_file(file, data, url = None):
 			# The "destdir" handling was specifically done for FILESPATH
 			# items.  So, only do so for file:// entries.
 			if type == "file":
-				dest = os.path.dirname(path) or "."
+				if not host:
+				# this case is for backward compatiblity with older version
+				# of bitbake which do not have the fix
+				# http://cgit.openembedded.org/cgit.cgi/bitbake/commit/?id=ca257adc587bb0937ea76d8b32b654fdbf4192b8
+				# this should not be needed once all releases of bitbake has this fix
+				# applied/backported
+					dest = os.path.join(host, os.path.dirname(path)) or "."
+				else:
+					dest = os.path.dirname(path) or "."
 			else:
 				dest = "."
 			bb.mkdirhier("%s" % os.path.join(os.getcwd(),dest))
-- 
1.7.1





More information about the Openembedded-devel mailing list