]> code.ossystems Code Review - openembedded-core.git/commitdiff
boost: fix re-execution of task
authorVenkata ramana gollamudi <ramana.gollamudi@huawei.com>
Fri, 13 Apr 2012 11:42:46 +0000 (11:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Apr 2012 14:58:11 +0000 (15:58 +0100)
After building boost package, re-execution of boostconfig task followed by
re-execution of compile task is giving following error
"error: duplicate initialization of gcc with the following parameters" during compilation
It is because multiple entries of gcc are being added during boostconfig re-execution
there by failing the compilation.

The patch fixes adding multiple "Using gcc" entries into /tools/build/v2/user-config.jam

[Yocto #2194]

Signed-off-by: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/boost/boost.inc

index d70a7e2c5ae2fc74a79133d6b63342145259ab48..c9306df94f1f4c44db239b905538968491e6a20c 100644 (file)
@@ -135,7 +135,11 @@ BJAM_OPTS    = '${BJAM_TOOLS} \
 do_boostconfig() {
        cp -f boost/config/platform/linux.hpp boost/config/platform/linux-gnueabi.hpp
 
-       echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
+       # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation.
+       if ! grep -qe "^using gcc : 4.3.1" ${S}/tools/build/v2/user-config.jam 
+       then
+               echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
+       fi      
 }
 
 addtask do_boostconfig after do_patch before do_configure