From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6CCDC138335 for ; Fri, 21 Sep 2018 14:51:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 062C2E0866; Fri, 21 Sep 2018 14:51:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8E42E0866 for ; Fri, 21 Sep 2018 14:51:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 735C9335D25 for ; Fri, 21 Sep 2018 14:50:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B1FA53E0 for ; Fri, 21 Sep 2018 14:50:55 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1537541296.acbfec2b102c3bfe316827043191cf623e8673c3.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libgroove/files/, media-libs/libgroove/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libgroove/files/libgroove-4.3.0_ffmpeg4.patch media-libs/libgroove/libgroove-4.3.0-r1.ebuild X-VCS-Directories: media-libs/libgroove/files/ media-libs/libgroove/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: acbfec2b102c3bfe316827043191cf623e8673c3 X-VCS-Branch: master Date: Fri, 21 Sep 2018 14:50:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ce33710e-623b-4b5f-8d60-6cf44bbd9f95 X-Archives-Hash: 27e6f15334be19252eb0e0c99eee420d commit: acbfec2b102c3bfe316827043191cf623e8673c3 Author: Diogo Pereira gmail com> AuthorDate: Fri Sep 21 14:16:21 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Sep 21 14:48:16 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acbfec2b media-libs/libgroove: fix build with ffmpeg-4 Closes: https://bugs.gentoo.org/654330 Reported-by: Toralf Förster gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10 Closes: https://github.com/gentoo/gentoo/pull/9935 .../libgroove/files/libgroove-4.3.0_ffmpeg4.patch | 47 ++++++++++++++++++++++ media-libs/libgroove/libgroove-4.3.0-r1.ebuild | 3 +- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/media-libs/libgroove/files/libgroove-4.3.0_ffmpeg4.patch b/media-libs/libgroove/files/libgroove-4.3.0_ffmpeg4.patch new file mode 100644 index 00000000000..eadc4d98a91 --- /dev/null +++ b/media-libs/libgroove/files/libgroove-4.3.0_ffmpeg4.patch @@ -0,0 +1,47 @@ +Description: Fix FTBFS with FFmpeg 4.0 +Author: James Cowgill +Bug-Debian: https://bugs.debian.org/888376 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/groove/encoder.c ++++ b/groove/encoder.c +@@ -616,7 +616,7 @@ int groove_encoder_attach(struct GrooveE + + e->sink->audio_format = encoder->actual_audio_format; + e->sink->buffer_size = encoder->sink_buffer_size; +- e->sink->buffer_sample_count = (codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) ? ++ e->sink->buffer_sample_count = (codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE) ? + 0 : e->stream->codec->frame_size; + e->sink->gain = encoder->gain; + +--- a/groove/playlist.c ++++ b/groove/playlist.c +@@ -186,7 +186,7 @@ static int audio_decode_frame(struct Gro + + if (!got_frame) { + // stop sending empty packets if the decoder is finished +- if (!pkt_temp->data && dec->codec->capabilities & CODEC_CAP_DELAY) ++ if (!pkt_temp->data && dec->codec->capabilities & AV_CODEC_CAP_DELAY) + return 0; + continue; + } +@@ -571,7 +571,7 @@ static int decode_one_frame(struct Groov + pthread_mutex_unlock(&f->seek_mutex); + + if (f->eof) { +- if (f->audio_st->codec->codec->capabilities & CODEC_CAP_DELAY) { ++ if (f->audio_st->codec->codec->capabilities & AV_CODEC_CAP_DELAY) { + av_init_packet(pkt); + pkt->data = NULL; + pkt->size = 0; +--- a/groove/file.c ++++ b/groove/file.c +@@ -281,7 +281,7 @@ int groove_file_save(struct GrooveFile * + ocodec->rc_buffer_size = icodec->rc_buffer_size; + ocodec->field_order = icodec->field_order; + +- uint64_t extra_size = (uint64_t)icodec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE; ++ uint64_t extra_size = (uint64_t)icodec->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE; + if (extra_size > INT_MAX) { + cleanup_save(file); + av_log(NULL, AV_LOG_ERROR, "codec extra size too big\n"); diff --git a/media-libs/libgroove/libgroove-4.3.0-r1.ebuild b/media-libs/libgroove/libgroove-4.3.0-r1.ebuild index 2cfafff6dae..9aac876f1de 100644 --- a/media-libs/libgroove/libgroove-4.3.0-r1.ebuild +++ b/media-libs/libgroove/libgroove-4.3.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -23,6 +23,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${P}_cflags.patch" "${FILESDIR}/${P}_sdl2_include_dir.patch" + "${FILESDIR}/${P}_ffmpeg4.patch" "${FILESDIR}/${P}_GNUInstallDirs.patch" ) src_configure() {