]> code.ossystems Code Review - openembedded-core.git/commit
libzypp: workaround to pass mips build
authorKevin Tian <kevin.tian@intel.com>
Wed, 8 Sep 2010 08:57:03 +0000 (16:57 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 8 Sep 2010 13:39:00 +0000 (14:39 +0100)
commitc519aec68c61ae2a3822fde0c8e4616a97d2faaf
treea06515c46cc3d4886653f223911200254313f5fb
parent7892add2de517a0273f64fcd0d398d96531cd5a2
libzypp: workaround to pass mips build

libzypp failed due to GCC "internal compiler error: segmentation fault" error on
MIPS target. The cause is about boost tribool type usage. If having assignement
within conditional check as below:

if ( (a = b) )
...
<a is a tribool type, b is a normal bool type>

then gcc4.3.3 throws internal error. Then the workaround is to move assignement
out of the conditional check.

However I didn't find same case from web.

We can come back to recheck this issue after upgrading to gcc4.5.0 for MIPS. If
this issue is still there, we'll need more analysis to decide whether to report
to gcc upstream or to libzypp upstream.

This fixes [BUGID #277]

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
meta/recipes-extended/libzypp/libzypp/mips-workaround-gcc-tribool-error.patch [new file with mode: 0644]
meta/recipes-extended/libzypp/libzypp_git.bb