dev-libs/icu: add 4.4 libs only package
(Portage version: 2.1.10.7/svn/Linux x86_64, RepoMan options: --force) git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/zarafa@2985 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
26
dev-libs/icu/files/icu-4.4.1-arm.patch
Normal file
26
dev-libs/icu/files/icu-4.4.1-arm.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=329439
|
||||
https://bugs.icu-project.org/trac/ticket/7664
|
||||
https://bugs.icu-project.org/trac/changeset/28107
|
||||
|
||||
--- tools/toolutil/pkg_genc.c
|
||||
+++ tools/toolutil/pkg_genc.c
|
||||
@@ -1,5 +1,5 @@
|
||||
/******************************************************************************
|
||||
- * Copyright (C) 2009, International Business Machines
|
||||
+ * Copyright (C) 2009-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
@@ -118,10 +118,10 @@
|
||||
} assemblyHeader[] = {
|
||||
{"gcc",
|
||||
".globl %s\n"
|
||||
- "\t.section .note.GNU-stack,\"\",@progbits\n"
|
||||
+ "\t.section .note.GNU-stack,\"\",%%progbits\n"
|
||||
"\t.section .rodata\n"
|
||||
"\t.align 8\n" /* Either align 8 bytes or 2^8 (256) bytes. 8 bytes is needed. */
|
||||
- "\t.type %s,@object\n"
|
||||
+ "\t.type %s,%%object\n"
|
||||
"%s:\n\n",
|
||||
|
||||
".long ","",HEX_0X
|
||||
17
dev-libs/icu/files/icu-4.4.1-et_EE.patch
Normal file
17
dev-libs/icu/files/icu-4.4.1-et_EE.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=260127
|
||||
https://bugs.icu-project.org/trac/ticket/6934
|
||||
https://bugs.icu-project.org/trac/changeset/28160
|
||||
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -219,8 +219,8 @@
|
||||
$(INSTALL_SCRIPT) $(top_srcdir)/config/icu-config-top $@
|
||||
chmod u+w $@
|
||||
@echo "# Following from @platform_make_fragment@" >> $@
|
||||
- sed -f $(top_srcdir)/config/make2sh.sed < $(top_builddir)/config/Makefile.inc | grep -v '#M#' | uniq >> $@
|
||||
- sed -f $(top_srcdir)/config/make2sh.sed < @platform_make_fragment@ | grep -v '#M#' | uniq >> $@
|
||||
+ LC_ALL=C sed -f $(top_srcdir)/config/make2sh.sed < $(top_builddir)/config/Makefile.inc | grep -v '#M#' | uniq >> $@
|
||||
+ LC_ALL=C sed -f $(top_srcdir)/config/make2sh.sed < @platform_make_fragment@ | grep -v '#M#' | uniq >> $@
|
||||
cat $(top_srcdir)/config/icu-config-bottom >> $@
|
||||
echo "# Rebuilt on "`date` >> $@
|
||||
chmod u-w $@
|
||||
80
dev-libs/icu/files/icu-4.4.1-pkgdata.patch
Normal file
80
dev-libs/icu/files/icu-4.4.1-pkgdata.patch
Normal file
@@ -0,0 +1,80 @@
|
||||
https://bugs.icu-project.org/trac/ticket/7663
|
||||
https://bugs.icu-project.org/trac/changeset/28002
|
||||
https://bugs.icu-project.org/trac/ticket/7680
|
||||
https://bugs.icu-project.org/trac/changeset/28124
|
||||
|
||||
--- source/tools/pkgdata/pkgdata.cpp
|
||||
+++ source/tools/pkgdata/pkgdata.cpp
|
||||
@@ -98,6 +98,7 @@
|
||||
#endif
|
||||
|
||||
#define LARGE_BUFFER_MAX_SIZE 2048
|
||||
+#define MEDIUM_BUFFER_MAX_SIZE 1024
|
||||
#define SMALL_BUFFER_MAX_SIZE 512
|
||||
|
||||
static void loadLists(UPKGOptions *o, UErrorCode *status);
|
||||
@@ -472,29 +473,48 @@
|
||||
}
|
||||
|
||||
static int runCommand(const char* command, UBool specialHandling) {
|
||||
- char cmd[SMALL_BUFFER_MAX_SIZE];
|
||||
+ char *cmd = NULL;
|
||||
+ char cmdBuffer[SMALL_BUFFER_MAX_SIZE];
|
||||
+ int32_t len = strlen(command);
|
||||
+
|
||||
+ if (len == 0) {
|
||||
+ return 0;
|
||||
+ }
|
||||
|
||||
if (!specialHandling) {
|
||||
+#if defined(USING_CYGWIN) || defined(OS400)
|
||||
+#define CMD_PADDING_SIZE 20
|
||||
+ if ((len + CMD_PADDING_SIZE) >= SMALL_BUFFER_MAX_SIZE) {
|
||||
+ cmd = (char *)uprv_malloc(len + CMD_PADDING_SIZE);
|
||||
+ } else {
|
||||
+ cmd = cmdBuffer;
|
||||
+ }
|
||||
#ifdef USING_CYGWIN
|
||||
sprintf(cmd, "bash -c \"%s\"", command);
|
||||
|
||||
#elif defined(OS400)
|
||||
sprintf(cmd, "QSH CMD('%s')", command);
|
||||
+#endif
|
||||
#else
|
||||
goto normal_command_mode;
|
||||
#endif
|
||||
} else {
|
||||
normal_command_mode:
|
||||
- sprintf(cmd, "%s", command);
|
||||
+ cmd = (char *)command;
|
||||
}
|
||||
-
|
||||
+
|
||||
printf("pkgdata: %s\n", cmd);
|
||||
int result = system(cmd);
|
||||
- if (result != 0) {
|
||||
- printf("-- return status = %d\n", result);
|
||||
+ if (result != 0) {
|
||||
+ printf("-- return status = %d\n", result);
|
||||
}
|
||||
- return result;
|
||||
-}
|
||||
+
|
||||
+ if (cmd != cmdBuffer && cmd != command) {
|
||||
+ uprv_free(cmd);
|
||||
+ }
|
||||
+
|
||||
+ return result;
|
||||
+}
|
||||
|
||||
#define LN_CMD "ln -s"
|
||||
#define RM_CMD "rm -f"
|
||||
@@ -586,7 +606,7 @@
|
||||
pkgDataFlags = (char**)uprv_malloc(sizeof(char*) * PKGDATA_FLAGS_SIZE);
|
||||
if (pkgDataFlags != NULL) {
|
||||
for (int32_t i = 0; i < PKGDATA_FLAGS_SIZE; i++) {
|
||||
- pkgDataFlags[i] = (char*)uprv_malloc(sizeof(char) * SMALL_BUFFER_MAX_SIZE);
|
||||
+ pkgDataFlags[i] = (char*)uprv_malloc(sizeof(char) * MEDIUM_BUFFER_MAX_SIZE);
|
||||
if (pkgDataFlags[i] != NULL) {
|
||||
pkgDataFlags[i][0] = 0;
|
||||
} else {
|
||||
32
dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch
Normal file
32
dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch
Normal file
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user