* [PATCH] libzypp: Fix variable substitution problem in do_archgen step
@ 2011-07-28 18:09 Kumar Gala
2011-08-02 16:50 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2011-07-28 18:09 UTC (permalink / raw)
To: openembedded-core
The do_archgen step creates a script that utilizes the variable name
${ARCH}. However, we also utilize and define ${ARCH} so instead of
having the following in the script:
COMPAT_WITH="${ARCH},${COMPAT} $COMPAT_WITH"
We get something like:
COMPAT_WITH="powerpc,${COMPAT} $COMPAT_WITH"
Just renaming the variable in the script to not conflict with ${ARCH}
fixes the issue.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
meta/recipes-extended/libzypp/libzypp_git.bb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-extended/libzypp/libzypp_git.bb b/meta/recipes-extended/libzypp/libzypp_git.bb
index 6555bd4..a9ed639 100644
--- a/meta/recipes-extended/libzypp/libzypp_git.bb
+++ b/meta/recipes-extended/libzypp/libzypp_git.bb
@@ -111,9 +111,9 @@ do_archgen () {
shift ; continue;;
esac
if [ "${AVOID_CONSTRUCTOR}" != "true" ]; then
- ARCH="_$1"
+ CARCH="_$1"
else
- ARCH="IdString(\"$1\")"
+ CARCH="IdString(\"$1\")"
fi
shift
COMPAT=""
@@ -129,7 +129,7 @@ do_archgen () {
COMPAT="${arch_val},$COMPAT"
fi
done
- COMPAT_WITH="${ARCH},${COMPAT} $COMPAT_WITH"
+ COMPAT_WITH="${CARCH},${COMPAT} $COMPAT_WITH"
done
for each_compat in ${COMPAT_WITH} ; do
echo " defCompatibleWith( ${each_compat} );" >> zypp/poky-arch.h
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libzypp: Fix variable substitution problem in do_archgen step
2011-07-28 18:09 [PATCH] libzypp: Fix variable substitution problem in do_archgen step Kumar Gala
@ 2011-08-02 16:50 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2011-08-02 16:50 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/28/2011 11:09 AM, Kumar Gala wrote:
> The do_archgen step creates a script that utilizes the variable name
> ${ARCH}. However, we also utilize and define ${ARCH} so instead of
> having the following in the script:
>
> COMPAT_WITH="${ARCH},${COMPAT} $COMPAT_WITH"
>
> We get something like:
>
> COMPAT_WITH="powerpc,${COMPAT} $COMPAT_WITH"
>
> Just renaming the variable in the script to not conflict with ${ARCH}
> fixes the issue.
>
> Signed-off-by: Kumar Gala<galak@kernel.crashing.org>
> ---
> meta/recipes-extended/libzypp/libzypp_git.bb | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-extended/libzypp/libzypp_git.bb b/meta/recipes-extended/libzypp/libzypp_git.bb
> index 6555bd4..a9ed639 100644
> --- a/meta/recipes-extended/libzypp/libzypp_git.bb
> +++ b/meta/recipes-extended/libzypp/libzypp_git.bb
> @@ -111,9 +111,9 @@ do_archgen () {
> shift ; continue;;
> esac
> if [ "${AVOID_CONSTRUCTOR}" != "true" ]; then
> - ARCH="_$1"
> + CARCH="_$1"
> else
> - ARCH="IdString(\"$1\")"
> + CARCH="IdString(\"$1\")"
> fi
> shift
> COMPAT=""
> @@ -129,7 +129,7 @@ do_archgen () {
> COMPAT="${arch_val},$COMPAT"
> fi
> done
> - COMPAT_WITH="${ARCH},${COMPAT} $COMPAT_WITH"
> + COMPAT_WITH="${CARCH},${COMPAT} $COMPAT_WITH"
> done
> for each_compat in ${COMPAT_WITH} ; do
> echo " defCompatibleWith( ${each_compat} );" >> zypp/poky-arch.h
Merged into OE-Core with a PR Bump
Thanks
Sau!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-02 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-28 18:09 [PATCH] libzypp: Fix variable substitution problem in do_archgen step Kumar Gala
2011-08-02 16:50 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox