[oe-commits] Venkata ramana gollamudi : boost: fix re-execution of task

git at git.openembedded.org git at git.openembedded.org
Fri Apr 13 15:09:46 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 291e20a51544c640d07767d1dc32d762f4370f41
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=291e20a51544c640d07767d1dc32d762f4370f41

Author: Venkata ramana gollamudi <ramana.gollamudi at huawei.com>
Date:   Fri Apr 13 11:42:46 2012 +0000

boost: fix re-execution of task

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 at huawei.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-support/boost/boost.inc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index d70a7e2..c9306df 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -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





More information about the Openembedded-commits mailing list