Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gcc: let cpp rrecommend gcc.
@ 2017-03-09 13:59 Ismo Puustinen
  2017-03-09 14:17 ` Khem Raj
  2017-03-09 14:44 ` [PATCH] gcc: let cpp rrecommend gcc Richard Purdie
  0 siblings, 2 replies; 5+ messages in thread
From: Ismo Puustinen @ 2017-03-09 13:59 UTC (permalink / raw)
  To: openembedded-core

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.

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@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



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

end of thread, other threads:[~2017-03-10 10:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-09 13:59 [PATCH] gcc: let cpp rrecommend gcc Ismo Puustinen
2017-03-09 14:17 ` Khem Raj
2017-03-10  9:27   ` Puustinen, Ismo
2017-03-10 10:10   ` [PATCH v2] gcc: move cc1 binary file to package cpp Ismo Puustinen
2017-03-09 14:44 ` [PATCH] gcc: let cpp rrecommend gcc Richard Purdie

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