[OE-core] [PATCH] gcc: let cpp rrecommend gcc.

Khem Raj raj.khem at gmail.com
Thu Mar 9 14:17:12 UTC 2017


On Thu, Mar 9, 2017 at 5:59 AM Ismo Puustinen <ismo.puustinen at intel.com>
wrote:

> The file /usr/libexec/gcc/.../cc1 has been installed in package "gcc"
> instead of package "cpp", because FILES statements for both packages
> match the cc1 binary. Remove the attempt to install the file in cpp to
> avoid confusion.



Perhaps it's better to package it in cpp and remove from gcc package

>
>
> However, cpp uses cc1. If cc1 is not installed, there are error messages
> such as: "cpp: error trying to exec 'cc1': execvp: No such file or
> directory". Add gcc to RRECOMMENDS_cpp to fix the problem.
>
> Signed-off-by: Ismo Puustinen <ismo.puustinen at intel.com>
> ---
>  meta/recipes-devtools/gcc/gcc-target.inc | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-target.inc
> b/meta/recipes-devtools/gcc/gcc-target.inc
> index f436fa2..3a2927e 100644
> --- a/meta/recipes-devtools/gcc/gcc-target.inc
> +++ b/meta/recipes-devtools/gcc/gcc-target.inc
> @@ -93,8 +93,9 @@ FILES_gfortran-symlinks = "\
>  FILES_cpp = "\
>      ${bindir}/${TARGET_PREFIX}cpp* \
>      ${base_libdir}/cpp \
> -    ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1"
> +"
>  FILES_cpp-symlinks = "${bindir}/cpp"
> +RRECOMMENDS_cpp = "${PN}"
>
>  FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov* \
>      ${bindir}/${TARGET_PREFIX}gcov-tool* \
> --
> 2.9.3
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170309/8ecf7178/attachment-0002.html>


More information about the Openembedded-core mailing list