summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-02 07:11:20 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-02 07:11:20 +0000
commit13f5eecde7819443da3b2a049365ecdf200c5caa (patch)
treec93abc36118f3699e06fbf64efb72eb7e923c28c /dev-libs/icu/files
parentFix ebuild for Prefix, bug #343777 (diff)
downloadgentoo-2-13f5eecde7819443da3b2a049365ecdf200c5caa.tar.gz
gentoo-2-13f5eecde7819443da3b2a049365ecdf200c5caa.tar.bz2
gentoo-2-13f5eecde7819443da3b2a049365ecdf200c5caa.zip
Fix tests with GCC 4.5 (bugs #318393, #339844).
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/icu/files')
-rw-r--r--dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch b/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch
new file mode 100644
index 000000000000..0b5d2ebdd2d5
--- /dev/null
+++ b/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch
@@ -0,0 +1,32 @@
+https://ssl.icu-project.org/trac/ticket/7932
+https://ssl.icu-project.org/trac/changeset/28667
+https://ssl.icu-project.org/trac/ticket/8011
+https://ssl.icu-project.org/trac/changeset/28772
+
+--- test/cintltst/cnumtst.c
++++ test/cintltst/cnumtst.c
+@@ -405,7 +405,12 @@
+ log_err("parse failed. The error is : %s\n", myErrorName(status));
+ }
+
+- if(d1!=462.12345)
++ /*
++ * Note: "for strict standard conformance all operations and constants are now supposed to be evaluated in precision of long double". So, we assign a1 before comparing to a double. Bug #7932.
++ */
++ a1 = 462.12345;
++
++ if(d1!=a1)
+ log_err("Fail: Error in parsing\n");
+ else
+ log_verbose("Pass: parsing successful\n");
+--- test/intltest/numfmtst.cpp
++++ test/intltest/numfmtst.cpp
+@@ -6144,7 +6144,7 @@
+ )
+ {
+ errln("ERROR: parse failed - expected 123.0, 3 - returned %d, %i",
+- result.getDouble(), parsePos);
++ result.getDouble(), parsePos.getIndex());
+ }
+ }
+