]> git.pld-linux.org Git - packages/icu.git/commitdiff
- added flagparser patch (fixes pkgdata program operation with longer flags in icupkg... auto/th/icu-56.1-2
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 15 Nov 2015 20:26:57 +0000 (21:26 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 15 Nov 2015 20:26:57 +0000 (21:26 +0100)
- release 2

icu-flagparser.patch [new file with mode: 0644]
icu.spec

diff --git a/icu-flagparser.patch b/icu-flagparser.patch
new file mode 100644 (file)
index 0000000..61d214c
--- /dev/null
@@ -0,0 +1,38 @@
+In case of too small buffer (U_BUFFER_OVERFLOW_ERROR) parseFlagsFile must return
+wanted buffer size (stored in result) instead of -1.
+
+--- icu/source/tools/toolutil/flagparser.c.orig        2015-10-08 05:54:06.000000000 +0200
++++ icu/source/tools/toolutil/flagparser.c     2015-11-15 21:10:17.988942482 +0100
+@@ -30,6 +30,7 @@
+     FileStream *f = T_FileStream_open(fileName, "r");
+     if (f == NULL) {
+         *status = U_FILE_ACCESS_ERROR;
++        result = -1;
+         goto parseFlagsFile_cleanup;
+     }
+     
+@@ -38,6 +39,7 @@
+     if (buffer == NULL || tmpFlagBuffer == NULL) {
+         *status = U_MEMORY_ALLOCATION_ERROR;
++        result = -1;
+         goto parseFlagsFile_cleanup;
+     }
+@@ -49,6 +51,7 @@
+             buffer = uprv_malloc(sizeof(char) * currentBufferSize);
+             if (buffer == NULL) {
+                 *status = U_MEMORY_ALLOCATION_ERROR;
++                result = -1;
+                 goto parseFlagsFile_cleanup;
+             }
+         }
+@@ -98,7 +101,7 @@
+     T_FileStream_close(f);
+     
+     if (U_FAILURE(*status)) {
+-        return -1;
++        return result;
+     }
+     if (U_SUCCESS(*status) && result == 0) {
index 4130927812adc8e3f9c4ad65fa1e66e647f8f0be..0761d9ebfc80c78792c5667b280618bb5e2fc22b 100644 (file)
--- a/icu.spec
+++ b/icu.spec
@@ -7,11 +7,12 @@ Summary:      International Components for Unicode
 Summary(pl.UTF-8):     MiÄ™dzynarodowe komponenty dla unikodu
 Name:          icu
 Version:       56.1
-Release:       1
+Release:       2
 License:       MIT-like
 Group:         Libraries
 Source0:       http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{ver}-src.tgz
 # Source0-md5: c4a2d71ff56aec5ebfab2a3f059be99d
+Patch0:                %{name}-flagparser.patch
 URL:           http://www.icu-project.org/
 BuildRequires: autoconf >= 2.69
 BuildRequires: libstdc++-devel
@@ -94,6 +95,7 @@ biblioteki programistyczne ICU.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
 cd source
This page took 0.171422 seconds and 4 git commands to generate.