Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/texlive/2010/texlive-core: 090_all_icu_longflags.patch 090_all_xetex_math.patch 100_all_icu_longflags.patch series
Date: Wed, 06 Jul 2011 19:58:15
Message-Id: 20110706195804.6EEAF2004B@flycatcher.gentoo.org
1 aballier 11/07/06 19:58:04
2
3 Modified: series
4 Added: 090_all_xetex_math.patch
5 100_all_icu_longflags.patch
6 Removed: 090_all_icu_longflags.patch
7 Log:
8 lost this patch in the way due to a forgotten commit.......
9
10 Revision Changes Path
11 1.8 src/patchsets/texlive/2010/texlive-core/series
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2010/texlive-core/series?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2010/texlive-core/series?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2010/texlive-core/series?r1=1.7&r2=1.8
16
17 Index: series
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo/src/patchsets/texlive/2010/texlive-core/series,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- series 18 May 2011 18:14:40 -0000 1.7
24 +++ series 6 Jul 2011 19:58:04 -0000 1.8
25 @@ -3,4 +3,5 @@
26 050_all_icu_arm.patch
27 060_all_pdftex_libpng15.patch
28 080_all_a2ping_invocation.patch
29 -090_all_icu_longflags.patch
30 +090_all_xetex_math.patch
31 +100_all_icu_longflags.patch
32
33
34
35 1.1 src/patchsets/texlive/2010/texlive-core/090_all_xetex_math.patch
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2010/texlive-core/090_all_xetex_math.patch?rev=1.1&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2010/texlive-core/090_all_xetex_math.patch?rev=1.1&content-type=text/plain
39
40 Index: 090_all_xetex_math.patch
41 ===================================================================
42 https://bugs.gentoo.org/show_bug.cgi?id=356701
43 http://tug.org/pipermail/xetex/2011-January/019720.html
44 http://sourceforge.net/tracker/?func=detail&aid=3145819&group_id=194926&atid=951385
45
46 ---
47 \documentclass[a4paper,12pt]{article}
48 \usepackage{fontspec}
49 \usepackage{unicode-math}
50 \setmathfont{Asana Math}
51 \begin{document}
52 $\frac{2\pi r}{r} = 2\pi$
53 \end{document
54 ---
55
56 Index: texlive-20100722-source/texk/web2c/xetexdir/XeTeX_ext.h
57 ===================================================================
58 --- texlive-20100722-source.orig/texk/web2c/xetexdir/XeTeX_ext.h
59 +++ texlive-20100722-source/texk/web2c/xetexdir/XeTeX_ext.h
60 @@ -33,6 +33,7 @@ authorization from the copyright holders
61 #ifndef __XETEXEXT_H
62 #define __XETEXEXT_H
63
64 +#include <w2c/c-auto.h> /* needed for SIZEOF_LONG and NO_DUMP_SHARE */
65 /***** copied from TeX/texk/web2c/config.h -- difficult to include in C++ source files ******/
66 #ifndef INTEGER_TYPE
67
68
69
70
71 1.1 src/patchsets/texlive/2010/texlive-core/100_all_icu_longflags.patch
72
73 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2010/texlive-core/100_all_icu_longflags.patch?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2010/texlive-core/100_all_icu_longflags.patch?rev=1.1&content-type=text/plain
75
76 Index: 100_all_icu_longflags.patch
77 ===================================================================
78 https://bugs.gentoo.org/show_bug.cgi?id=349085
79 https://bugs.gentoo.org/show_bug.cgi?id=326021
80
81 Index: texlive-20100722-source/libs/icu/icu-4.4/tools/pkgdata/pkgdata.cpp
82 ===================================================================
83 --- texlive-20100722-source.orig/libs/icu/icu-4.4/tools/pkgdata/pkgdata.cpp
84 +++ texlive-20100722-source/libs/icu/icu-4.4/tools/pkgdata/pkgdata.cpp
85 @@ -561,12 +561,19 @@ static int32_t pkg_executeOptions(UPKGOp
86 char gencFilePath[SMALL_BUFFER_MAX_SIZE] = "";
87 char version_major[10] = "";
88 UBool reverseExt = FALSE;
89 + unsigned currentBufferSize = SMALL_BUFFER_MAX_SIZE;
90
91 /* Initialize pkgdataFlags */
92 pkgDataFlags = (char**)uprv_malloc(sizeof(char*) * PKGDATA_FLAGS_SIZE);
93 +#ifndef WINDOWS_WITH_MSVC
94 + /* If we run out of space, allocate more */
95 + do{
96 + status = U_ZERO_ERROR;
97 +#endif
98 +
99 if (pkgDataFlags != NULL) {
100 for (int32_t i = 0; i < PKGDATA_FLAGS_SIZE; i++) {
101 - pkgDataFlags[i] = (char*)uprv_malloc(sizeof(char) * SMALL_BUFFER_MAX_SIZE);
102 + pkgDataFlags[i] = (char*)uprv_malloc(sizeof(char) * currentBufferSize);
103 if (pkgDataFlags[i] != NULL) {
104 pkgDataFlags[i][0] = 0;
105 } else {
106 @@ -592,11 +599,18 @@ static int32_t pkg_executeOptions(UPKGOp
107 if(o->verbose) {
108 fprintf(stdout, "# Reading options file %s\n", o->options);
109 }
110 - parseFlagsFile(o->options, pkgDataFlags, SMALL_BUFFER_MAX_SIZE, (int32_t)PKGDATA_FLAGS_SIZE, &status);
111 + parseFlagsFile(o->options, pkgDataFlags, currentBufferSize, (int32_t)PKGDATA_FLAGS_SIZE, &status);
112 + if (status == U_BUFFER_OVERFLOW_ERROR) {
113 + for (int32_t i = 0; i < PKGDATA_FLAGS_SIZE; i++)
114 + uprv_free(pkgDataFlags[i]);
115 + currentBufferSize *= 2;
116 + }
117 + else
118 if (U_FAILURE(status)) {
119 fprintf(stderr,"Unable to open or read \"%s\" option file. status = %s\n", o->options, u_errorName(status));
120 return -1;
121 }
122 + } while (status == U_BUFFER_OVERFLOW_ERROR);
123
124 /* Get the version major number. */
125 if (o->version != NULL) {