1 |
commit: d1b1bca53fca7815fba48028f5c1eaa746b0908e |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 18 16:43:05 2023 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 16:43:05 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1b1bca5 |
7 |
|
8 |
media-libs/libextractor: treeclean |
9 |
|
10 |
Bug: https://bugs.gentoo.org/247394 |
11 |
Closes: https://bugs.gentoo.org/767247 |
12 |
Closes: https://bugs.gentoo.org/834382 |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
media-libs/libextractor/Manifest | 1 - |
16 |
.../files/libextractor-1.8-exiv2-0.27.patch | 127 --------------------- |
17 |
.../files/libextractor-1.9-CVE-2019-15531.patch | 15 --- |
18 |
media-libs/libextractor/libextractor-1.9-r5.ebuild | 118 ------------------- |
19 |
media-libs/libextractor/metadata.xml | 13 --- |
20 |
profiles/package.mask | 12 -- |
21 |
6 files changed, 286 deletions(-) |
22 |
|
23 |
diff --git a/media-libs/libextractor/Manifest b/media-libs/libextractor/Manifest |
24 |
deleted file mode 100644 |
25 |
index 0f0692e6fa95..000000000000 |
26 |
--- a/media-libs/libextractor/Manifest |
27 |
+++ /dev/null |
28 |
@@ -1 +0,0 @@ |
29 |
-DIST libextractor-1.9.tar.gz 8323852 BLAKE2B 71e81e57ce7857b7b7f0180a7b130b0808573d71384c61a1a079b0ce9c02bc4f1386d3b27c68d668b555a692e523a7998d6fbc675d15f8ee26b487b0b5b31927 SHA512 c2539b144d026fb0e871c5776aee4deaad4a987a730350744a7e5e74fbe98a4abb635dbe206b93c3aa9cd676b8797ea0b97271de0c903dfb035e245ab42ea149 |
30 |
|
31 |
diff --git a/media-libs/libextractor/files/libextractor-1.8-exiv2-0.27.patch b/media-libs/libextractor/files/libextractor-1.8-exiv2-0.27.patch |
32 |
deleted file mode 100644 |
33 |
index cfdb6426408d..000000000000 |
34 |
--- a/media-libs/libextractor/files/libextractor-1.8-exiv2-0.27.patch |
35 |
+++ /dev/null |
36 |
@@ -1,127 +0,0 @@ |
37 |
-From bbe21db4bf8face03adf0efd2eb18540582cb5ba Mon Sep 17 00:00:00 2001 |
38 |
-From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
39 |
-Date: Sun, 30 Dec 2018 00:46:57 +0100 |
40 |
-Subject: [PATCH] Fix build with exiv2-0.27 |
41 |
- |
42 |
---- |
43 |
- src/plugins/exiv2_extractor.cc | 35 +++++++++++++++++++++++++++------- |
44 |
- 1 file changed, 28 insertions(+), 7 deletions(-) |
45 |
- |
46 |
-diff --git a/src/plugins/exiv2_extractor.cc b/src/plugins/exiv2_extractor.cc |
47 |
-index 8741d40..ef402a8 100644 |
48 |
---- a/src/plugins/exiv2_extractor.cc |
49 |
-+++ b/src/plugins/exiv2_extractor.cc |
50 |
-@@ -27,10 +27,7 @@ |
51 |
- #include <cassert> |
52 |
- #include <cstring> |
53 |
- #include <math.h> |
54 |
--#include <exiv2/exif.hpp> |
55 |
--#include <exiv2/error.hpp> |
56 |
--#include <exiv2/image.hpp> |
57 |
--#include <exiv2/futils.hpp> |
58 |
-+#include <exiv2/exiv2.hpp> |
59 |
- |
60 |
- /** |
61 |
- * Enable debugging to get error messages. |
62 |
-@@ -180,7 +177,7 @@ public: |
63 |
- * |
64 |
- * @return -1 on error |
65 |
- */ |
66 |
--#if EXIV2_VERSION >= EXIV2_MAKE_VERSION(0,26,0) |
67 |
-+#if EXIV2_TEST_VERSION(0,26,0) |
68 |
- virtual size_t size (void) const; |
69 |
- #else |
70 |
- virtual long int size (void) const; |
71 |
-@@ -316,7 +313,11 @@ ExtractorIO::getb () |
72 |
- const unsigned char *r; |
73 |
- |
74 |
- if (1 != ec->read (ec->cls, &data, 1)) |
75 |
-+#if EXIV2_TEST_VERSION(0,27,0) |
76 |
-+ throw Exiv2::BasicError<char> (Exiv2::kerDecodeLangAltQualifierFailed); |
77 |
-+#else |
78 |
- throw Exiv2::BasicError<char> (42 /* error code */); |
79 |
-+#endif |
80 |
- r = (const unsigned char *) data; |
81 |
- return *r; |
82 |
- } |
83 |
-@@ -371,7 +372,11 @@ ExtractorIO::putb (Exiv2::byte data) |
84 |
- void |
85 |
- ExtractorIO::transfer (Exiv2::BasicIo& src) |
86 |
- { |
87 |
-+#if EXIV2_TEST_VERSION(0,27,0) |
88 |
-+ throw Exiv2::BasicError<char> (Exiv2::kerDecodeLangAltQualifierFailed); |
89 |
-+#else |
90 |
- throw Exiv2::BasicError<char> (42 /* error code */); |
91 |
-+#endif |
92 |
- } |
93 |
- |
94 |
- |
95 |
-@@ -416,7 +421,11 @@ ExtractorIO::seek (long offset, |
96 |
- Exiv2::byte * |
97 |
- ExtractorIO::mmap (bool isWritable) |
98 |
- { |
99 |
-+#if EXIV2_TEST_VERSION(0,27,0) |
100 |
-+ throw Exiv2::BasicError<char> (Exiv2::kerDecodeLangAltQualifierFailed); |
101 |
-+#else |
102 |
- throw Exiv2::BasicError<char> (42 /* error code */); |
103 |
-+#endif |
104 |
- } |
105 |
- |
106 |
- |
107 |
-@@ -449,7 +458,7 @@ ExtractorIO::tell (void) const |
108 |
- * |
109 |
- * @return -1 on error |
110 |
- */ |
111 |
--#if EXIV2_VERSION >= EXIV2_MAKE_VERSION(0,26,0) |
112 |
-+#if EXIV2_TEST_VERSION(0,26,0) |
113 |
- size_t |
114 |
- #else |
115 |
- long int |
116 |
-@@ -504,7 +513,11 @@ ExtractorIO::eof () const |
117 |
- std::string |
118 |
- ExtractorIO::path () const |
119 |
- { |
120 |
-+#if EXIV2_TEST_VERSION(0,27,0) |
121 |
-+ throw Exiv2::BasicError<char> (Exiv2::kerDecodeLangAltQualifierFailed); |
122 |
-+#else |
123 |
- throw Exiv2::BasicError<char> (42 /* error code */); |
124 |
-+#endif |
125 |
- } |
126 |
- |
127 |
- |
128 |
-@@ -517,7 +530,11 @@ ExtractorIO::path () const |
129 |
- std::wstring |
130 |
- ExtractorIO::wpath () const |
131 |
- { |
132 |
-+#if EXIV2_TEST_VERSION(0,27,0) |
133 |
-+ throw Exiv2::BasicError<char> (Exiv2::kerDecodeLangAltQualifierFailed); |
134 |
-+#else |
135 |
- throw Exiv2::BasicError<char> (42 /* error code */); |
136 |
-+#endif |
137 |
- } |
138 |
- #endif |
139 |
- |
140 |
-@@ -531,7 +548,11 @@ Exiv2::BasicIo::AutoPtr |
141 |
- ExtractorIO::temporary () const |
142 |
- { |
143 |
- fprintf (stderr, "throwing temporary error\n"); |
144 |
-+#if EXIV2_TEST_VERSION(0,27,0) |
145 |
-+ throw Exiv2::BasicError<char> (Exiv2::kerDecodeLangAltQualifierFailed); |
146 |
-+#else |
147 |
- throw Exiv2::BasicError<char> (42 /* error code */); |
148 |
-+#endif |
149 |
- } |
150 |
- |
151 |
- |
152 |
-@@ -697,7 +718,7 @@ EXTRACTOR_exiv2_extract_method (struct EXTRACTOR_ExtractContext *ec) |
153 |
- { |
154 |
- try |
155 |
- { |
156 |
--#if EXIV2_MAKE_VERSION(0,23,0) <= EXIV2_VERSION |
157 |
-+#if !EXIV2_TEST_VERSION(0,24,0) |
158 |
- Exiv2::LogMsg::setLevel (Exiv2::LogMsg::mute); |
159 |
- #endif |
160 |
- std::auto_ptr<Exiv2::BasicIo> eio(new ExtractorIO (ec)); |
161 |
--- |
162 |
-2.20.1 |
163 |
- |
164 |
|
165 |
diff --git a/media-libs/libextractor/files/libextractor-1.9-CVE-2019-15531.patch b/media-libs/libextractor/files/libextractor-1.9-CVE-2019-15531.patch |
166 |
deleted file mode 100644 |
167 |
index 11344d3946af..000000000000 |
168 |
--- a/media-libs/libextractor/files/libextractor-1.9-CVE-2019-15531.patch |
169 |
+++ /dev/null |
170 |
@@ -1,15 +0,0 @@ |
171 |
-Description: fix heap-based buffer over-read. |
172 |
-Origin: upstream, commit: d2b032452241708bee68d02aa02092cfbfba951a |
173 |
-Author: Christian Grothoff <christian@××××××××.org> |
174 |
- |
175 |
---- a/src/plugins/dvi_extractor.c |
176 |
-+++ b/src/plugins/dvi_extractor.c |
177 |
-@@ -182,6 +182,8 @@ |
178 |
- size = ec->get_size (ec->cls); |
179 |
- if (size > 16 * 1024 * 1024) |
180 |
- return; /* too large */ |
181 |
-+ if (klen + 15 > size) |
182 |
-+ return; /* malformed klen */ |
183 |
- if (NULL == (data = malloc ((size_t) size))) |
184 |
- return; /* out of memory */ |
185 |
- memcpy (data, buf, iret); |
186 |
|
187 |
diff --git a/media-libs/libextractor/libextractor-1.9-r5.ebuild b/media-libs/libextractor/libextractor-1.9-r5.ebuild |
188 |
deleted file mode 100644 |
189 |
index 6645ffc5cc52..000000000000 |
190 |
--- a/media-libs/libextractor/libextractor-1.9-r5.ebuild |
191 |
+++ /dev/null |
192 |
@@ -1,118 +0,0 @@ |
193 |
-# Copyright 1999-2022 Gentoo Authors |
194 |
-# Distributed under the terms of the GNU General Public License v2 |
195 |
- |
196 |
-EAPI=7 |
197 |
- |
198 |
-DESCRIPTION="Library to extract metadata from files of arbitrary type" |
199 |
-HOMEPAGE="https://www.gnu.org/software/libextractor/" |
200 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
201 |
- |
202 |
-LICENSE="GPL-3" |
203 |
-SLOT="0" |
204 |
-KEYWORDS="amd64 ~arm ppc ppc64 x86" |
205 |
-IUSE="apparmor +archive +bzip2 ffmpeg flac gif gsf gstreamer gtk jpeg +magic midi mp4 mpeg tidy tiff vorbis +zlib" # test |
206 |
- |
207 |
-RESTRICT="test" |
208 |
- |
209 |
-DEPEND=" |
210 |
- app-text/iso-codes |
211 |
- dev-libs/glib:2 |
212 |
- media-gfx/exiv2:= |
213 |
- sys-devel/libtool |
214 |
- virtual/libiconv |
215 |
- virtual/libintl |
216 |
- apparmor? ( sys-libs/libapparmor ) |
217 |
- archive? ( app-arch/libarchive:= ) |
218 |
- bzip2? ( app-arch/bzip2 ) |
219 |
- ffmpeg? ( media-video/ffmpeg:= ) |
220 |
- flac? ( |
221 |
- media-libs/flac:= |
222 |
- media-libs/libogg |
223 |
- ) |
224 |
- gif? ( media-libs/giflib:= ) |
225 |
- gsf? ( gnome-extra/libgsf:= ) |
226 |
- gstreamer? ( |
227 |
- media-libs/gstreamer:1.0 |
228 |
- media-libs/gst-plugins-base:1.0 |
229 |
- ) |
230 |
- gtk? ( x11-libs/gtk+:3 ) |
231 |
- jpeg? ( media-libs/libjpeg-turbo:= ) |
232 |
- magic? ( sys-apps/file ) |
233 |
- midi? ( media-libs/libsmf ) |
234 |
- mp4? ( media-libs/libmp4v2 ) |
235 |
- mpeg? ( media-libs/libmpeg2 ) |
236 |
- tidy? ( >=app-text/htmltidy-5.0.0 ) |
237 |
- tiff? ( media-libs/tiff:= ) |
238 |
- vorbis? ( |
239 |
- media-libs/libogg |
240 |
- media-libs/libvorbis |
241 |
- ) |
242 |
- zlib? ( sys-libs/zlib ) |
243 |
-" |
244 |
-BDEPEND=" |
245 |
- sys-devel/gettext |
246 |
- virtual/pkgconfig |
247 |
-" |
248 |
-# test? ( app-forensics/zzuf ) |
249 |
-RDEPEND="${DEPEND} |
250 |
- !sci-biology/glimmer |
251 |
-" |
252 |
- |
253 |
-PATCHES=( |
254 |
- "${FILESDIR}"/${PN}-1.8-exiv2-0.27.patch # bug #674046 |
255 |
- "${FILESDIR}"/${P}-CVE-2019-15531.patch |
256 |
-) |
257 |
- |
258 |
-src_prepare() { |
259 |
- default |
260 |
- |
261 |
- # m4/ax_create_pkgconfig_info.m4 is passing environment LDFLAGS to Libs: |
262 |
- sed -i \ |
263 |
- -e '/^ax_create_pkgconfig_ldflags=/s:$LDFLAGS ::' \ |
264 |
- configure src/plugins/html_extractor.c || die |
265 |
- |
266 |
- if ! use tidy; then |
267 |
- sed -i -e 's:tidy.h:dIsAbLe&:' configure || die |
268 |
- fi |
269 |
-} |
270 |
- |
271 |
-src_configure() { |
272 |
- e_ac_cv() { |
273 |
- export ac_cv_"$@" |
274 |
- } |
275 |
- |
276 |
- e_ac_cv {lib_rpm_rpmReadPackageFile,prog_HAVE_ZZUF}=no |
277 |
- |
278 |
- e_ac_cv header_FLAC_all_h=$(usex flac) |
279 |
- e_ac_cv lib_FLAC_FLAC__stream_decoder_init_stream=$(usex flac) |
280 |
- e_ac_cv lib_FLAC_FLAC__stream_decoder_init_ogg_stream=$(usex flac) |
281 |
- |
282 |
- e_ac_cv header_sys_apparmor_h=$(usex apparmor) |
283 |
- e_ac_cv header_archive_h=$(usex archive) |
284 |
- e_ac_cv header_bzlib_h=$(usex bzip2) |
285 |
- e_ac_cv header_gif_lib_h=$(usex gif) |
286 |
- e_ac_cv header_jpeglib_h=$(usex jpeg) |
287 |
- e_ac_cv header_magic_h=$(usex magic) |
288 |
- e_ac_cv header_mpeg2dec_mpeg2_h=$(usex mpeg) |
289 |
- e_ac_cv header_tiffio_h=$(usex tiff) |
290 |
- e_ac_cv header_vorbis_vorbisfile_h=$(usex vorbis) |
291 |
- e_ac_cv header_zlib_h=$(usex zlib) |
292 |
- e_ac_cv lib_mp4v2_MP4ReadProvider=$(usex mp4) |
293 |
- e_ac_cv lib_smf_smf_load_from_memory=$(usex midi) |
294 |
- |
295 |
- local myeconfargs=( |
296 |
- --disable-static |
297 |
- --enable-experimental |
298 |
- --enable-glib |
299 |
- --disable-gsf-gnome |
300 |
- $(use_enable ffmpeg) |
301 |
- $(use_enable gsf) |
302 |
- $(use_with gstreamer) |
303 |
- ) |
304 |
- econf "${myeconfargs[@]}" |
305 |
-} |
306 |
- |
307 |
-src_install() { |
308 |
- default |
309 |
- find "${ED}" -name '*.la' -delete || die |
310 |
-} |
311 |
|
312 |
diff --git a/media-libs/libextractor/metadata.xml b/media-libs/libextractor/metadata.xml |
313 |
deleted file mode 100644 |
314 |
index 88d3c6282813..000000000000 |
315 |
--- a/media-libs/libextractor/metadata.xml |
316 |
+++ /dev/null |
317 |
@@ -1,13 +0,0 @@ |
318 |
-<?xml version="1.0" encoding="UTF-8"?> |
319 |
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
320 |
-<pkgmetadata> |
321 |
- <!--maintainer-needed--> |
322 |
- <use> |
323 |
- <flag name="archive">Enable archive support using <pkg>app-arch/libarchive</pkg></flag> |
324 |
- <flag name="gsf">Enable OLE2 (MS Office) plug-in support using <pkg>gnome-extra/libgsf</pkg></flag> |
325 |
- <flag name="midi">Enable MIDI support through <pkg>media-libs/libsmf</pkg></flag> |
326 |
- </use> |
327 |
- <upstream> |
328 |
- <remote-id type="savannah">libextractor</remote-id> |
329 |
- </upstream> |
330 |
-</pkgmetadata> |
331 |
|
332 |
diff --git a/profiles/package.mask b/profiles/package.mask |
333 |
index 4e15e72ac0e4..bc3ce1396cd7 100644 |
334 |
--- a/profiles/package.mask |
335 |
+++ b/profiles/package.mask |
336 |
@@ -293,18 +293,6 @@ acct-group/jabber |
337 |
# lead to build failures. |
338 |
=app-eselect/eselect-wxwidgets-20230114 |
339 |
|
340 |
-# Michał Górny <mgorny@g.o> (2023-01-21) |
341 |
-# Packages that are incompatible with ffmpeg-5. |
342 |
-# |
343 |
-# media-libs/libextractor: no Gentoo maintainer, ver from 2019, bug #834382 |
344 |
-# media-libs/qtav: no Gentoo maintainer, no porting progress, bug #834386 |
345 |
-# media-plugins/vdr-vaapidevice: no activity since 2019, bug #834390 |
346 |
-# media-sound/potamus: last rel. 2018, one commit in 2020, bug #834396 |
347 |
-# media-video/ffmpeg2theora: no activity since 2016, bug #834403 |
348 |
-# |
349 |
-# Removal on 2023-02-20. |
350 |
-media-libs/libextractor |
351 |
- |
352 |
# David Seifert <soap@g.o> (2023-01-14) |
353 |
# Py3.8 only backports |
354 |
dev-python/backports-tempfile |