]> code.ossystems Code Review - openembedded-core.git/commitdiff
binconfig: improve handling of empty prefixes
authorPhil Blundell <pb@pbcl.net>
Tue, 31 May 2011 16:06:22 +0000 (17:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Jun 2011 17:32:29 +0000 (18:32 +0100)
This is a backport of 952e5e2b7a5c1deefc939594d40b81a71fb16a54 from oe master.

Without this the script mangling goes very wrong if ${prefix}="".  There
isn't really any way to fix this in the completely general case, but
this patch does work with the two cases I tested (freetype and
gpg-error) which were unusable previously.

Signed-off-by: Phil Blundell <philb@gnu.org>
meta/classes/binconfig.bbclass

index 8e22d2d2921e28fcf3a16598ba1b2f606fc6feb0..3deb5415e309428d27b3a90a44b083949162e3ca 100644 (file)
@@ -6,8 +6,8 @@ def get_binconfig_mangle(d):
                s += " -e 's:=%s${libdir}:=\\1OELIBDIR:;'" % optional_quote
                s += " -e 's:=%s${includedir}:=\\1OEINCDIR:;'" % optional_quote
                s += " -e 's:=%s${datadir}:=\\1OEDATADIR:'" % optional_quote
-               s += " -e 's:=%s${prefix}:=\\1OEPREFIX:'" % optional_quote
-               s += " -e 's:=%s${exec_prefix}:=\\1OEEXECPREFIX:'" % optional_quote
+               s += " -e 's:=%s${prefix}/:=\\1OEPREFIX/:'" % optional_quote
+               s += " -e 's:=%s${exec_prefix}/:=\\1OEEXECPREFIX/:'" % optional_quote
                s += " -e 's:-L${libdir}:-LOELIBDIR:;'"
                s += " -e 's:-I${includedir}:-IOEINCDIR:;'"
                s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"