commit: 946021f3cbce9688b84fa96a59a11b78a9594b9e Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Fri Dec 16 10:31:25 2016 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Fri Dec 16 10:56:49 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=946021f3
games-util/xboxdrv: Fix building with GCC 6 Gentoo-bug: 594674 Package-Manager: portage-2.3.3 games-util/xboxdrv/files/xboxdrv-0.8.8-fix-c++14.patch | 16 ++++++++++++++++ games-util/xboxdrv/xboxdrv-0.8.8.ebuild | 1 + 2 files changed, 17 insertions(+) diff --git a/games-util/xboxdrv/files/xboxdrv-0.8.8-fix-c++14.patch b/games-util/xboxdrv/files/xboxdrv-0.8.8-fix-c++14.patch new file mode 100644 index 00000000..80a8d8f --- /dev/null +++ b/games-util/xboxdrv/files/xboxdrv-0.8.8-fix-c++14.patch @@ -0,0 +1,16 @@ +Cast boost::shared_ptr explicitly for C++14. +See also: https://bugs.gentoo.org/show_bug.cgi?id=594674 + +--- a/src/controller_slot.cpp ++++ b/src/controller_slot.cpp +@@ -67,9 +67,9 @@ ControllerSlot::disconnect() + } + + bool + ControllerSlot::is_connected() const + { +- return m_thread; ++ return static_cast<bool>(m_thread); + } + + /* EOF */ diff --git a/games-util/xboxdrv/xboxdrv-0.8.8.ebuild b/games-util/xboxdrv/xboxdrv-0.8.8.ebuild index 04d3c7d..804d3fa 100644 --- a/games-util/xboxdrv/xboxdrv-0.8.8.ebuild +++ b/games-util/xboxdrv/xboxdrv-0.8.8.ebuild @@ -29,6 +29,7 @@ S=${WORKDIR}/${MY_P} PATCHES=( "${FILESDIR}"/${P}-scons.patch "${FILESDIR}"/github-144.patch + "${FILESDIR}"/${P}-fix-c++14.patch ) CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD"