Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gegl/files/
Date: Thu, 22 Dec 2016 16:04:59
Message-Id: 1482422683.3374c119b39762e12d2bba4bb7e4b55075c459bf.kensington@gentoo
1 commit: 3374c119b39762e12d2bba4bb7e4b55075c459bf
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Dec 20 19:17:26 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 22 16:04:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3374c119
7
8 media-libs/gegl: remove unused patches
9
10 media-libs/gegl/files/0.1.6-ffmpeg.patch | 33 ----------
11 media-libs/gegl/files/gegl-0.0.22-locale_h.diff | 10 ---
12 .../files/gegl-0.1.8-cve-2012-4433-4757cdf7.patch | 74 ----------------------
13 media-libs/gegl/files/gegl-doubledestdir.diff | 12 ----
14 .../files/replace-imgconvert-by-swsscale.patch | 58 -----------------
15 5 files changed, 187 deletions(-)
16
17 diff --git a/media-libs/gegl/files/0.1.6-ffmpeg.patch b/media-libs/gegl/files/0.1.6-ffmpeg.patch
18 deleted file mode 100644
19 index 51fb95d..00000000
20 --- a/media-libs/gegl/files/0.1.6-ffmpeg.patch
21 +++ /dev/null
22 @@ -1,33 +0,0 @@
23 -diff -urN gegl-0.1.6.old//operations/external/ff-load.c gegl-0.1.6/operations/external/ff-load.c
24 ---- gegl-0.1.6.old//operations/external/ff-load.c 2011-01-24 19:03:30.000000000 -0300
25 -+++ gegl-0.1.6/operations/external/ff-load.c 2011-05-04 09:59:48.910379742 -0300
26 -@@ -69,17 +69,17 @@
27 - {
28 - switch (err)
29 - {
30 -- case AVERROR_NUMEXPECTED:
31 -+ case AVERROR(EDOM):
32 - g_warning ("%s: Incorrect image filename syntax.\n"
33 - "Use '%%d' to specify the image number:\n"
34 - " for img1.jpg, img2.jpg, ..., use 'img%%d.jpg';\n"
35 - " for img001.jpg, img002.jpg, ..., use 'img%%03d.jpg'.\n",
36 - filename);
37 - break;
38 -- case AVERROR_INVALIDDATA:
39 -+ case AVERROR(EINVAL):
40 - g_warning ("%s: Error while parsing header\n", filename);
41 - break;
42 -- case AVERROR_NOFMT:
43 -+ case AVERROR(EILSEQ):
44 - g_warning ("%s: Unknown format\n", filename);
45 - break;
46 - default:
47 -@@ -278,7 +278,7 @@
48 - for (i = 0; i< p->ic->nb_streams; i++)
49 - {
50 - AVCodecContext *c = p->ic->streams[i]->codec;
51 -- if (c->codec_type == CODEC_TYPE_VIDEO)
52 -+ if (c->codec_type == AVMEDIA_TYPE_VIDEO)
53 - {
54 - p->video_st = p->ic->streams[i];
55 - p->video_stream = i;
56
57 diff --git a/media-libs/gegl/files/gegl-0.0.22-locale_h.diff b/media-libs/gegl/files/gegl-0.0.22-locale_h.diff
58 deleted file mode 100644
59 index a4a9707..00000000
60 --- a/media-libs/gegl/files/gegl-0.0.22-locale_h.diff
61 +++ /dev/null
62 @@ -1,10 +0,0 @@
63 ---- gegl-0.0.22/gegl/gegl-init.c 2008-12-31 02:38:59.000000000 +0100
64 -+++ gegl-0.0.22-1/gegl/gegl-init.c 2009-01-14 22:21:41.000000000 +0100
65 -@@ -26,6 +26,7 @@
66 - #include <glib/gi18n-lib.h>
67 -
68 - #include <stdlib.h>
69 -+#include <locale.h>
70 - #ifdef HAVE_UNISTD_H
71 - #include <unistd.h>
72 - #endif
73
74 diff --git a/media-libs/gegl/files/gegl-0.1.8-cve-2012-4433-4757cdf7.patch b/media-libs/gegl/files/gegl-0.1.8-cve-2012-4433-4757cdf7.patch
75 deleted file mode 100644
76 index 7bda5b0..00000000
77 --- a/media-libs/gegl/files/gegl-0.1.8-cve-2012-4433-4757cdf7.patch
78 +++ /dev/null
79 @@ -1,74 +0,0 @@
80 -From 3d3b1559cb34bc862f145c9880d156f6f2fe7b5f Mon Sep 17 00:00:00 2001
81 -From: Sebastian Pipping <sebastian@×××××××.org>
82 -Date: Sat, 17 Nov 2012 16:22:21 +0100
83 -Subject: [PATCH] ppm-load: CVE-2012-4433: add plausibility checks for header
84 - fields
85 -
86 -"Port" of 4757cdf73d3675478d645a3ec8250ba02168a230 by Nils Philippsen from GEGL 0.2.0 to 0.1.8
87 ----
88 - operations/external/ppm-load.c | 33 ++++++++++++++++++++++++++++-----
89 - 1 file changed, 28 insertions(+), 5 deletions(-)
90 -
91 -diff --git a/operations/external/ppm-load.c b/operations/external/ppm-load.c
92 -index 6db6e5a..2d4f0ca 100644
93 ---- a/operations/external/ppm-load.c
94 -+++ b/operations/external/ppm-load.c
95 -@@ -36,6 +36,7 @@ gegl_chant_file_path (path, _("File"), "", _("Path of file to load."))
96 - #include "gegl-chant.h"
97 - #include <stdio.h>
98 - #include <stdlib.h>
99 -+#include <errno.h>
100 -
101 - typedef enum {
102 - PIXMAP_ASCII = 51,
103 -@@ -44,8 +45,8 @@ typedef enum {
104 -
105 - typedef struct {
106 - map_type type;
107 -- gint width;
108 -- gint height;
109 -+ glong width;
110 -+ glong height;
111 - gsize numsamples; /* width * height * channels */
112 - gsize bpc; /* bytes per channel */
113 - guchar *data;
114 -@@ -82,11 +83,33 @@ ppm_load_read_header(FILE *fp,
115 - }
116 -
117 - /* Get Width and Height */
118 -- img->width = strtol (header,&ptr,0);
119 -- img->height = atoi (ptr);
120 -+ errno = 0;
121 -+ img->width = strtol (header,&ptr,10);
122 -+ if (errno)
123 -+ {
124 -+ g_warning ("Error reading width: %s", strerror(errno));
125 -+ return FALSE;
126 -+ }
127 -+ else if (img->width < 0)
128 -+ {
129 -+ g_warning ("Error: width is negative");
130 -+ return FALSE;
131 -+ }
132 -+
133 -+ img->height = strtol (ptr,&ptr,10);
134 -+ if (errno)
135 -+ {
136 -+ g_warning ("Error reading height: %s", strerror(errno));
137 -+ return FALSE;
138 -+ }
139 -+ else if (img->width < 0)
140 -+ {
141 -+ g_warning ("Error: height is negative");
142 -+ return FALSE;
143 -+ }
144 -
145 - retval = fgets (header,MAX_CHARS_IN_ROW,fp);
146 -- maxval = strtol (header,&ptr,0);
147 -+ maxval = strtol (header,&ptr,10);
148 -
149 - if ((maxval != 255) && (maxval != 65535))
150 - {
151 ---
152 -1.7.12.4
153 -
154
155 diff --git a/media-libs/gegl/files/gegl-doubledestdir.diff b/media-libs/gegl/files/gegl-doubledestdir.diff
156 deleted file mode 100644
157 index 8a9bf33..00000000
158 --- a/media-libs/gegl/files/gegl-doubledestdir.diff
159 +++ /dev/null
160 @@ -1,12 +0,0 @@
161 -diff -Naur gegl-0.1.6/docs/Makefile.am gegl-0.1.6-1//docs/Makefile.am
162 ---- gegl-0.1.6/docs/Makefile.am 2010-10-08 18:51:41.000000000 +0200
163 -+++ gegl-0.1.6-1//docs/Makefile.am 2011-02-16 20:05:30.458043758 +0100
164 -@@ -6,7 +6,7 @@
165 - # is very small, and should probably be documented in a tutorial.
166 - #
167 -
168 --gtkdochtmldir = $(DESTDIR)$(datadir)/gtk-doc/html/gegl
169 -+gtkdochtmldir = $(datadir)/gtk-doc/html/gegl
170 -
171 - HTML_FILES = \
172 - operations.html \
173
174 diff --git a/media-libs/gegl/files/replace-imgconvert-by-swsscale.patch b/media-libs/gegl/files/replace-imgconvert-by-swsscale.patch
175 deleted file mode 100644
176 index 2cf5601..00000000
177 --- a/media-libs/gegl/files/replace-imgconvert-by-swsscale.patch
178 +++ /dev/null
179 @@ -1,58 +0,0 @@
180 -Index: gegl-0.0.22/operations/workshop/external/ff-save.c
181 -===================================================================
182 ---- gegl-0.0.22.orig/operations/workshop/external/ff-save.c
183 -+++ gegl-0.0.22/operations/workshop/external/ff-save.c
184 -@@ -19,6 +19,8 @@
185 - #include "config.h"
186 - #include <glib/gi18n-lib.h>
187 -
188 -+#include <libswscale/swscale.h>
189 -+
190 -
191 - #ifdef GEGL_CHANT_PROPERTIES
192 -
193 -@@ -640,6 +642,7 @@ write_video_frame (GeglChantO *op,
194 - int out_size, ret;
195 - AVCodecContext *c;
196 - AVFrame *picture_ptr;
197 -+ struct SwsContext *img_convert_ctx;
198 -
199 - c = st->codec;
200 -
201 -@@ -649,10 +652,22 @@ write_video_frame (GeglChantO *op,
202 - to the codec pixel format if needed */
203 - fill_yuv_image (op, p->tmp_picture, p->frame_count, c->width,
204 - c->height);
205 -- /* FIXME: img_convert is deprecated. Update code to use sws_scale(). */
206 -+ /* FIXME: img_convert is deprecated. Update code to use sws_scale().
207 - img_convert ((AVPicture *) p->picture, c->pix_fmt,
208 - (AVPicture *) p->tmp_picture, PIX_FMT_RGB24,
209 - c->width, c->height);
210 -+ */
211 -+ img_convert_ctx = sws_getContext(c->width, c->height, c->pix_fmt,
212 -+ c->width, c->height, PIX_FMT_RGB24,
213 -+ SWS_BICUBIC, NULL, NULL, NULL);
214 -+
215 -+ if (img_convert_ctx == NULL)
216 -+ fprintf(stderr, "ff_save: Cannot initialize conversion context.");
217 -+ else
218 -+ {
219 -+ sws_scale(img_convert_ctx, p->tmp_picture->data, p->tmp_picture->linesize,
220 -+ 0, c->height, p->picture->data, p->picture->linesize);
221 -+ }
222 - }
223 - else
224 - {
225 -Index: gegl-0.0.22/operations/workshop/external/Makefile.am
226 -===================================================================
227 ---- gegl-0.0.22.orig/operations/workshop/external/Makefile.am
228 -+++ gegl-0.0.22/operations/workshop/external/Makefile.am
229 -@@ -21,7 +21,7 @@ endif
230 - if HAVE_AVFORMAT
231 - ops += ff_save.la
232 - ff_save_la_SOURCES = ff-save.c
233 --ff_save_la_LIBADD = $(op_libs) $(AVFORMAT_LIBS)
234 -+ff_save_la_LIBADD = $(op_libs) $(AVFORMAT_LIBS) -lswscale
235 - ff_save_la_CFLAGS = $(AVFORMAT_CFLAGS)
236 - endif
237 -