Patchwork [4/4] base.bbclass: Fix PACKAGE_ARCH typo

login
register
mail settings
Submitter Richard Purdie
Date July 27, 2011, 2:29 p.m.
Message ID <706a2e04c5d4373a4f5a0dfbaf94bc63f95bc850.1311776363.git.richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/8717/
State New, archived
Headers show

Comments

Richard Purdie - July 27, 2011, 2:29 p.m.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/base.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Khem Raj - July 30, 2011, 6:40 p.m.
On Wednesday, July 27, 2011 03:29:15 PM Richard Purdie wrote:
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>  meta/classes/base.bbclass |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index 3ed1bb8..a0a189f 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -407,7 +407,7 @@ python () {
>          # if multiple differences are present?
>          # Look through PACKAGE_ARCHS for the priority order?
>          if pkgarch and pkgarch == mach_arch:
> -            bb.data.setVar('PACAKGE_ARCH', "${MACHINE_ARCH}", d)
> +            bb.data.setVar('PACKAGE_ARCH', "${MACHINE_ARCH}", d)

nice I was wondering this warning in my builds

>              bb.warn("Recipe %s is marked as only being architecture
> specific but seems to have machine specific packages?! The recipe may as
> well mark itself as machine specific directly." % d.getVar("PN", True)) }

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 3ed1bb8..a0a189f 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -407,7 +407,7 @@  python () {
         # if multiple differences are present?
         # Look through PACKAGE_ARCHS for the priority order?
         if pkgarch and pkgarch == mach_arch:
-            bb.data.setVar('PACAKGE_ARCH', "${MACHINE_ARCH}", d)
+            bb.data.setVar('PACKAGE_ARCH', "${MACHINE_ARCH}", d)
             bb.warn("Recipe %s is marked as only being architecture specific but seems to have machine specific packages?! The recipe may as well mark itself as machine specific directly." % d.getVar("PN", True))
 }