Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH V2] gcc-cross-initial: make dependency on gnu-config-native and autoconf-native explicit
@ 2015-11-27  8:50 Yuanjie Huang
  2015-11-27  9:07 ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Yuanjie Huang @ 2015-11-27  8:50 UTC (permalink / raw)
  To: openembedded-core

From: Yuanjie Huang <yuanjie.huang@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.

Signed-off-by: Yuanjie Huang <yuanjie.huang@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"
+
 PN = "gcc-cross-initial-${TARGET_ARCH}"
 
 CROSS_TARGET_SYS_DIR_append = ".${PN}"
-- 
2.6.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V2] gcc-cross-initial: make dependency on gnu-config-native and autoconf-native explicit
  2015-11-27  8:50 [PATCH V2] gcc-cross-initial: make dependency on gnu-config-native and autoconf-native explicit Yuanjie Huang
@ 2015-11-27  9:07 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2015-11-27  9:07 UTC (permalink / raw)
  To: Yuanjie Huang; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1665 bytes --]

On Fri, Nov 27, 2015 at 04:50:32PM +0800, Yuanjie Huang wrote:
> From: Yuanjie Huang <yuanjie.huang@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.
> 
> Signed-off-by: Yuanjie Huang <yuanjie.huang@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"

Trailing space not leading space..

> +
>  PN = "gcc-cross-initial-${TARGET_ARCH}"
>  
>  CROSS_TARGET_SYS_DIR_append = ".${PN}"
> -- 
> 2.6.2
> 

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-27  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-27  8:50 [PATCH V2] gcc-cross-initial: make dependency on gnu-config-native and autoconf-native explicit Yuanjie Huang
2015-11-27  9:07 ` Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox