1 |
commit: 2f0b759b1aa4bcea8226682f257cf77625db2667 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 16 07:45:09 2023 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 16 07:45:30 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f0b759b |
7 |
|
8 |
dev-tcltk/tkimg: fix line endings |
9 |
|
10 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
11 |
|
12 |
dev-tcltk/tkimg/files/tkimg-1.4.14-gcc11.patch | 98 +++++++++++++------------- |
13 |
dev-tcltk/tkimg/tkimg-1.4.14-r2.ebuild | 2 + |
14 |
2 files changed, 51 insertions(+), 49 deletions(-) |
15 |
|
16 |
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.14-gcc11.patch b/dev-tcltk/tkimg/files/tkimg-1.4.14-gcc11.patch |
17 |
index 6f9e575db2ac..9b889315efb3 100644 |
18 |
--- a/dev-tcltk/tkimg/files/tkimg-1.4.14-gcc11.patch |
19 |
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.14-gcc11.patch |
20 |
@@ -16,59 +16,59 @@ |
21 |
--- a/tiff/tiffZip.c 2023-03-14 19:04:42.869354563 +0100 |
22 |
+++ b/tiff/tiffZip.c 2023-03-14 19:05:14.768849607 +0100 |
23 |
@@ -22,6 +22,7 @@ |
24 |
- * OF THIS SOFTWARE. |
25 |
- */ |
26 |
- |
27 |
-+#include <stdint.h> |
28 |
- #include "tiffInt.h" |
29 |
- |
30 |
- /* |
31 |
+ * OF THIS SOFTWARE. |
32 |
+ */ |
33 |
+ |
34 |
++#include <stdint.h> |
35 |
+ #include "tiffInt.h" |
36 |
+ |
37 |
+ /* |
38 |
@@ -233,7 +234,7 @@ |
39 |
- we need to simplify this code to reflect a ZLib that is likely updated |
40 |
- to deal with 8byte memory sizes, though this code will respond |
41 |
- appropriately even before we simplify it */ |
42 |
-- sp->stream.avail_out = (uint64)tif->tif_rawdatasize <= 0xFFFFFFFFU ? (uInt)tif->tif_rawdatasize : 0xFFFFFFFFU; |
43 |
-+ sp->stream.avail_out = (uint64_t)tif->tif_rawdatasize <= 0xFFFFFFFFU ? (uInt)tif->tif_rawdatasize : 0xFFFFFFFFU; |
44 |
- return (deflateReset(&sp->stream) == Z_OK); |
45 |
- } |
46 |
- |
47 |
+ we need to simplify this code to reflect a ZLib that is likely updated |
48 |
+ to deal with 8byte memory sizes, though this code will respond |
49 |
+ appropriately even before we simplify it */ |
50 |
+- sp->stream.avail_out = (uint64)tif->tif_rawdatasize <= 0xFFFFFFFFU ? (uInt)tif->tif_rawdatasize : 0xFFFFFFFFU; |
51 |
++ sp->stream.avail_out = (uint64_t)tif->tif_rawdatasize <= 0xFFFFFFFFU ? (uInt)tif->tif_rawdatasize : 0xFFFFFFFFU; |
52 |
+ return (deflateReset(&sp->stream) == Z_OK); |
53 |
+ } |
54 |
+ |
55 |
--- a/tiff/tiffPixar.c 2023-03-14 20:52:33.865532115 +0100 |
56 |
+++ b/tiff/tiffPixar.c 2023-03-14 20:54:14.606973646 +0100 |
57 |
@@ -592,8 +592,8 @@ |
58 |
- #define DecoderState(tif) ((PixarLogState*) (tif)->tif_data) |
59 |
- #define EncoderState(tif) ((PixarLogState*) (tif)->tif_data) |
60 |
- |
61 |
--static int PixarLogEncode(TIFF* tif, uint8_t bp, tmsize_t cc, uint16_t s); |
62 |
--static int PixarLogDecode(TIFF* tif, uint8_t op, tmsize_t occ, uint16_t s); |
63 |
-+static int PixarLogEncode(TIFF* tif, uint8_t *bp, tmsize_t cc, uint16_t s); |
64 |
-+static int PixarLogDecode(TIFF* tif, uint8_t *op, tmsize_t occ, uint16_t s); |
65 |
- |
66 |
- #define PIXARLOGDATAFMT_UNKNOWN -1 |
67 |
- |
68 |
+ #define DecoderState(tif) ((PixarLogState*) (tif)->tif_data) |
69 |
+ #define EncoderState(tif) ((PixarLogState*) (tif)->tif_data) |
70 |
+ |
71 |
+-static int PixarLogEncode(TIFF* tif, uint8_t bp, tmsize_t cc, uint16_t s); |
72 |
+-static int PixarLogDecode(TIFF* tif, uint8_t op, tmsize_t occ, uint16_t s); |
73 |
++static int PixarLogEncode(TIFF* tif, uint8_t *bp, tmsize_t cc, uint16_t s); |
74 |
++static int PixarLogDecode(TIFF* tif, uint8_t *op, tmsize_t occ, uint16_t s); |
75 |
+ |
76 |
+ #define PIXARLOGDATAFMT_UNKNOWN -1 |
77 |
+ |
78 |
@@ -747,7 +747,7 @@ |
79 |
- } |
80 |
- |
81 |
- static int |
82 |
--PixarLogDecode(TIFF* tif, uint8_t op, tmsize_t occ, uint16_t s) |
83 |
-+PixarLogDecode(TIFF* tif, uint8_t *op, tmsize_t occ, uint16_t s) |
84 |
- { |
85 |
- static const char module[] = "PixarLogDecode"; |
86 |
- TIFFDirectory *td = &tif->tif_dir; |
87 |
+ } |
88 |
+ |
89 |
+ static int |
90 |
+-PixarLogDecode(TIFF* tif, uint8_t op, tmsize_t occ, uint16_t s) |
91 |
++PixarLogDecode(TIFF* tif, uint8_t *op, tmsize_t occ, uint16_t s) |
92 |
+ { |
93 |
+ static const char module[] = "PixarLogDecode"; |
94 |
+ TIFFDirectory *td = &tif->tif_dir; |
95 |
@@ -1111,7 +1111,7 @@ |
96 |
- * Encode a chunk of pixels. |
97 |
- */ |
98 |
- static int |
99 |
--PixarLogEncode(TIFF* tif, uint8_t bp, tmsize_t cc, uint16_t s) |
100 |
-+PixarLogEncode(TIFF* tif, uint8_t *bp, tmsize_t cc, uint16_t s) |
101 |
- { |
102 |
- static const char module[] = "PixarLogEncode"; |
103 |
- TIFFDirectory *td = &tif->tif_dir; |
104 |
+ * Encode a chunk of pixels. |
105 |
+ */ |
106 |
+ static int |
107 |
+-PixarLogEncode(TIFF* tif, uint8_t bp, tmsize_t cc, uint16_t s) |
108 |
++PixarLogEncode(TIFF* tif, uint8_t *bp, tmsize_t cc, uint16_t s) |
109 |
+ { |
110 |
+ static const char module[] = "PixarLogEncode"; |
111 |
+ TIFFDirectory *td = &tif->tif_dir; |
112 |
@@ -1411,7 +1411,7 @@ |
113 |
- /* |
114 |
- * Allocate state block so tag methods have storage to record values. |
115 |
- */ |
116 |
-- tif->tif_data = (uint8_t) TkimgTIFFmalloc(sizeof (PixarLogState)); |
117 |
-+ tif->tif_data = (uint8_t *) TkimgTIFFmalloc(sizeof (PixarLogState)); |
118 |
- if (tif->tif_data == NULL) |
119 |
- goto bad; |
120 |
- sp = (PixarLogState*) tif->tif_data; |
121 |
+ /* |
122 |
+ * Allocate state block so tag methods have storage to record values. |
123 |
+ */ |
124 |
+- tif->tif_data = (uint8_t) TkimgTIFFmalloc(sizeof (PixarLogState)); |
125 |
++ tif->tif_data = (uint8_t *) TkimgTIFFmalloc(sizeof (PixarLogState)); |
126 |
+ if (tif->tif_data == NULL) |
127 |
+ goto bad; |
128 |
+ sp = (PixarLogState*) tif->tif_data; |
129 |
|
130 |
diff --git a/dev-tcltk/tkimg/tkimg-1.4.14-r2.ebuild b/dev-tcltk/tkimg/tkimg-1.4.14-r2.ebuild |
131 |
index 904cc6621894..38c87072f7ed 100644 |
132 |
--- a/dev-tcltk/tkimg/tkimg-1.4.14-r2.ebuild |
133 |
+++ b/dev-tcltk/tkimg/tkimg-1.4.14-r2.ebuild |
134 |
@@ -51,6 +51,8 @@ src_prepare() { |
135 |
libjpeg/jpegtclDecls.h \ |
136 |
zlib/zlibtclDecls.h \ |
137 |
libpng/pngtclDecls.h \ |
138 |
+ tiff/tiffZip.c \ |
139 |
+ tiff/tiffPixar.c \ |
140 |
libtiff/tifftclDecls.h |
141 |
|
142 |
# libtiff unbundle is problematic |