dev-libs/icu: Backport fix for bug 573294
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 3 Mar 2016 19:44:00 +0000 (20:44 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 3 Mar 2016 19:44:27 +0000 (20:44 +0100)
Package-Manager: portage-2.2.27

dev-libs/icu/files/icu-flagparser.patch [new file with mode: 0644]
dev-libs/icu/icu-56.1-r1.ebuild

diff --git a/dev-libs/icu/files/icu-flagparser.patch b/dev-libs/icu/files/icu-flagparser.patch
new file mode 100644 (file)
index 0000000..bd64276
--- /dev/null
@@ -0,0 +1,13 @@
+Index: source/tools/toolutil/flagparser.c
+===================================================================
+--- a/source/tools/toolutil/flagparser.c       (revision 38080)
++++ b/source/tools/toolutil/flagparser.c       (revision 38081)
+@@ -97,7 +97,7 @@
+     T_FileStream_close(f);
+     
+-    if (U_FAILURE(*status)) {
++    if (U_FAILURE(*status) && *status != U_BUFFER_OVERFLOW_ERROR) {
+         return -1;
+     }
index e8a0e2beac09432e1ab75b27a893f01974c36ec5..3968b3a1dda8db0a183adefcf11433579561bc28 100644 (file)
@@ -34,6 +34,7 @@ src_prepare() {
        local variable
 
        epatch "${FILESDIR}/${PN}-remove-bashisms.patch"
+       epatch "${FILESDIR}/${PN}-flagparser.patch"
        epatch_user
 
        # Disable renaming as it is stupind thing to do