diff options
author | Qing He <qing.he@intel.com> | 2011-04-13 16:59:22 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-04-26 23:51:24 -0700 |
commit | bd0798120559a8aca726db8e962bbbafb80c2a54 (patch) | |
tree | 236a998e488ade177dfd254fac0337cce2609400 /meta/recipes-extended/sat-solver/sat-solver | |
parent | 2d19f07fa5b1021c4210b28a2d6225e50c721580 (diff) | |
download | openembedded-core-bd0798120559a8aca726db8e962bbbafb80c2a54.tar.gz openembedded-core-bd0798120559a8aca726db8e962bbbafb80c2a54.tar.bz2 openembedded-core-bd0798120559a8aca726db8e962bbbafb80c2a54.tar.xz openembedded-core-bd0798120559a8aca726db8e962bbbafb80c2a54.zip |
sat-solver: fix arch=all packages
add a new options to set noarch archs as all so platform independent
packages can be recognized and installed.
fixes [YOCTO #993]
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/recipes-extended/sat-solver/sat-solver')
-rw-r--r-- | meta/recipes-extended/sat-solver/sat-solver/sat-solver_core.patch (renamed from meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch) | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch b/meta/recipes-extended/sat-solver/sat-solver/sat-solver_core.patch index b762bac85..11bf5b018 100644 --- a/meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch +++ b/meta/recipes-extended/sat-solver/sat-solver/sat-solver_core.patch @@ -1,3 +1,5 @@ +Upstream-Status: Inappropriate [distribution] + Fix "arch" integration with Poky. Add a missing "any" architecture type and update the semantics to use it. @@ -5,8 +7,27 @@ Add a missing "any" architecture type and update the semantics to use it. Disable the built-in archpolicies structure, and replace it with one we generate in the recipe. +Also add poky semantics option in CMake. + Signed-off-by: Mark Hatle <mark.hatle@windriver.com> +Signed-off-by: Qing He <qing.he@intel.com> +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 443281e..4456a87 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -45,6 +45,11 @@ MESSAGE(STATUS "Building for Debian") + ADD_DEFINITIONS( -DDEBIAN -DDEBIAN_SEMANTICS) + ENDIF ( DEBIAN ) + ++IF ( OE_CORE ) ++MESSAGE(STATUS "Building for OE core") ++ADD_DEFINITIONS( -DOE_CORE -DOE_CORE_SEMANTICS) ++ENDIF ( OE_CORE ) ++ + IF ( MULTI_SEMANTICS ) + MESSAGE(STATUS "Enabling multi dist support") + ADD_DEFINITIONS( -DMULTI_SEMANTICS) diff --git a/src/knownid.h b/src/knownid.h index 7757ae0..4b8bee7 100644 --- a/src/knownid.h @@ -27,7 +48,7 @@ index 55c8677..3356ff8 100644 } /* we allow changes to/from noarch */ -+#ifdef POKY_SEMANTICS ++#ifdef OE_CORE_SEMANTICS + if (a1 == a2 || + a1 == ARCH_NOARCH || a2 == ARCH_NOARCH || + a1 == ARCH_ANY || a2 == ARCH_ANY || @@ -86,7 +107,7 @@ index 34a14a3..2d7cd70 100644 - 0 -}; +/* Provide the const char *archpolicies structure */ -+#include "poky-arch.h" ++#include "core-arch.h" void pool_setarch(Pool *pool, const char *arch) @@ -97,7 +118,7 @@ index 34a14a3..2d7cd70 100644 -#ifndef DEBIAN_SEMANTICS - id = ARCH_NOARCH; -#else -+#if defined(DEBIAN_SEMANTICS) || defined(POKY_SEMANTICS) ++#if defined(DEBIAN_SEMANTICS) || defined(OE_CORE_SEMANTICS) id = ARCH_ALL; +#else + id = ARCH_NOARCH; |