Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/wcstools/files/
Date: Sat, 02 Sep 2017 15:10:41
Message-Id: 1504365027.d59f08766272e1c8488f8b361a1254ffbc8669a2.kensington@gentoo
1 commit: d59f08766272e1c8488f8b361a1254ffbc8669a2
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 16 12:23:03 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 2 15:10:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d59f0876
7
8 sci-astronomy/wcstools: remove unsued patches
9
10 .../files/wcstools-3.9.2-RASortStars.patch | 14 -----
11 ...cstools-3.9.2-additional_pointer_increase.patch | 14 -----
12 .../files/wcstools-3.9.2-compiler_warnings.patch | 13 ----
13 .../files/wcstools-3.9.2-ctype_copy_to_wcs.patch | 19 ------
14 .../wcstools/files/wcstools-3.9.2-mayhem.patch | 69 ----------------------
15 .../wcstools-3.9.2-off-by-one-allocation.patch | 15 -----
16 .../wcstools/files/wcstools-3.9.2-spelling.patch | 69 ----------------------
17 .../wcstools/files/wcstools-3.9.2-sprintf.patch | 36 -----------
18 .../wcstools/files/wcstools-3.9.2-use_abort.patch | 14 -----
19 .../files/wcstools-3.9.2-wcsinit_crash.patch | 20 -------
20 10 files changed, 283 deletions(-)
21
22 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-RASortStars.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-RASortStars.patch
23 deleted file mode 100644
24 index 27a912f5a90..00000000000
25 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-RASortStars.patch
26 +++ /dev/null
27 @@ -1,14 +0,0 @@
28 -Author: Ole Streicher <olebole@××××××.org>
29 -Description: Fix uninitialized value for haspm in RASortStars()
30 - This fixes a crash with 'imstar -s'.
31 ---- a/libwcs/sortstar.c
32 -+++ b/libwcs/sortstar.c
33 -@@ -417,6 +417,8 @@
34 - hasnum = 1;
35 - if (spra != NULL && spdec != NULL)
36 - haspm = 1;
37 -+ else
38 -+ haspm = 0;
39 - if (sx != NULL && sy != NULL)
40 - hasxy = 1;
41 - else
42
43 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-additional_pointer_increase.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-additional_pointer_increase.patch
44 deleted file mode 100644
45 index 7d61f8159b2..00000000000
46 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-additional_pointer_increase.patch
47 +++ /dev/null
48 @@ -1,14 +0,0 @@
49 -Author: Ole Streicher <olebole@××××××.org>
50 -Description: Fix duplicate pointer increase
51 - Otherwise, xborder1 may be zero, causing an illegal memory access later.
52 ---- a/libwcs/findstar.c
53 -+++ b/libwcs/findstar.c
54 -@@ -212,7 +212,7 @@
55 - tx1 = trimsec + 1;
56 - tx2 = strchr (trimsec, ':');
57 - *tx2 = (char) 0;
58 -- xborder1 = atoi (tx1+1);
59 -+ xborder1 = atoi (tx1);
60 - tx2 = tx2 + 1;
61 - tx3 = strchr (tx2, ',');
62 - *tx3 = (char) 0;
63
64 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch
65 deleted file mode 100644
66 index 57bb8cb9932..00000000000
67 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch
68 +++ /dev/null
69 @@ -1,13 +0,0 @@
70 -Author: Ole Streicher <debian@×××××××××.cx>
71 -Description: Fix some compiler warnings.
72 ---- a/imcat.c
73 -+++ b/imcat.c
74 -@@ -1778,7 +1778,7 @@
75 - if (refcat == UCAC2 || refcat == UCAC3 || refcat == UCAC4) {
76 - nim = gc[i] / 1000;
77 - nct = gc[i] % 1000;
78 -- sprintf (temp, " ni nc", nim, nct);
79 -+ sprintf (temp, " ni%i nc%i", nim, nct);
80 - strcat (headline, temp);
81 - }
82 - else if (gcset)
83
84 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-ctype_copy_to_wcs.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-ctype_copy_to_wcs.patch
85 deleted file mode 100644
86 index 63a47300e92..00000000000
87 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-ctype_copy_to_wcs.patch
88 +++ /dev/null
89 @@ -1,19 +0,0 @@
90 -Author: Ole Streicher <olebole@××××××.org>
91 -Description: Fix an off-by-one problem with strcpy
92 - Sometimes a string is copied with the length of 8 into an char array with a
93 - length of 8, as found in wcs.c, line 392: wcs->ptype is char[8], and ctype1
94 - may be "DEC--TAN". This will cause an overwriting of the next entry, or if
95 - this is protected (as in Debian) it will cause a crash.
96 ---- a/libwcs/wcs.c
97 -+++ b/libwcs/wcs.c
98 -@@ -388,8 +388,8 @@
99 - if (!strncmp (ctype1, "LONG",4))
100 - strncpy (ctype1, "XLON",4);
101 -
102 -- strcpy (wcs->ctype[0], ctype1);
103 -- strcpy (wcs->ptype, ctype1);
104 -+ strncpy (wcs->ctype[0], ctype1, 16);
105 -+ strncpy (wcs->ptype, ctype1, 8);
106 -
107 - /* Linear coordinates */
108 - if (!strncmp (ctype1,"LINEAR",6)) {
109
110 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-mayhem.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-mayhem.patch
111 deleted file mode 100644
112 index 694c0720ab9..00000000000
113 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-mayhem.patch
114 +++ /dev/null
115 @@ -1,69 +0,0 @@
116 -Author: Ole Streicher <debian@×××××××××.cx>
117 -Description: Fix several bugs that appear in during the mayhem tests.
118 -Bug: http://bugs.debian.org/715682
119 -Bug: http://bugs.debian.org/715755
120 -Bug: http://bugs.debian.org/715905
121 -Bug: http://bugs.debian.org/715956
122 -Bug: http://bugs.debian.org/715957
123 ---- a/getfits.c
124 -+++ b/getfits.c
125 -@@ -108,6 +108,7 @@
126 - usage ("Right ascension given but no declination");
127 - else {
128 - strcpy (rastr, *av);
129 -+ ac--;
130 - strcpy (decstr, *++av);
131 - ra0 = str2ra (rastr);
132 - dec0 = str2dec (decstr);
133 ---- a/getpix.c
134 -+++ b/getpix.c
135 -@@ -83,6 +83,7 @@
136 - char *crange; /* Column range string */
137 - char *rstr;
138 - char *dstr = NULL;
139 -+ char rastr[32], decstr[32];
140 - char *cstr;
141 - int systemp;
142 - int i;
143 ---- a/bincat.c
144 -+++ b/bincat.c
145 -@@ -156,7 +156,7 @@
146 - if (ac < 3)
147 - usage((char)0, "3 arguments needed for center coordinate");
148 - else {
149 -- strcpy (rastr, *++av);
150 -+ strcpy (rastr, *av);
151 - ac--;
152 - strcpy (decstr, *++av);
153 - setcenter (rastr, decstr);
154 ---- a/cphead.c
155 -+++ b/cphead.c
156 -@@ -137,7 +137,7 @@
157 - break;
158 -
159 - case 'w': /* Copy entire WCS */
160 -- nkwd1 = 87;
161 -+ nkwd1 = 236;
162 - if (nkwd + nkwd1 > maxnkwd) {
163 - maxnkwd = nkwd + nkwd1 + 32;
164 - kwdnew = (char **) calloc (maxnkwd, sizeof (void *));
165 -@@ -148,7 +148,7 @@
166 - free (kwd);
167 - kwd = kwdnew;
168 - }
169 -- for (ikwd = nkwd; i < nkwd+nkwd1; i++) {
170 -+ for (ikwd = nkwd; ikwd < nkwd+nkwd1+32; ikwd++) {
171 - kwd[ikwd] = (char *) calloc (32, 1);
172 - }
173 - strcpy (kwd[nkwd], "RA");
174 ---- a/filext.c
175 -+++ b/filext.c
176 -@@ -80,7 +80,7 @@
177 - ext = ext + 1;
178 - }
179 - }
180 -- printf ("%s\n", ext);
181 -+ printf ("%s\n", (ext)?ext:"");
182 - }
183 -
184 - return (0);
185
186 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-off-by-one-allocation.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-off-by-one-allocation.patch
187 deleted file mode 100644
188 index 4a9ee8041c8..00000000000
189 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-off-by-one-allocation.patch
190 +++ /dev/null
191 @@ -1,15 +0,0 @@
192 -Author: Ole Streicher <olebole@××××××.org>
193 -Description: Fix an off-by-one memory allocation problem
194 - in fitsfile.c, line 331, there is no space for a final '\0' byte
195 - allocated. However, there is one expected in ksearch() (hget.c, line 1203).
196 ---- a/libwcs/fitsfile.c
197 -+++ b/libwcs/fitsfile.c
198 -@@ -328,7 +328,7 @@
199 - nbprim = nrec * FITSBLOCK;
200 - headend = ksearch (header,"END");
201 - lprim = headend + 80 - header;
202 -- pheader = (char *) calloc ((unsigned int) nbprim, 1);
203 -+ pheader = (char *) calloc ((unsigned int) nbprim+1, 1);
204 - for (i = 0; i < lprim; i++)
205 - pheader[i] = header[i];
206 - for (i = lprim; i < nbprim; i++)
207
208 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-spelling.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-spelling.patch
209 deleted file mode 100644
210 index 7c666c1277b..00000000000
211 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-spelling.patch
212 +++ /dev/null
213 @@ -1,69 +0,0 @@
214 -Author: Ole Streicher <debian@×××××××××.cx>
215 -Description: Spellfixes to make lintian happy
216 ---- a/libwcs/fitsfile.c
217 -+++ b/libwcs/fitsfile.c
218 -@@ -1583,7 +1583,7 @@
219 - if (!access (filename, 0)) {
220 - fd = open (filename, O_WRONLY);
221 - if (fd < 3) {
222 -- snprintf (fitserrmsg,79, "FITSWIMAGE: file %s not writeable\n", filename);
223 -+ snprintf (fitserrmsg,79, "FITSWIMAGE: file %s not writable\n", filename);
224 - return (0);
225 - }
226 - }
227 -@@ -1622,7 +1622,7 @@
228 - if (!access (filename, 0)) {
229 - fd = open (filename, O_WRONLY);
230 - if (fd < 3) {
231 -- snprintf (fitserrmsg,79, "FITSWEXT: file %s not writeable\n",
232 -+ snprintf (fitserrmsg,79, "FITSWEXT: file %s not writable\n",
233 - filename);
234 - return (0);
235 - }
236 -@@ -1884,7 +1884,7 @@
237 - if (!access (filename, 0)) {
238 - fdout = open (filename, O_WRONLY);
239 - if (fdout < 3) {
240 -- snprintf (fitserrmsg,79, "FITSCIMAGE: file %s not writeable\n", filename);
241 -+ snprintf (fitserrmsg,79, "FITSCIMAGE: file %s not writable\n", filename);
242 - return (0);
243 - }
244 - }
245 -@@ -1970,7 +1970,7 @@
246 - if (!access (filename, 0)) {
247 - fd = open (filename, O_WRONLY);
248 - if (fd < 3) {
249 -- snprintf (fitserrmsg, 79, "FITSWHEAD: file %s not writeable\n", filename);
250 -+ snprintf (fitserrmsg, 79, "FITSWHEAD: file %s not writable\n", filename);
251 - return (0);
252 - }
253 - }
254 -@@ -2072,7 +2072,7 @@
255 - if (ext != NULL)
256 - *ext = cext;
257 - if (fd < 3) {
258 -- snprintf (fitserrmsg, 79, "FITSWEXHEAD: file %s not writeable\n", filename);
259 -+ snprintf (fitserrmsg, 79, "FITSWEXHEAD: file %s not writable\n", filename);
260 - return (-1);
261 - }
262 -
263 ---- a/libwcs/imhfile.c
264 -+++ b/libwcs/imhfile.c
265 -@@ -896,7 +896,7 @@
266 - if (!access (hdrname, 0)) {
267 - fd = open (hdrname, O_WRONLY);
268 - if (fd < 3) {
269 -- fprintf (stderr, "IRAFWIMAGE: file %s not writeable\n", hdrname);
270 -+ fprintf (stderr, "IRAFWIMAGE: file %s not writable\n", hdrname);
271 - return (0);
272 - }
273 - }
274 -@@ -993,7 +993,7 @@
275 - if (!access (pixname, 0)) {
276 - fd = open (pixname, O_WRONLY);
277 - if (fd < 3) {
278 -- fprintf (stderr, "IRAFWIMAGE: file %s not writeable\n", pixname);
279 -+ fprintf (stderr, "IRAFWIMAGE: file %s not writable\n", pixname);
280 - return (0);
281 - }
282 - }
283
284 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-sprintf.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-sprintf.patch
285 deleted file mode 100644
286 index 4ec5993cb5f..00000000000
287 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-sprintf.patch
288 +++ /dev/null
289 @@ -1,36 +0,0 @@
290 -Author: Ole Streicher <olebole@××××××.net>
291 -Description: Fix overlappong buffers in sprintf
292 - In sprintf, overlapping buffers lead to undefined behaviour.
293 - This causes different results on Debian and Ubuntu.
294 ---- a/imstar.c
295 -+++ b/imstar.c
296 -@@ -818,7 +818,7 @@
297 - sprintf (headline, "%7.2f %7.2f %6.2f %d",
298 - sx[i],sy[i],smag[i],sp[i]);
299 - if (iswcs (wcs))
300 -- sprintf (headline, "%s %s %s", headline, rastr, decstr);
301 -+ sprintf (headline + strlen(headline), " %s %s", rastr, decstr);
302 - if (wfile)
303 - fprintf (fd, "%s\n", headline);
304 - else
305 -@@ -827,14 +827,14 @@
306 - else {
307 - sprintf (headline, "%3d %s %s %6.2f", i+1,rastr,decstr,smag[i]);
308 - if (wcs->nxpix < 100.0 && wcs->nypix > 100.0)
309 -- sprintf (headline, "%s %5.2f %5.2f %d",
310 -- headline, sx[i],sy[i], sp[i]);
311 -+ sprintf (headline + strlen(headline), " %5.2f %5.2f %d",
312 -+ sx[i],sy[i], sp[i]);
313 - else if (wcs->nxpix < 1000.0 && wcs->nypix < 1000.0)
314 -- sprintf (headline, "%s %6.2f %6.2f %d",
315 -- headline, sx[i],sy[i], sp[i]);
316 -+ sprintf (headline + strlen(headline), " %6.2f %6.2f %d",
317 -+ sx[i],sy[i], sp[i]);
318 - else
319 -- sprintf (headline, "%s %7.2f %7.2f %d",
320 -- headline, sx[i],sy[i], sp[i]);
321 -+ sprintf (headline + strlen(headline), " %7.2f %7.2f %d",
322 -+ sx[i],sy[i], sp[i]);
323 - if (wfile)
324 - fprintf (fd, "%s\n", headline);
325 - else
326
327 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-use_abort.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-use_abort.patch
328 deleted file mode 100644
329 index 4ebc20609b6..00000000000
330 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-use_abort.patch
331 +++ /dev/null
332 @@ -1,14 +0,0 @@
333 -Author: Ole Streicher <debian@×××××××××.cx>
334 -Description: If a unrecoverable error occurred, abort() instead of exit()
335 - to allow the user for tracing the problem.
336 ---- a/libwcs/poly.c
337 -+++ b/libwcs/poly.c
338 -@@ -43,7 +43,7 @@
339 - void qerror(char *msg1, char *msg2)
340 - {
341 - fprintf(stderr, "\n> %s%s\n\n",msg1,msg2);
342 -- exit(-1);
343 -+ abort();
344 - }
345 -
346 -
347
348 diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch
349 deleted file mode 100644
350 index f8de3da5ad0..00000000000
351 --- a/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch
352 +++ /dev/null
353 @@ -1,20 +0,0 @@
354 -Author: Ole Streicher <olebole@××××××.net>
355 -Description: Increase c*type and ptype field string lengths
356 - This is needed to allow C1TYPE='RA---TAN-SIP'
357 -Bug: https://bugs.launchpad.net/ubuntu/+source/saods9/+bug/1458333
358 ---- a/libwcs/wcsinit.c
359 -+++ b/libwcs/wcsinit.c
360 -@@ -399,11 +399,11 @@
361 - }
362 -
363 - /* World coordinate system reference coordinate information */
364 -- if (hgetsc (hstring, "CTYPE1", &mchar, 16, ctype1)) {
365 -+ if (hgetsc (hstring, "CTYPE1", &mchar, 9, ctype1)) {
366 -
367 - /* Read second coordinate type */
368 - strcpy (ctype2, ctype1);
369 -- if (!hgetsc (hstring, "CTYPE2", &mchar, 16, ctype2))
370 -+ if (!hgetsc (hstring, "CTYPE2", &mchar, 9, ctype2))
371 - twod = 0;
372 - else
373 - twod = 1;