Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/qtav/files/, media-libs/qtav/, profiles/
Date: Sat, 18 Mar 2023 16:45:37
Message-Id: 1679157784.506c569b5dd51f8a925b9492c2d96e81567b0abf.soap@gentoo
1 commit: 506c569b5dd51f8a925b9492c2d96e81567b0abf
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 18 16:43:04 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 18 16:43:04 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=506c569b
7
8 media-libs/qtav: treeclean
9
10 Closes: https://bugs.gentoo.org/758641
11 Closes: https://bugs.gentoo.org/834386
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 media-libs/qtav/Manifest | 2 -
15 media-libs/qtav/files/qtav-1.12.0-ffmpeg4-1.patch | 36 -------
16 media-libs/qtav/files/qtav-1.12.0-ffmpeg4-2.patch | 119 ---------------------
17 .../qtav/files/qtav-1.12.0-installpaths.patch | 17 ---
18 media-libs/qtav/files/qtav-1.12.0-qt5.14.patch | 12 ---
19 media-libs/qtav/files/qtav-1.12.0-qt5.15.patch | 22 ----
20 media-libs/qtav/metadata.xml | 11 --
21 media-libs/qtav/qtav-1.12.0-r3.ebuild | 68 ------------
22 profiles/package.mask | 1 -
23 9 files changed, 288 deletions(-)
24
25 diff --git a/media-libs/qtav/Manifest b/media-libs/qtav/Manifest
26 deleted file mode 100644
27 index d669b6b80ea6..000000000000
28 --- a/media-libs/qtav/Manifest
29 +++ /dev/null
30 @@ -1,2 +0,0 @@
31 -DIST qtav-1.12.0-capi.h-b43aa93.xz 6120 BLAKE2B b2aca6c4ae70e227728bf908a7b5b9ad9fcb4ba52a254362eaaefaa9480c6a1c551bf47f02f8a44273952bf2816d2dbc7dc92142264892547d4fe602184b5fba SHA512 f5e458b157a5f343bc5d4133cfe45ffefb5c6cbb902b41ae6b9d9349e31ca7ac5a2746addc4fef89fb74856f5db7691cf174d82e88b51cc0b7a356c4fdab5aa7
32 -DIST qtav-1.12.0.tar.gz 998117 BLAKE2B 85f8a470333e683353c305b06cec10f65b553c26b05fad4824d8f05f6aeb1fc2622ab8b60ba42a35260402a950bf41458e90342be6c53cbdb8400642c2d09741 SHA512 f273d10a4fe9126cd7d7b1293c087527bf898513e8add7958d905b6039b0c9c3891ea751c40e4c13ba683febff73912322953b151a131726ef8b44db199e0f32
33
34 diff --git a/media-libs/qtav/files/qtav-1.12.0-ffmpeg4-1.patch b/media-libs/qtav/files/qtav-1.12.0-ffmpeg4-1.patch
35 deleted file mode 100644
36 index cb77e9adebb2..000000000000
37 --- a/media-libs/qtav/files/qtav-1.12.0-ffmpeg4-1.patch
38 +++ /dev/null
39 @@ -1,36 +0,0 @@
40 -From 1633f2962e195eb2a013072e694a2e1c701613a8 Mon Sep 17 00:00:00 2001
41 -From: 0xFelix <evostar@×××.de>
42 -Date: Tue, 12 Dec 2017 13:24:34 +0100
43 -Subject: [PATCH] Remove usage of deprecated avfiltergraph.h header
44 -
45 -avfiltergraph.h was replaced by avfilter.h in libavfilter version
46 -3.8.0+ so only include it when the used libavfilter version
47 -is older than 3.8.0
48 ----
49 - src/QtAV/private/AVCompat.h | 4 ++++
50 - 1 file changed, 4 insertions(+)
51 -
52 -diff --git a/src/QtAV/private/AVCompat.h b/src/QtAV/private/AVCompat.h
53 -index 6c38596d1..944cfd7de 100644
54 ---- a/src/QtAV/private/AVCompat.h
55 -+++ b/src/QtAV/private/AVCompat.h
56 -@@ -59,6 +59,7 @@ extern "C"
57 - #include <libavutil/parseutils.h>
58 - #include <libavutil/pixdesc.h>
59 - #include <libavutil/avstring.h>
60 -+#include <libavfilter/version.h>
61 -
62 - #if !FFMPEG_MODULE_CHECK(LIBAVUTIL, 51, 73, 101)
63 - #include <libavutil/channel_layout.h>
64 -@@ -79,8 +80,11 @@ extern "C"
65 - #endif //QTAV_HAVE(AVRESAMPLE)
66 -
67 - #if QTAV_HAVE(AVFILTER)
68 -+#if LIBAVFILTER_VERSION_INT < AV_VERSION_INT(3,8,0)
69 - #include <libavfilter/avfiltergraph.h> /*code is here for old version*/
70 -+#else
71 - #include <libavfilter/avfilter.h>
72 -+#endif
73 - #include <libavfilter/buffersink.h>
74 - #include <libavfilter/buffersrc.h>
75 - #endif //QTAV_HAVE(AVFILTER)
76
77 diff --git a/media-libs/qtav/files/qtav-1.12.0-ffmpeg4-2.patch b/media-libs/qtav/files/qtav-1.12.0-ffmpeg4-2.patch
78 deleted file mode 100644
79 index 1f78acfde491..000000000000
80 --- a/media-libs/qtav/files/qtav-1.12.0-ffmpeg4-2.patch
81 +++ /dev/null
82 @@ -1,119 +0,0 @@
83 -From 7f6929b49c25ca475a08f87e8b52aa1642d109dd Mon Sep 17 00:00:00 2001
84 -From: Felix Matouschek <felix@××××××××××.org>
85 -Date: Sat, 11 Nov 2017 10:13:06 +0100
86 -Subject: [PATCH] Make QtAV build with newer versions of FFmpeg
87 -
88 -Some defines changed their name in newer versions of FFmpeg, this
89 -patch uses preprocessor instructions in AVCompat.h to use the
90 -correct define names. Also filter names retrieved by
91 -'avfilter_get_by_name' should be used as const variables in
92 -libavfilter versions starting at 7.0.0.
93 ----
94 - src/AVMuxer.cpp | 2 +-
95 - src/QtAV/private/AVCompat.h | 12 ++++++++++++
96 - src/codec/audio/AudioEncoderFFmpeg.cpp | 4 ++--
97 - src/codec/video/VideoEncoderFFmpeg.cpp | 2 +-
98 - src/filter/LibAVFilter.cpp | 8 +++++++-
99 - src/subtitle/SubtitleProcessorFFmpeg.cpp | 2 +-
100 - 6 files changed, 24 insertions(+), 6 deletions(-)
101 -
102 -diff --git a/src/AVMuxer.cpp b/src/AVMuxer.cpp
103 -index 2f0b40d05..d2eb3dde8 100644
104 ---- a/src/AVMuxer.cpp
105 -+++ b/src/AVMuxer.cpp
106 -@@ -124,7 +124,7 @@ AVStream *AVMuxer::Private::addStream(AVFormatContext* ctx, const QString &codec
107 - c->time_base = s->time_base;
108 - /* Some formats want stream headers to be separate. */
109 - if (ctx->oformat->flags & AVFMT_GLOBALHEADER)
110 -- c->flags |= CODEC_FLAG_GLOBAL_HEADER;
111 -+ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
112 - // expose avctx to encoder and set properties in encoder?
113 - // list codecs for a given format in ui
114 - return s;
115 -diff --git a/src/QtAV/private/AVCompat.h b/src/QtAV/private/AVCompat.h
116 -index e387868a8..6c38596d1 100644
117 ---- a/src/QtAV/private/AVCompat.h
118 -+++ b/src/QtAV/private/AVCompat.h
119 -@@ -456,3 +456,15 @@ const char *get_codec_long_name(AVCodecID id);
120 - } } while(0)
121 -
122 - #endif //QTAV_COMPAT_H
123 -+
124 -+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56,33,0)
125 -+#define AV_CODEC_FLAG_GLOBAL_HEADER CODEC_FLAG_GLOBAL_HEADER
126 -+#endif
127 -+
128 -+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56,56,100)
129 -+#define AV_INPUT_BUFFER_MIN_SIZE FF_MIN_BUFFER_SIZE
130 -+#endif
131 -+
132 -+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56,56,100)
133 -+#define AV_INPUT_BUFFER_PADDING_SIZE FF_INPUT_BUFFER_PADDING_SIZE
134 -+#endif
135 -diff --git a/src/codec/audio/AudioEncoderFFmpeg.cpp b/src/codec/audio/AudioEncoderFFmpeg.cpp
136 -index a74f4f31d..3811e11a6 100644
137 ---- a/src/codec/audio/AudioEncoderFFmpeg.cpp
138 -+++ b/src/codec/audio/AudioEncoderFFmpeg.cpp
139 -@@ -151,8 +151,8 @@ bool AudioEncoderFFmpegPrivate::open()
140 - } else {
141 - buffer_size = frame_size*format_used.bytesPerSample()*format_used.channels()*2+200;
142 - }
143 -- if (buffer_size < FF_MIN_BUFFER_SIZE)
144 -- buffer_size = FF_MIN_BUFFER_SIZE;
145 -+ if (buffer_size < AV_INPUT_BUFFER_MIN_SIZE)
146 -+ buffer_size = AV_INPUT_BUFFER_MIN_SIZE;
147 - buffer.resize(buffer_size);
148 - return true;
149 - }
150 -diff --git a/src/codec/video/VideoEncoderFFmpeg.cpp b/src/codec/video/VideoEncoderFFmpeg.cpp
151 -index 7c5ed42d0..671efa7d3 100644
152 ---- a/src/codec/video/VideoEncoderFFmpeg.cpp
153 -+++ b/src/codec/video/VideoEncoderFFmpeg.cpp
154 -@@ -245,7 +245,7 @@ bool VideoEncoderFFmpegPrivate::open()
155 - applyOptionsForContext();
156 - AV_ENSURE_OK(avcodec_open2(avctx, codec, &dict), false);
157 - // from mpv ao_lavc
158 -- const int buffer_size = qMax<int>(qMax<int>(width*height*6+200, FF_MIN_BUFFER_SIZE), sizeof(AVPicture));//??
159 -+ const int buffer_size = qMax<int>(qMax<int>(width*height*6+200, AV_INPUT_BUFFER_MIN_SIZE), sizeof(AVPicture));//??
160 - buffer.resize(buffer_size);
161 - return true;
162 - }
163 -diff --git a/src/filter/LibAVFilter.cpp b/src/filter/LibAVFilter.cpp
164 -index 191512040..8993a91f7 100644
165 ---- a/src/filter/LibAVFilter.cpp
166 -+++ b/src/filter/LibAVFilter.cpp
167 -@@ -120,7 +120,10 @@ class LibAVFilter::Private
168 - // pixel_aspect==sar, pixel_aspect is more compatible
169 - QString buffersrc_args = args;
170 - qDebug("buffersrc_args=%s", buffersrc_args.toUtf8().constData());
171 -- AVFilter *buffersrc = avfilter_get_by_name(video ? "buffer" : "abuffer");
172 -+#if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(7,0,0)
173 -+ const
174 -+#endif
175 -+ AVFilter *buffersrc = avfilter_get_by_name(video ? "buffer" : "abuffer");
176 - Q_ASSERT(buffersrc);
177 - AV_ENSURE_OK(avfilter_graph_create_filter(&in_filter_ctx,
178 - buffersrc,
179 -@@ -128,6 +131,9 @@ class LibAVFilter::Private
180 - filter_graph)
181 - , false);
182 - /* buffer video sink: to terminate the filter chain. */
183 -+#if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(7,0,0)
184 -+ const
185 -+#endif
186 - AVFilter *buffersink = avfilter_get_by_name(video ? "buffersink" : "abuffersink");
187 - Q_ASSERT(buffersink);
188 - AV_ENSURE_OK(avfilter_graph_create_filter(&out_filter_ctx, buffersink, "out",
189 -diff --git a/src/subtitle/SubtitleProcessorFFmpeg.cpp b/src/subtitle/SubtitleProcessorFFmpeg.cpp
190 -index 30ee9367c..1755c3816 100644
191 ---- a/src/subtitle/SubtitleProcessorFFmpeg.cpp
192 -+++ b/src/subtitle/SubtitleProcessorFFmpeg.cpp
193 -@@ -249,7 +249,7 @@ bool SubtitleProcessorFFmpeg::processHeader(const QByteArray &codec, const QByte
194 - codec_ctx->time_base.den = 1000;
195 - if (!data.isEmpty()) {
196 - av_free(codec_ctx->extradata);
197 -- codec_ctx->extradata = (uint8_t*)av_mallocz(data.size() + FF_INPUT_BUFFER_PADDING_SIZE);
198 -+ codec_ctx->extradata = (uint8_t*)av_mallocz(data.size() + AV_INPUT_BUFFER_PADDING_SIZE);
199 - if (!codec_ctx->extradata)
200 - return false;
201 - codec_ctx->extradata_size = data.size();
202 \ No newline at end of file
203
204 diff --git a/media-libs/qtav/files/qtav-1.12.0-installpaths.patch b/media-libs/qtav/files/qtav-1.12.0-installpaths.patch
205 deleted file mode 100644
206 index 7d491931d05e..000000000000
207 --- a/media-libs/qtav/files/qtav-1.12.0-installpaths.patch
208 +++ /dev/null
209 @@ -1,17 +0,0 @@
210 -diff -ub -purN a/CMakeLists.txt b/CMakeLists.txt
211 ---- a/CMakeLists.txt 2017-06-21 03:47:15.000000000 +0200
212 -+++ b/CMakeLists.txt 2020-01-12 02:51:41.692331365 +0100
213 -@@ -65,10 +65,10 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) # for
214 - # Instruct CMake to run moc automatically when needed.
215 - set(CMAKE_AUTOMOC ON)
216 - if(NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
217 -- set(QTAV_INSTALL_HEADERS ${CMAKE_INSTALL_PREFIX}/include)
218 -- set(QTAV_INSTALL_LIBS ${CMAKE_INSTALL_PREFIX}/lib)
219 -+ set(QTAV_INSTALL_HEADERS ${QT_INSTALL_HEADERS})
220 -+ set(QTAV_INSTALL_LIBS ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
221 - set(QTAV_INSTALL_BINS ${CMAKE_INSTALL_PREFIX}/bin)
222 -- set(QTAV_INSTALL_QML ${CMAKE_INSTALL_PREFIX}/qml)
223 -+ set(QTAV_INSTALL_QML ${QT_INSTALL_QML})
224 - else()
225 - set(CMAKE_INSTALL_PREFIX ${QT_INSTALL_PREFIX} CACHE PATH "default install path" FORCE)
226 - set(QTAV_INSTALL_HEADERS ${QT_INSTALL_HEADERS})
227
228 diff --git a/media-libs/qtav/files/qtav-1.12.0-qt5.14.patch b/media-libs/qtav/files/qtav-1.12.0-qt5.14.patch
229 deleted file mode 100644
230 index bf546c9e068d..000000000000
231 --- a/media-libs/qtav/files/qtav-1.12.0-qt5.14.patch
232 +++ /dev/null
233 @@ -1,12 +0,0 @@
234 -diff -ub -purN -x '*~' a/qml/SGVideoNode.cpp b/qml/SGVideoNode.cpp
235 ---- a/qml/SGVideoNode.cpp 2017-06-21 03:47:15.000000000 +0200
236 -+++ b/qml/SGVideoNode.cpp 2020-01-07 05:37:05.304897727 +0100
237 -@@ -25,6 +25,8 @@
238 - #include "QtAV/VideoFrame.h"
239 - #include <QtCore/QScopedPointer>
240 - #include <QtGui/QOpenGLFunctions>
241 -+#include <QtQuick/QSGMaterialType>
242 -+#include <QtQuick/QSGMaterial>
243 - #include <QtQuick/QSGMaterialShader>
244 -
245 - // all in QSGRenderThread
246
247 diff --git a/media-libs/qtav/files/qtav-1.12.0-qt5.15.patch b/media-libs/qtav/files/qtav-1.12.0-qt5.15.patch
248 deleted file mode 100644
249 index a992f59fac31..000000000000
250 --- a/media-libs/qtav/files/qtav-1.12.0-qt5.15.patch
251 +++ /dev/null
252 @@ -1,22 +0,0 @@
253 -From 5263d9d9ee29303a919d33d52b15acda554226c5 Mon Sep 17 00:00:00 2001
254 -From: rezso <rezso@×××××.net>
255 -Date: Mon, 1 Jun 2020 13:30:21 +0200
256 -Subject: [PATCH] Fix build with Qt 5.15
257 -
258 -Solves https://github.com/wang-bin/QtAV/issues/1309
259 ----
260 - src/QtAV/FilterContext.h | 1 +
261 - 1 file changed, 1 insertion(+)
262 -
263 -diff --git a/src/QtAV/FilterContext.h b/src/QtAV/FilterContext.h
264 -index 6d2f9a041..7cc2fc1c5 100644
265 ---- a/src/QtAV/FilterContext.h
266 -+++ b/src/QtAV/FilterContext.h
267 -@@ -26,6 +26,7 @@
268 - #include <QtCore/QByteArray>
269 - #include <QtCore/QRect>
270 - #include <QtGui/QPainter>
271 -+#include <QtGui/QPainterPath>
272 - /*
273 - * QPainterFilterContext, D2DFilterContext, ...
274 - */
275
276 diff --git a/media-libs/qtav/metadata.xml b/media-libs/qtav/metadata.xml
277 deleted file mode 100644
278 index e35c6288e69e..000000000000
279 --- a/media-libs/qtav/metadata.xml
280 +++ /dev/null
281 @@ -1,11 +0,0 @@
282 -<?xml version="1.0" encoding="UTF-8"?>
283 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
284 -<pkgmetadata>
285 - <!-- maintainer-needed -->
286 - <use>
287 - <flag name="gui">Build a video player gui</flag>
288 - </use>
289 - <upstream>
290 - <remote-id type="github">wang-bin/QtAV</remote-id>
291 - </upstream>
292 -</pkgmetadata>
293
294 diff --git a/media-libs/qtav/qtav-1.12.0-r3.ebuild b/media-libs/qtav/qtav-1.12.0-r3.ebuild
295 deleted file mode 100644
296 index 38c5d150a590..000000000000
297 --- a/media-libs/qtav/qtav-1.12.0-r3.ebuild
298 +++ /dev/null
299 @@ -1,68 +0,0 @@
300 -# Copyright 1999-2021 Gentoo Authors
301 -# Distributed under the terms of the GNU General Public License v2
302 -
303 -EAPI=7
304 -
305 -MY_PN="QtAV"
306 -CAPI_HASH="b43aa93"
307 -inherit cmake qmake-utils
308 -
309 -DESCRIPTION="Multimedia playback framework based on Qt + FFmpeg"
310 -HOMEPAGE="https://www.qtav.org"
311 -SRC_URI="https://github.com/wang-bin/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
312 -https://dev.gentoo.org/~johu/distfiles/${P}-capi.h-${CAPI_HASH}.xz"
313 -
314 -LICENSE="GPL-3+ LGPL-2.1+"
315 -SLOT="0/1"
316 -KEYWORDS="amd64 ~arm64"
317 -IUSE="gui portaudio pulseaudio vaapi"
318 -
319 -DEPEND="
320 - dev-qt/qtcore:5
321 - dev-qt/qtdeclarative:5
322 - dev-qt/qtgui:5
323 - dev-qt/qtopengl:5
324 - dev-qt/qtwidgets:5
325 - media-video/ffmpeg:=
326 - gui? ( dev-qt/qtsql:5 )
327 - portaudio? ( media-libs/portaudio )
328 - pulseaudio? ( media-sound/pulseaudio )
329 -"
330 -RDEPEND="${DEPEND}"
331 -
332 -S="${WORKDIR}/${MY_PN}-${PV}"
333 -
334 -PATCHES=(
335 - "${FILESDIR}"/${P}-installpaths.patch
336 - "${FILESDIR}"/${P}-ffmpeg4-{1,2}.patch # bugs 660852, 670765
337 - "${FILESDIR}"/${P}-qt5.14.patch
338 - "${FILESDIR}"/${P}-qt5.15.patch
339 -)
340 -
341 -src_prepare() {
342 - cmake_src_prepare
343 - cp "${WORKDIR}/${P}-capi.h-${CAPI_HASH}" contrib/capi/capi.h \
344 - || die "Failed to add missing header"
345 -}
346 -
347 -src_configure() {
348 - local mycmakeargs=(
349 - -DBUILD_TESTS=OFF
350 - -DBUILD_EXAMPLES=OFF
351 - -DBUILD_QT5OPENGL=ON # bug 740172
352 - -DBUILD_PLAYERS=$(usex gui)
353 - -DHAVE_PORTAUDIO=$(usex portaudio)
354 - -DHAVE_PULSE=$(usex pulseaudio)
355 - -DHAVE_VAAPI=$(usex vaapi)
356 - )
357 -
358 - cmake_src_configure
359 - pushd tools/install_sdk >/dev/null
360 - eqmake5
361 - popd >/dev/null
362 -}
363 -
364 -src_install() {
365 - cmake_src_install
366 - emake -C tools/install_sdk INSTALL_ROOT="${ED}" install
367 -}
368
369 diff --git a/profiles/package.mask b/profiles/package.mask
370 index 40a973454e7a..4e15e72ac0e4 100644
371 --- a/profiles/package.mask
372 +++ b/profiles/package.mask
373 @@ -304,7 +304,6 @@ acct-group/jabber
374 #
375 # Removal on 2023-02-20.
376 media-libs/libextractor
377 -media-libs/qtav
378
379 # David Seifert <soap@g.o> (2023-01-14)
380 # Py3.8 only backports