summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2021-05-14 16:32:51 +0200
committerJoerg Bornkessel <hd_brummy@gentoo.org>2021-05-14 16:32:51 +0200
commit5729eec09566c4bf09787330e8787ccd953c7619 (patch)
treed4f05340ffd3ff3547b2e72b6ccbe997d485694f /media-plugins
parentapp-crypt/yubikey-manager-qt: version bump (1.2.2) (diff)
downloadgentoo-5729eec09566c4bf09787330e8787ccd953c7619.tar.gz
gentoo-5729eec09566c4bf09787330e8787ccd953c7619.tar.bz2
gentoo-5729eec09566c4bf09787330e8787ccd953c7619.zip
media-plugins/vdr-fritzbox: llvm/clang compile fixed
Closes: https://bugs.gentoo.org/740290 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/vdr-fritzbox/files/vdr-fritzbox-1.5.3_clang.patch17
-rw-r--r--media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r3.ebuild (renamed from media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r2.ebuild)5
2 files changed, 21 insertions, 1 deletions
diff --git a/media-plugins/vdr-fritzbox/files/vdr-fritzbox-1.5.3_clang.patch b/media-plugins/vdr-fritzbox/files/vdr-fritzbox-1.5.3_clang.patch
new file mode 100644
index 000000000000..1819244ffbaa
--- /dev/null
+++ b/media-plugins/vdr-fritzbox/files/vdr-fritzbox-1.5.3_clang.patch
@@ -0,0 +1,17 @@
+compile fix llvm/clang
+
+https://bugs.gentoo.org/740290
+
+Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org> (14 May 2021)
+diff -Naur fritzbox-1.5.3.orig/notifyosd.cpp fritzbox-1.5.3/notifyosd.cpp
+--- fritzbox-1.5.3.orig/notifyosd.cpp 2021-05-14 14:20:08.973067369 +0200
++++ fritzbox-1.5.3/notifyosd.cpp 2021-05-14 14:21:17.945067369 +0200
+@@ -128,7 +128,7 @@
+ delete osd;
+ osd = cOsdProvider::NewOsd(left, top);
+ // defines drawing area and color depth
+- tArea Area = { 0, 0, width-1, height-1, colorDepth };
++ tArea Area = { 0, 0, static_cast<int>(width-1), static_cast<int>(height-1), colorDepth };
+ osd->SetAreas(&Area, 1);
+ // draw osd frame, 2px thick
+ osd->DrawRectangle(0, 0, width-1, height-1, clrBackground);
diff --git a/media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r2.ebuild b/media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r3.ebuild
index 860f542aaea9..8ca019bad2a2 100644
--- a/media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r2.ebuild
+++ b/media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r3.ebuild
@@ -19,7 +19,10 @@ DEPEND="dev-libs/libgcrypt:0
media-video/vdr"
RDEPEND="${DEPEND}"
-PATCHES=( "${FILESDIR}/${P}-boost-1.67.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-boost-1.67.patch"
+ "${FILESDIR}/${P}_clang.patch"
+ )
src_prepare() {
vdr-plugin-2_src_prepare