From: Peter Levine Date: Fri, 7 Jul 2017 06:23:35 +0000 (-0400) Subject: dev-python/shiboken: Fix building with GCC-6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=fba2e61745acf4c20d1851ce6dac3cbe78443973;p=gentoo.git dev-python/shiboken: Fix building with GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=619332 Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- diff --git a/dev-python/shiboken/files/shiboken-1.2.2-gcc6.patch b/dev-python/shiboken/files/shiboken-1.2.2-gcc6.patch new file mode 100644 index 000000000000..65734232472c --- /dev/null +++ b/dev-python/shiboken/files/shiboken-1.2.2-gcc6.patch @@ -0,0 +1,20 @@ +Bug: https://bugs.gentoo.org/619332 +PR: https://github.com/pyside/Shiboken/pull/84 + +--- a/tests/libsample/simplefile.cpp ++++ b/tests/libsample/simplefile.cpp +@@ -90,13 +90,13 @@ bool + SimpleFile::exists() const + { + std::ifstream ifile(p->m_filename); +- return ifile; ++ return static_cast(ifile); + } + + bool + SimpleFile::exists(const char* filename) + { + std::ifstream ifile(filename); +- return ifile; ++ return static_cast(ifile); + } diff --git a/dev-python/shiboken/shiboken-1.2.2.ebuild b/dev-python/shiboken/shiboken-1.2.2.ebuild index 89119cb728f2..65d6d0be4d16 100644 --- a/dev-python/shiboken/shiboken-1.2.2.ebuild +++ b/dev-python/shiboken/shiboken-1.2.2.ebuild @@ -34,6 +34,7 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS ChangeLog ) PATCHES=( "${FILESDIR}/${PV}-Fix-tests-with-Python-3.patch" + "${FILESDIR}/${P}-gcc6.patch" ) src_prepare() {