commit:     5729eec09566c4bf09787330e8787ccd953c7619
Author:     Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
AuthorDate: Fri May 14 14:32:51 2021 +0000
Commit:     Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
CommitDate: Fri May 14 14:32:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5729eec0

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 <AT> gentoo.org>

 .../vdr-fritzbox/files/vdr-fritzbox-1.5.3_clang.patch   | 17 +++++++++++++++++
 ...box-1.5.3-r2.ebuild => vdr-fritzbox-1.5.3-r3.ebuild} |  5 ++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

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 00000000000..1819244ffba
--- /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 <[email protected]> (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
similarity index 93%
rename from media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r2.ebuild
rename to media-plugins/vdr-fritzbox/vdr-fritzbox-1.5.3-r3.ebuild
index 860f542aaea..8ca019bad2a 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

Reply via email to