commit:     d93be79561a120db88087a6ebe1733ad98041c5a
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  6 12:47:08 2018 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Mon Aug  6 12:47:08 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d93be795

www-client/jd: fix build with >=sys-devel/gcc-5

Closes: https://bugs.gentoo.org/600802
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 www-client/jd/files/jd-gcc-5.patch    | 15 +++++++++++++++
 www-client/jd/jd-2.8.5_p120826.ebuild |  2 ++
 2 files changed, 17 insertions(+)

diff --git a/www-client/jd/files/jd-gcc-5.patch 
b/www-client/jd/files/jd-gcc-5.patch
new file mode 100644
index 00000000000..4e6a74f4d79
--- /dev/null
+++ b/www-client/jd/files/jd-gcc-5.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/600802
+
+Author: [email protected]
+
+--- a/src/article/drawareabase.h
++++ b/src/article/drawareabase.h
+@@ -330,7 +330,7 @@
+ 
+         // リアライズしたか
+         // Gtk::Widget::is_realized() はうまく動作しない
+-        const bool is_drawarea_realized(){ return m_window; }
++        const bool is_drawarea_realized(){ return 
static_cast<bool>(m_window); }
+ 
+         // 文字色のID( colorid.h にある ID を指定)
+         const int get_colorid_text() const{ return m_colorid_text; }

diff --git a/www-client/jd/jd-2.8.5_p120826.ebuild 
b/www-client/jd/jd-2.8.5_p120826.ebuild
index 05dd4ad5f84..c05782e16ca 100644
--- a/www-client/jd/jd-2.8.5_p120826.ebuild
+++ b/www-client/jd/jd-2.8.5_p120826.ebuild
@@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=( "${FILESDIR}"/${PN}-gcc-5.patch )
+
 src_prepare() {
        default
        append-cxxflags -std=c++11

Reply via email to