libxapian: Add package
[termux-packages] / packages / leptonica / silence-tmpfile-warnings.patch
CommitLineData
1afcecfc
FF
1diff -u -r ../leptonica-1.74.1/src/bmpio.c ./src/bmpio.c
2--- ../leptonica-1.74.1/src/bmpio.c 2016-12-02 20:42:42.000000000 +0100
3+++ ./src/bmpio.c 2017-01-29 22:11:16.268072245 +0100
4@@ -645,7 +645,6 @@
a663f779
FF
5 return ERROR_INT("stream not opened", procName, 1);
6 ret = pixWriteStreamBmp(fp, pix);
7 #else
1afcecfc
FF
8- L_INFO("work-around: writing to a temp file\n", procName);
9 #ifdef _WIN32
10 if ((fp = fopenWriteWinTempfile()) == NULL)
a663f779 11 return ERROR_INT("tmpfile stream not opened", procName, 1);
1afcecfc
FF
12diff -u -r ../leptonica-1.74.1/src/boxbasic.c ./src/boxbasic.c
13--- ../leptonica-1.74.1/src/boxbasic.c 2016-12-02 20:42:49.000000000 +0100
14+++ ./src/boxbasic.c 2017-01-29 22:11:16.276072146 +0100
15@@ -2066,7 +2066,6 @@
16 return ERROR_INT("stream not opened", procName, 1);
17 ret = boxaaWriteStream(fp, baa);
a663f779 18 #else
1afcecfc
FF
19- L_INFO("work-around: writing to a temp file\n", procName);
20 #ifdef _WIN32
21 if ((fp = fopenWriteWinTempfile()) == NULL)
22 return ERROR_INT("tmpfile stream not opened", procName, 1);
23@@ -2287,7 +2286,6 @@
a663f779 24 return ERROR_INT("stream not opened", procName, 1);
1afcecfc 25 ret = boxaWriteStream(fp, boxa);
a663f779 26 #else
1afcecfc
FF
27- L_INFO("work-around: writing to a temp file\n", procName);
28 #ifdef _WIN32
29 if ((fp = fopenWriteWinTempfile()) == NULL)
a663f779 30 return ERROR_INT("tmpfile stream not opened", procName, 1);
1afcecfc
FF
31diff -u -r ../leptonica-1.74.1/src/colormap.c ./src/colormap.c
32--- ../leptonica-1.74.1/src/colormap.c 2016-12-02 20:42:53.000000000 +0100
33+++ ./src/colormap.c 2017-01-29 22:11:16.316071650 +0100
34@@ -1715,7 +1715,6 @@
35 return ERROR_INT("stream not opened", procName, 1);
36 ret = pixcmapWriteStream(fp, cmap);
a663f779 37 #else
1afcecfc
FF
38- L_INFO("work-around: writing to a temp file\n", procName);
39 #ifdef _WIN32
40 if ((fp = fopenWriteWinTempfile()) == NULL)
41 return ERROR_INT("tmpfile stream not opened", procName, 1);
42diff -u -r ../leptonica-1.74.1/src/dewarp1.c ./src/dewarp1.c
43--- ../leptonica-1.74.1/src/dewarp1.c 2016-12-02 20:42:57.000000000 +0100
44+++ ./src/dewarp1.c 2017-01-29 22:11:16.352071204 +0100
45@@ -1401,7 +1401,6 @@
a663f779 46 return ERROR_INT("stream not opened", procName, 1);
1afcecfc 47 ret = dewarpWriteStream(fp, dew);
a663f779 48 #else
1afcecfc
FF
49- L_INFO("work-around: writing to a temp file\n", procName);
50 #ifdef _WIN32
51 if ((fp = fopenWriteWinTempfile()) == NULL)
a663f779 52 return ERROR_INT("tmpfile stream not opened", procName, 1);
1afcecfc 53@@ -1673,7 +1672,6 @@
a663f779 54 return ERROR_INT("stream not opened", procName, 1);
1afcecfc
FF
55 ret = dewarpaWriteStream(fp, dewa);
56 #else
57- L_INFO("work-around: writing to a temp file\n", procName);
58 #ifdef _WIN32
59 if ((fp = fopenWriteWinTempfile()) == NULL)
60 return ERROR_INT("tmpfile stream not opened", procName, 1);
61diff -u -r ../leptonica-1.74.1/src/fpix1.c ./src/fpix1.c
62--- ../leptonica-1.74.1/src/fpix1.c 2016-12-02 20:43:01.000000000 +0100
63+++ ./src/fpix1.c 2017-01-29 22:11:16.400070608 +0100
64@@ -1904,7 +1904,6 @@
65 return ERROR_INT("stream not opened", procName, 1);
66 ret = fpixWriteStream(fp, fpix);
67 #else
68- L_INFO("work-around: writing to a temp file\n", procName);
69 #ifdef _WIN32
70 if ((fp = fopenWriteWinTempfile()) == NULL)
71 return ERROR_INT("tmpfile stream not opened", procName, 1);
72@@ -2203,7 +2202,6 @@
73 return ERROR_INT("stream not opened", procName, 1);
74 ret = dpixWriteStream(fp, dpix);
a663f779 75 #else
1afcecfc
FF
76- L_INFO("work-around: writing to a temp file\n", procName);
77 #ifdef _WIN32
78 if ((fp = fopenWriteWinTempfile()) == NULL)
a663f779 79 return ERROR_INT("tmpfile stream not opened", procName, 1);
1afcecfc
FF
80diff -u -r ../leptonica-1.74.1/src/jp2kio.c ./src/jp2kio.c
81--- ../leptonica-1.74.1/src/jp2kio.c 2016-12-02 20:43:11.000000000 +0100
82+++ ./src/jp2kio.c 2017-01-29 22:11:16.424070311 +0100
83@@ -847,7 +847,6 @@
84 return ERROR_INT("stream not opened", procName, 1);
85 ret = pixWriteStreamJp2k(fp, pix, quality, nlevels, hint, debug);
86 #else
87- L_INFO("work-around: writing to a temp file\n", procName);
88 #ifdef _WIN32
89 if ((fp = fopenWriteWinTempfile()) == NULL)
90 return ERROR_INT("tmpfile stream not opened", procName, 1);
91diff -u -r ../leptonica-1.74.1/src/jpegio.c ./src/jpegio.c
92--- ../leptonica-1.74.1/src/jpegio.c 2016-12-02 20:43:18.000000000 +0100
93+++ ./src/jpegio.c 2017-01-29 22:11:16.428070261 +0100
94@@ -1091,7 +1091,6 @@
95 return ERROR_INT("stream not opened", procName, 1);
a663f779 96 ret = pixWriteStreamJpeg(fp, pix, quality, progressive);
1afcecfc
FF
97 #else
98- L_INFO("work-around: writing to a temp file\n", procName);
99 #ifdef _WIN32
100 if ((fp = fopenWriteWinTempfile()) == NULL)
101 return ERROR_INT("tmpfile stream not opened", procName, 1);
102diff -u -r ../leptonica-1.74.1/src/numabasic.c ./src/numabasic.c
103--- ../leptonica-1.74.1/src/numabasic.c 2016-12-02 20:43:25.000000000 +0100
104+++ ./src/numabasic.c 2017-01-29 22:11:16.444070062 +0100
105@@ -1276,7 +1276,6 @@
a663f779 106 return ERROR_INT("stream not opened", procName, 1);
1afcecfc 107 ret = numaWriteStream(fp, na);
a663f779 108 #else
1afcecfc
FF
109- L_INFO("work-around: writing to a temp file\n", procName);
110 #ifdef _WIN32
111 if ((fp = fopenWriteWinTempfile()) == NULL)
a663f779 112 return ERROR_INT("tmpfile stream not opened", procName, 1);
1afcecfc
FF
113@@ -1962,7 +1961,6 @@
114 return ERROR_INT("stream not opened", procName, 1);
115 ret = numaaWriteStream(fp, naa);
a663f779 116 #else
1afcecfc
FF
117- L_INFO("work-around: writing to a temp file\n", procName);
118 #ifdef _WIN32
119 if ((fp = fopenWriteWinTempfile()) == NULL)
120 return ERROR_INT("tmpfile stream not opened", procName, 1);
121diff -u -r ../leptonica-1.74.1/src/pixabasic.c ./src/pixabasic.c
122--- ../leptonica-1.74.1/src/pixabasic.c 2016-12-02 20:43:29.000000000 +0100
123+++ ./src/pixabasic.c 2017-01-29 22:11:16.488069517 +0100
124@@ -2626,7 +2626,6 @@
a663f779 125 return ERROR_INT("stream not opened", procName, 1);
1afcecfc 126 ret = pixaWriteStream(fp, pixa);
a663f779 127 #else
1afcecfc
FF
128- L_INFO("work-around: writing to a temp file\n", procName);
129 #ifdef _WIN32
130 if ((fp = fopenWriteWinTempfile()) == NULL)
a663f779 131 return ERROR_INT("tmpfile stream not opened", procName, 1);
1afcecfc 132@@ -2998,7 +2997,6 @@
a663f779 133 return ERROR_INT("stream not opened", procName, 1);
1afcecfc
FF
134 ret = pixaaWriteStream(fp, paa);
135 #else
136- L_INFO("work-around: writing to a temp file\n", procName);
137 #ifdef _WIN32
138 if ((fp = fopenWriteWinTempfile()) == NULL)
139 return ERROR_INT("tmpfile stream not opened", procName, 1);
140diff -u -r ../leptonica-1.74.1/src/pixcomp.c ./src/pixcomp.c
141--- ../leptonica-1.74.1/src/pixcomp.c 2016-12-02 20:43:33.000000000 +0100
142+++ ./src/pixcomp.c 2017-01-29 22:11:16.500069368 +0100
143@@ -1841,7 +1841,6 @@
144 return ERROR_INT("stream not opened", procName, 1);
145 ret = pixacompWriteStream(fp, pixac);
a663f779 146 #else
1afcecfc
FF
147- L_INFO("work-around: writing to a temp file\n", procName);
148 #ifdef _WIN32
149 if ((fp = fopenWriteWinTempfile()) == NULL)
a663f779 150 return ERROR_INT("tmpfile stream not opened", procName, 1);
1afcecfc
FF
151diff -u -r ../leptonica-1.74.1/src/pngio.c ./src/pngio.c
152--- ../leptonica-1.74.1/src/pngio.c 2016-12-02 20:43:37.000000000 +0100
153+++ ./src/pngio.c 2017-01-29 22:11:16.508069269 +0100
154@@ -1344,7 +1344,6 @@
155 return ERROR_INT("stream not opened", procName, 1);
156 ret = pixWriteStreamPng(fp, pix, gamma);
157 #else
158- L_INFO("work-around: writing to a temp file\n", procName);
159 #ifdef _WIN32
160 if ((fp = fopenWriteWinTempfile()) == NULL)
161 return ERROR_INT("tmpfile stream not opened", procName, 1);
162diff -u -r ../leptonica-1.74.1/src/pnmio.c ./src/pnmio.c
163--- ../leptonica-1.74.1/src/pnmio.c 2016-12-27 19:30:34.000000000 +0100
164+++ ./src/pnmio.c 2017-01-29 22:11:16.512069219 +0100
165@@ -1179,7 +1179,6 @@
166 return ERROR_INT("stream not opened", procName, 1);
a663f779 167 ret = pixWriteStreamPnm(fp, pix);
1afcecfc
FF
168 #else
169- L_INFO("work-around: writing to a temp file\n", procName);
170 #ifdef _WIN32
171 if ((fp = fopenWriteWinTempfile()) == NULL)
172 return ERROR_INT("tmpfile stream not opened", procName, 1);
173@@ -1234,7 +1233,6 @@
174 return ERROR_INT("stream not opened", procName, 1);
175 ret = pixWriteStreamPam(fp, pix);
176 #else
177- L_INFO("work-around: writing to a temp file\n", procName);
178 #ifdef _WIN32
179 if ((fp = fopenWriteWinTempfile()) == NULL)
180 return ERROR_INT("tmpfile stream not opened", procName, 1);
181diff -u -r ../leptonica-1.74.1/src/ptabasic.c ./src/ptabasic.c
182--- ../leptonica-1.74.1/src/ptabasic.c 2016-12-02 20:43:49.000000000 +0100
183+++ ./src/ptabasic.c 2017-01-29 22:11:16.520069120 +0100
184@@ -871,7 +871,6 @@
185 return ERROR_INT("stream not opened", procName, 1);
186 ret = ptaWriteStream(fp, pta, type);
187 #else
188- L_INFO("work-around: writing to a temp file\n", procName);
189 #ifdef _WIN32
190 if ((fp = fopenWriteWinTempfile()) == NULL)
191 return ERROR_INT("tmpfile stream not opened", procName, 1);
192@@ -1463,7 +1462,6 @@
193 return ERROR_INT("stream not opened", procName, 1);
194 ret = ptaaWriteStream(fp, ptaa, type);
195 #else
196- L_INFO("work-around: writing to a temp file\n", procName);
197 #ifdef _WIN32
198 if ((fp = fopenWriteWinTempfile()) == NULL)
199 return ERROR_INT("tmpfile stream not opened", procName, 1);
200diff -u -r ../leptonica-1.74.1/src/recogbasic.c ./src/recogbasic.c
201--- ../leptonica-1.74.1/src/recogbasic.c 2016-12-02 20:43:53.000000000 +0100
202+++ ./src/recogbasic.c 2017-01-29 22:11:16.532068971 +0100
203@@ -1306,7 +1306,6 @@
204 return ERROR_INT("stream not opened", procName, 1);
205 ret = recogaWriteStream(fp, recoga);
206 #else
207- L_INFO("work-around: writing to a temp file\n", procName);
208 #ifdef _WIN32
209 if ((fp = fopenWriteWinTempfile()) == NULL)
210 return ERROR_INT("tmpfile stream not opened", procName, 1);
211@@ -1608,7 +1607,6 @@
212 return ERROR_INT("stream not opened", procName, 1);
213 ret = recogWriteStream(fp, recog);
214 #else
215- L_INFO("work-around: writing to a temp file\n", procName);
216 #ifdef _WIN32
217 if ((fp = fopenWriteWinTempfile()) == NULL)
218 return ERROR_INT("tmpfile stream not opened", procName, 1);
219diff -u -r ../leptonica-1.74.1/src/sarray1.c ./src/sarray1.c
220--- ../leptonica-1.74.1/src/sarray1.c 2016-12-21 21:11:34.000000000 +0100
221+++ ./src/sarray1.c 2017-01-29 22:11:16.552068723 +0100
222@@ -1567,7 +1567,6 @@
223 return ERROR_INT("stream not opened", procName, 1);
224 ret = sarrayWriteStream(fp, sa);
225 #else
226- L_INFO("work-around: writing to a temp file\n", procName);
227 #ifdef _WIN32
228 if ((fp = fopenWriteWinTempfile()) == NULL)
229 return ERROR_INT("tmpfile stream not opened", procName, 1);
230diff -u -r ../leptonica-1.74.1/src/utils2.c ./src/utils2.c
231--- ../leptonica-1.74.1/src/utils2.c 2016-12-21 21:11:53.000000000 +0100
232+++ ./src/utils2.c 2017-01-29 22:11:16.584068326 +0100
233@@ -1635,7 +1635,6 @@
234 if ((fp = fmemopen((void *)data, size, "rb")) == NULL)
235 return (FILE *)ERROR_PTR("stream not opened", procName, NULL);
236 #else /* write to tmp file */
237- L_INFO("work-around: writing to a temp file\n", procName);
238 #ifdef _WIN32
239 if ((fp = fopenWriteWinTempfile()) == NULL)
240 return (FILE *)ERROR_PTR("tmpfile stream not opened", procName, NULL);