summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-05-28 10:37:37 +0200
committerLars Wendler <polynomial-c@gentoo.org>2020-05-28 10:56:11 +0200
commit922013719ab545531b37dcb72a743c3b98db38be (patch)
tree6f50519c217713fbf110ba669c21348f8b83faae /media-sound
parentprofiles/arch: Move py3.8 masks into specific arches (diff)
downloadgentoo-922013719ab545531b37dcb72a743c3b98db38be.tar.gz
gentoo-922013719ab545531b37dcb72a743c3b98db38be.tar.bz2
gentoo-922013719ab545531b37dcb72a743c3b98db38be.zip
media-sound/clementine: Fixed build with qt-5.15
Thanks-to: Nick Andrade <SDNick484@gmail.com> Closes: https://bugs.gentoo.org/725678 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/clementine/clementine-1.4.0_rc1.ebuild4
-rw-r--r--media-sound/clementine/files/clementine-1.4.0_rc1-QPainterPath_include.patch50
2 files changed, 54 insertions, 0 deletions
diff --git a/media-sound/clementine/clementine-1.4.0_rc1.ebuild b/media-sound/clementine/clementine-1.4.0_rc1.ebuild
index 7ee8c3edfb6d..0808dceb128d 100644
--- a/media-sound/clementine/clementine-1.4.0_rc1.ebuild
+++ b/media-sound/clementine/clementine-1.4.0_rc1.ebuild
@@ -106,6 +106,10 @@ RESTRICT="test"
DOCS=( Changelog README.md )
+PATCHES=(
+ "${FILESDIR}/${P}-QPainterPath_include.patch" #725678
+)
+
src_prepare() {
l10n_find_plocales_changes "src/translations" "" ".po"
diff --git a/media-sound/clementine/files/clementine-1.4.0_rc1-QPainterPath_include.patch b/media-sound/clementine/files/clementine-1.4.0_rc1-QPainterPath_include.patch
new file mode 100644
index 000000000000..3a441412ba26
--- /dev/null
+++ b/media-sound/clementine/files/clementine-1.4.0_rc1-QPainterPath_include.patch
@@ -0,0 +1,50 @@
+From 7715ae5c01528213a97369e14d5461efd264cc27 Mon Sep 17 00:00:00 2001
+From: SDNick484 <SDNick484@gmail.com>
+Date: Thu, 28 May 2020 10:34:31 +0200
+Subject: [PATCH] Adds missing QPainterPath include
+
+---
+ src/widgets/freespacebar.cpp | 1 +
+ src/widgets/osdpretty.cpp | 1 +
+ src/widgets/sliderwidget.cpp | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/src/widgets/freespacebar.cpp b/src/widgets/freespacebar.cpp
+index 3067f722b..c9789d353 100644
+--- a/src/widgets/freespacebar.cpp
++++ b/src/widgets/freespacebar.cpp
+@@ -20,6 +20,7 @@
+
+ #include <QLinearGradient>
+ #include <QPainter>
++#include <QPainterPath>
+
+ const int FreeSpaceBar::kBarHeight = 20;
+ const int FreeSpaceBar::kBarBorderRadius = 8;
+diff --git a/src/widgets/osdpretty.cpp b/src/widgets/osdpretty.cpp
+index 9d95716d8..30cef7dae 100644
+--- a/src/widgets/osdpretty.cpp
++++ b/src/widgets/osdpretty.cpp
+@@ -26,6 +26,7 @@
+ #include <QLayout>
+ #include <QMouseEvent>
+ #include <QPainter>
++#include <QPainterPath>
+ #include <QSettings>
+ #include <QTimer>
+ #include <QTimeLine>
+diff --git a/src/widgets/sliderwidget.cpp b/src/widgets/sliderwidget.cpp
+index 581a0de7b..96bbc0e5e 100644
+--- a/src/widgets/sliderwidget.cpp
++++ b/src/widgets/sliderwidget.cpp
+@@ -27,6 +27,7 @@
+ #include <QSize>
+ #include <QTimer>
+ #include <QStyle>
++#include <QtGui>
+ #include <QMenu>
+ #include <QWheelEvent>
+ #include <QMouseEvent>
+--
+2.27.0.rc2
+