[OE-core] libzypp variable expansion problem

Koen Kooi koen at dominion.thruhere.net
Thu Jul 28 07:05:45 UTC 2011


Op 28 jul. 2011, om 04:19 heeft Kumar Gala het volgende geschreven:

> In meta/recipes-extended/libzypp/libzypp_git.bb we having something that looks like:
> 
>        while [ $# -gt 0 ]; do
> 		...
>                if [ "${AVOID_CONSTRUCTOR}" != "true" ]; then
>                  ARCH="_$1"
>                else
>                  ARCH="IdString(\"$1\")"
>                fi
> 		...
>                COMPAT_WITH="${ARCH},${COMPAT} $COMPAT_WITH"
>        done
> 
> The problem is the COMPAT_WITH line should show up in the resulting script as is, however its not getting expanded because ARCH is set.  So we end up with:
> 
> 	COMPAT_WITH="powerpc,${COMPAT} $COMPAT_WITH"
> 
> instead of
> 
> 	COMPAT_WITH="${ARCH},${COMPAT} $COMPAT_WITH"
> 
> Not quite sure how to fix this w/regards to quoting to prevent the expansion.  One solution is to just rename ARCH to something like CARCH.

Not really a solution to your problem, but in general ${FOO} gets expanded by bitbake, $FOO gets expanded by shell.

regards,

Koen



More information about the Openembedded-core mailing list