termux-packages/packages/leptonica/silence-tmpfile-warnings.patch

200 lines
9.0 KiB
Diff
Raw Normal View History

2017-01-29 22:15:58 +01:00
diff -u -r ../leptonica-1.74.1/src/boxbasic.c ./src/boxbasic.c
--- ../leptonica-1.74.1/src/boxbasic.c 2016-12-02 20:42:49.000000000 +0100
+++ ./src/boxbasic.c 2017-01-29 22:11:16.276072146 +0100
@@ -2066,7 +2066,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = boxaaWriteStream(fp, baa);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
@@ -2287,7 +2286,6 @@
return ERROR_INT("stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
ret = boxaWriteStream(fp, boxa);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
diff -u -r ../leptonica-1.74.1/src/colormap.c ./src/colormap.c
--- ../leptonica-1.74.1/src/colormap.c 2016-12-02 20:42:53.000000000 +0100
+++ ./src/colormap.c 2017-01-29 22:11:16.316071650 +0100
@@ -1715,7 +1715,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = pixcmapWriteStream(fp, cmap);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/dewarp1.c ./src/dewarp1.c
--- ../leptonica-1.74.1/src/dewarp1.c 2016-12-02 20:42:57.000000000 +0100
+++ ./src/dewarp1.c 2017-01-29 22:11:16.352071204 +0100
@@ -1401,7 +1401,6 @@
return ERROR_INT("stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
ret = dewarpWriteStream(fp, dew);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
@@ -1673,7 +1672,6 @@
return ERROR_INT("stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
ret = dewarpaWriteStream(fp, dewa);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/fpix1.c ./src/fpix1.c
--- ../leptonica-1.74.1/src/fpix1.c 2016-12-02 20:43:01.000000000 +0100
+++ ./src/fpix1.c 2017-01-29 22:11:16.400070608 +0100
@@ -1904,7 +1904,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = fpixWriteStream(fp, fpix);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
@@ -2203,7 +2202,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = dpixWriteStream(fp, dpix);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
diff -u -r ../leptonica-1.74.1/src/jp2kio.c ./src/jp2kio.c
--- ../leptonica-1.74.1/src/jp2kio.c 2016-12-02 20:43:11.000000000 +0100
+++ ./src/jp2kio.c 2017-01-29 22:11:16.424070311 +0100
@@ -847,7 +847,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = pixWriteStreamJp2k(fp, pix, quality, nlevels, hint, debug);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/jpegio.c ./src/jpegio.c
--- ../leptonica-1.74.1/src/jpegio.c 2016-12-02 20:43:18.000000000 +0100
+++ ./src/jpegio.c 2017-01-29 22:11:16.428070261 +0100
@@ -1091,7 +1091,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = pixWriteStreamJpeg(fp, pix, quality, progressive);
2017-01-29 22:15:58 +01:00
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/numabasic.c ./src/numabasic.c
--- ../leptonica-1.74.1/src/numabasic.c 2016-12-02 20:43:25.000000000 +0100
+++ ./src/numabasic.c 2017-01-29 22:11:16.444070062 +0100
@@ -1276,7 +1276,6 @@
return ERROR_INT("stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
ret = numaWriteStream(fp, na);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
@@ -1962,7 +1961,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = numaaWriteStream(fp, naa);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/pixabasic.c ./src/pixabasic.c
--- ../leptonica-1.74.1/src/pixabasic.c 2016-12-02 20:43:29.000000000 +0100
+++ ./src/pixabasic.c 2017-01-29 22:11:16.488069517 +0100
@@ -2626,7 +2626,6 @@
return ERROR_INT("stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
ret = pixaWriteStream(fp, pixa);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
@@ -2998,7 +2997,6 @@
return ERROR_INT("stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
ret = pixaaWriteStream(fp, paa);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/pixcomp.c ./src/pixcomp.c
--- ../leptonica-1.74.1/src/pixcomp.c 2016-12-02 20:43:33.000000000 +0100
+++ ./src/pixcomp.c 2017-01-29 22:11:16.500069368 +0100
@@ -1841,7 +1841,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = pixacompWriteStream(fp, pixac);
#else
2017-01-29 22:15:58 +01:00
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
2017-01-29 22:15:58 +01:00
diff -u -r ../leptonica-1.74.1/src/pnmio.c ./src/pnmio.c
--- ../leptonica-1.74.1/src/pnmio.c 2016-12-27 19:30:34.000000000 +0100
+++ ./src/pnmio.c 2017-01-29 22:11:16.512069219 +0100
@@ -1179,7 +1179,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = pixWriteStreamPnm(fp, pix);
2017-01-29 22:15:58 +01:00
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
@@ -1234,7 +1233,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = pixWriteStreamPam(fp, pix);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/ptabasic.c ./src/ptabasic.c
--- ../leptonica-1.74.1/src/ptabasic.c 2016-12-02 20:43:49.000000000 +0100
+++ ./src/ptabasic.c 2017-01-29 22:11:16.520069120 +0100
@@ -871,7 +871,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = ptaWriteStream(fp, pta, type);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
@@ -1463,7 +1462,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = ptaaWriteStream(fp, ptaa, type);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/sarray1.c ./src/sarray1.c
--- ../leptonica-1.74.1/src/sarray1.c 2016-12-21 21:11:34.000000000 +0100
+++ ./src/sarray1.c 2017-01-29 22:11:16.552068723 +0100
@@ -1567,7 +1567,6 @@
return ERROR_INT("stream not opened", procName, 1);
ret = sarrayWriteStream(fp, sa);
#else
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return ERROR_INT("tmpfile stream not opened", procName, 1);
diff -u -r ../leptonica-1.74.1/src/utils2.c ./src/utils2.c
--- ../leptonica-1.74.1/src/utils2.c 2016-12-21 21:11:53.000000000 +0100
+++ ./src/utils2.c 2017-01-29 22:11:16.584068326 +0100
@@ -1635,7 +1635,6 @@
if ((fp = fmemopen((void *)data, size, "rb")) == NULL)
return (FILE *)ERROR_PTR("stream not opened", procName, NULL);
#else /* write to tmp file */
- L_INFO("work-around: writing to a temp file\n", procName);
#ifdef _WIN32
if ((fp = fopenWriteWinTempfile()) == NULL)
return (FILE *)ERROR_PTR("tmpfile stream not opened", procName, NULL);