diff options
author | Qing He <qing.he@intel.com> | 2010-08-19 13:32:07 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-31 17:18:55 +0100 |
commit | adfd0e04343ad7770642eadf07a7f9185be6e25d (patch) | |
tree | 51888646c08a50095710f000ff83102a0f305b81 /meta/packages/boost/files/unit_test_log10f.patch | |
parent | d1f7c3f9cc59477ef926c35eb980833d5a0246de (diff) | |
download | poky-adfd0e04343ad7770642eadf07a7f9185be6e25d.tar.gz |
boost: upgrade to 1.44.0
from version 1.36.0
which won't compile with gcc 4.5.0
also moved to meta form meta-moblin
changes:
- .so files should go to -dev instead of sub packages
- create libboostX-mt.{so,a} symlinks for compatibility
- meta package 'boost' should set ALLOW_EMPTY
- fix a bug that caused boost-dev being automatically renamed to
libboost_prg_exec_monitor-dev, packages boost, boost-dev and
boost-test now work as intended
- rebased patch arm-intrinsic
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/packages/boost/files/unit_test_log10f.patch')
-rw-r--r-- | meta/packages/boost/files/unit_test_log10f.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/boost/files/unit_test_log10f.patch b/meta/packages/boost/files/unit_test_log10f.patch new file mode 100644 index 0000000000..b235e12446 --- /dev/null +++ b/meta/packages/boost/files/unit_test_log10f.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- boost_1_32_0/libs/test/src/unit_test_result.cpp.orig 2005-07-05 11:00:53.887594850 -0700 | ||
2 | +++ boost_1_32_0/libs/test/src/unit_test_result.cpp 2005-07-05 11:01:20.683533034 -0700 | ||
3 | @@ -144,7 +144,7 @@ | ||
4 | unit_test_counter num_passed, unit_test_counter num_failed ) | ||
5 | { | ||
6 | unit_test_counter total_test_cases = num_passed + num_failed; | ||
7 | - std::size_t width = static_cast<std::size_t>( std::log10( (float)(std::max)( num_passed, num_failed ) ) ) + 1; | ||
8 | + std::size_t width = static_cast<std::size_t>( std::log10( (double)(std::max)( num_passed, num_failed ) ) ) + 1; | ||
9 | |||
10 | where_to << std::setw( indent ) << "" << std::setw( width ) << num_passed | ||
11 | << " test " << ps_name( num_passed != 1, "case" ) << " out of " << total_test_cases << " passed\n" | ||
12 | @@ -158,7 +158,7 @@ | ||
13 | { | ||
14 | unit_test_counter total_assertions = num_passed + num_failed; | ||
15 | std::size_t width = total_assertions > 0 | ||
16 | - ? static_cast<std::size_t>( std::log10( (float)(std::max)( num_passed, num_failed ) ) ) + 1 | ||
17 | + ? static_cast<std::size_t>( std::log10( (double)(std::max)( num_passed, num_failed ) ) ) + 1 | ||
18 | : 1; | ||
19 | |||
20 | where_to << std::setw( indent ) << "" << std::setw( width ) << num_passed | ||