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 E2D60139694 for ; Fri, 23 Jun 2017 05:58:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80997E0DC3; Fri, 23 Jun 2017 05:58:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4C253E0DC3 for ; Fri, 23 Jun 2017 05:58:16 +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 994AB3419E3 for ; Fri, 23 Jun 2017 05:58:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D4F587466 for ; Fri, 23 Jun 2017 05:58:12 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1498196134.0b9deda9488d7ea978a43f5cf3d49c4319468af6.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/avidemux-core/files/, media-libs/avidemux-core/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/avidemux-core/avidemux-core-2.6.8.ebuild media-libs/avidemux-core/files/avidemux-core-2.6.8-gcc6.patch X-VCS-Directories: media-libs/avidemux-core/files/ media-libs/avidemux-core/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 0b9deda9488d7ea978a43f5cf3d49c4319468af6 X-VCS-Branch: master Date: Fri, 23 Jun 2017 05:58:12 +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: 1c6e30e3-042f-4baf-bba7-117de2d08147 X-Archives-Hash: 0b72fc7e521988e057493a51f6ac7d8b commit: 0b9deda9488d7ea978a43f5cf3d49c4319468af6 Author: Peter Levine gmail com> AuthorDate: Mon May 29 03:38:43 2017 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Fri Jun 23 05:35:34 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b9deda9 media-libs/avidemux-core: Fix building with GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=594902 Package-Manager: Portage-2.3.6, Repoman-2.3.2 .../avidemux-core/avidemux-core-2.6.8.ebuild | 3 +- .../files/avidemux-core-2.6.8-gcc6.patch | 50 ++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/media-libs/avidemux-core/avidemux-core-2.6.8.ebuild b/media-libs/avidemux-core/avidemux-core-2.6.8.ebuild index 713066eac7f..f7dde42a475 100644 --- a/media-libs/avidemux-core/avidemux-core-2.6.8.ebuild +++ b/media-libs/avidemux-core/avidemux-core-2.6.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -53,6 +53,7 @@ DEPEND=" S="${WORKDIR}/${MY_P}" BUILD_DIR="${S}/buildCore" +PATCHES=( "${FILESDIR}"/${P}-gcc6.patch ) DOCS=( AUTHORS README ) src_prepare() { diff --git a/media-libs/avidemux-core/files/avidemux-core-2.6.8-gcc6.patch b/media-libs/avidemux-core/files/avidemux-core-2.6.8-gcc6.patch new file mode 100644 index 00000000000..dbdf8ff93a8 --- /dev/null +++ b/media-libs/avidemux-core/files/avidemux-core-2.6.8-gcc6.patch @@ -0,0 +1,50 @@ +--- a/avidemux_core/ADM_coreUtils/src/prefs.cpp ++++ b/avidemux_core/ADM_coreUtils/src/prefs.cpp +@@ -44,8 +44,8 @@ + const char *name2; + ADM_paramType type; + const char *defaultValue; +- float min; +- float max; ++ double min; ++ double max; + }optionDesc; + + #include "prefs2_pref.h" +--- a/avidemux_core/ADM_coreAudio/src/ADM_audioStreamBuffered.cpp ++++ b/avidemux_core/ADM_coreAudio/src/ADM_audioStreamBuffered.cpp +@@ -46,7 +46,7 @@ + // By construction, the error should be minimal + if(newDts!=ADM_AUDIO_NO_DTS) + { +- if( abs(newDts-lastDts)>ADM_MAX_SKEW) ++ if( labs((int64_t)newDts-lastDts)>ADM_MAX_SKEW) + { + printf("[AudioStream] Warning skew in dts =%"PRId64", \n",(int64_t)newDts-(uint64_t)lastDts); + printf("[AudioStream] Warning skew lastDts=%s \n",ADM_us2plain(lastDts)); +--- a/avidemux_core/ADM_coreVideoCodec/src/ADM_ffmp43.cpp ++++ b/avidemux_core/ADM_coreVideoCodec/src/ADM_ffmp43.cpp +@@ -30,19 +30,19 @@ + #define WRAP_Open_Template(funcz,argz,display,codecid) \ + {\ + AVCodec *codec=funcz(argz);\ +-if(!codec) {GUI_Error_HIG("Codec",QT_TR_NOOP("Internal error finding codec"display));ADM_assert(0);} \ ++if(!codec) {GUI_Error_HIG("Codec",QT_TR_NOOP("Internal error finding codec" display));ADM_assert(0);} \ + codecId=codecid; \ + _context->workaround_bugs=1*FF_BUG_AUTODETECT +0*FF_BUG_NO_PADDING; \ + _context->error_concealment=3; \ + if (avcodec_open(_context, codec) < 0) \ + { \ +- printf("[lavc] Decoder init: "display" video decoder failed!\n"); \ +- GUI_Error_HIG("Codec","Internal error opening "display); \ ++ printf("[lavc] Decoder init: " display " video decoder failed!\n"); \ ++ GUI_Error_HIG("Codec","Internal error opening " display); \ + ADM_assert(0); \ + } \ + else \ + { \ +- printf("[lavc] Decoder init: "display" video decoder initialized! (%s)\n",codec->long_name); \ ++ printf("[lavc] Decoder init: " display " video decoder initialized! (%s)\n",codec->long_name); \ + } \ + } +