Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/kdenlive/, kde-apps/kdenlive/files/
Date: Sat, 24 Jun 2017 16:20:51
Message-Id: 1498321235.9bae7efc95161d0f4f56b9c83a61643ac3b8f802.asturm@gentoo
1 commit: 9bae7efc95161d0f4f56b9c83a61643ac3b8f802
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 24 16:20:13 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 24 16:20:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bae7efc
7
8 kde-apps/kdenlive: Fix build with GCC-7
9
10 Upstream commit 2ed43d34a124609aef092164e2e58e5476228209
11
12 Gentoo-bug: 618070
13
14 Package-Manager: Portage-2.3.6, Repoman-2.3.1
15
16 .../kdenlive/files/kdenlive-17.04.2-gcc7.patch | 35 ++++++++++++++++++++++
17 kde-apps/kdenlive/kdenlive-17.04.2.ebuild | 2 ++
18 2 files changed, 37 insertions(+)
19
20 diff --git a/kde-apps/kdenlive/files/kdenlive-17.04.2-gcc7.patch b/kde-apps/kdenlive/files/kdenlive-17.04.2-gcc7.patch
21 new file mode 100644
22 index 00000000000..3499d7feab7
23 --- /dev/null
24 +++ b/kde-apps/kdenlive/files/kdenlive-17.04.2-gcc7.patch
25 @@ -0,0 +1,35 @@
26 +From 2ed43d34a124609aef092164e2e58e5476228209 Mon Sep 17 00:00:00 2001
27 +From: Jean-Baptiste Mardelle <jb@××××××××.org>
28 +Date: Mon, 19 Jun 2017 13:21:16 +0200
29 +Subject: Fix compilation
30 +
31 +---
32 + src/scopes/audioscopes/spectrogram.cpp | 6 +++---
33 + 1 file changed, 3 insertions(+), 3 deletions(-)
34 +
35 +diff --git a/src/scopes/audioscopes/spectrogram.cpp b/src/scopes/audioscopes/spectrogram.cpp
36 +index 1d3a0a2..244e137 100644
37 +--- a/src/scopes/audioscopes/spectrogram.cpp
38 ++++ b/src/scopes/audioscopes/spectrogram.cpp
39 +@@ -241,8 +241,8 @@ QImage Spectrogram::renderHUD(uint)
40 + x = leftDist + (m_innerScopeRect.width() - 1) * ((float)hz) / m_freqMax;
41 +
42 + // Hide text if it would overlap with the text drawn at the mouse position
43 +- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (leftDist + mouseX + 20)) < (int) minDistX + 16
44 +- && mouseX < m_innerScopeRect.width() && mouseX >= 0;
45 ++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (int)(leftDist + mouseX + 20)) < (int) minDistX + 16
46 ++ && mouseX < m_innerScopeRect.width() && mouseX >= 0;
47 +
48 + if (x <= rightBorder) {
49 + davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height() + 6);
50 +@@ -268,7 +268,7 @@ QImage Spectrogram::renderHUD(uint)
51 + }
52 + // Draw the line at the very right (maximum frequency)
53 + x = leftDist + m_innerScopeRect.width() - 1;
54 +- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (leftDist + mouseX + 30)) < (int) minDistX
55 ++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && qAbs(x - (int)(leftDist + mouseX + 30)) < (int) minDistX
56 + && mouseX < m_innerScopeRect.width() && mouseX >= 0;
57 + davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height() + 6);
58 + if (!hideText) {
59 +--
60 +cgit v0.11.2
61
62 diff --git a/kde-apps/kdenlive/kdenlive-17.04.2.ebuild b/kde-apps/kdenlive/kdenlive-17.04.2.ebuild
63 index 563c0c6efd4..2135d841c8d 100644
64 --- a/kde-apps/kdenlive/kdenlive-17.04.2.ebuild
65 +++ b/kde-apps/kdenlive/kdenlive-17.04.2.ebuild
66 @@ -56,6 +56,8 @@ DEPEND="${RDEPEND}
67 sys-devel/gettext
68 "
69
70 +PATCHES=( "${FILESDIR}/${P}-gcc7.patch" )
71 +
72 src_configure() {
73 local mycmakeargs=(
74 $(cmake-utils_use_find_package freesound Qt5WebKitWidgets)