[OE-core] [PATCH] gcc-cross-initial: make dependency on gnu-config-native and autoconf-native explicit

Martin Jansa martin.jansa at gmail.com
Fri Nov 27 08:38:25 UTC 2015


On Fri, Nov 27, 2015 at 10:45:48AM +0800, Yuanjie Huang wrote:
> From: Yuanjie Huang <yuanjie.huang at windriver.com>
> 
> When a project is configure to use sstate cache and has the host tool sysroot
> cleaned, gcc-cross-initial may fail to be configured due to lack of
> gnu-configize tool.
> 
> gcc-cross-initial recipe has autotools dependency inhibited, and the same flag
> variable also excludes the gnu-config-native.  Though there is an indirect
> dependency through libmpc-native, it's not safe with sstate cache being used.
> 
> Moreover, gnu-config-native requires a perl package from autoconf-native to
> run, otherwise it will fail with "Can't locate Autom4te/ChannelDefs.pm in @INC"
> message.
> 
> This patch makes both dependencies explicit for gcc-cross-initial's
> configuration.
> 
> Upstream-status: Inappropriate[configuration]

Upstream-status is for .patch files added to metadata, not for metadata
changes.

> Signed-off-by: Yuanjie Huang <yuanjie.huang at windriver.com>
> ---
>  meta/recipes-devtools/gcc/gcc-cross-initial.inc | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
> index 7197447..1cb341b 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc
> +++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
> @@ -5,6 +5,9 @@ PACKAGES = ""
>  INHIBIT_AUTOTOOLS_DEPS = "1"
>  INHIBIT_DEFAULT_DEPS = "1"
>  
> +# We still need gnu-config-native
> +DEPENDS_prepend = "gnu-config-native autoconf-native"

You need trailing space for _prepend.

> +
>  PN = "gcc-cross-initial-${TARGET_ARCH}"
>  
>  CROSS_TARGET_SYS_DIR_append = ".${PN}"
> -- 
> 2.6.2
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151127/15e47f9d/attachment-0002.sig>


More information about the Openembedded-core mailing list