dev-util/kdbg: add patch to fix build failure with >=dev-util/cmake-3.4.0
authorMichael Palimaka <kensington@gentoo.org>
Sun, 29 Nov 2015 16:23:56 +0000 (03:23 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 29 Nov 2015 16:24:34 +0000 (03:24 +1100)
Gentoo-bug: 567090

Package-Manager: portage-2.2.26

dev-util/kdbg/files/kdbg-2.5.5-cmake34.patch [new file with mode: 0644]
dev-util/kdbg/kdbg-2.5.5.ebuild

diff --git a/dev-util/kdbg/files/kdbg-2.5.5-cmake34.patch b/dev-util/kdbg/files/kdbg-2.5.5-cmake34.patch
new file mode 100644 (file)
index 0000000..e5f71a0
--- /dev/null
@@ -0,0 +1,14 @@
+Fixes build with cmake-3.4.
+
+Gentoo-bug: 567090
+
+--- kdbg/CMakeLists.txt
++++ kdbg/CMakeLists.txt
+@@ -4,6 +4,7 @@
+ 
+ include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
+ include(CheckFunctionExists)
++include(CheckIncludeFiles)
+ 
+ CHECK_INCLUDE_FILES(pty.h HAVE_PTY_H)
+ CHECK_INCLUDE_FILES(libutil.h HAVE_LIBUTIL_H)
index 3600f6197fe4d6d1a03d75d9686d78714224787d..637d10d99ff5adc20d4e37732cb435f3ef2113af 100644 (file)
@@ -20,6 +20,7 @@ IUSE="debug"
 RDEPEND="sys-devel/gdb"
 DEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}/${P}-cmake34.patch" )
 DOCS=( BUGS README ReleaseNotes-${PV} TODO )
 
 src_prepare() {