summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2013-03-03 13:48:03 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2013-03-03 13:48:03 +0000
commit8b15641304f7188d0725ddeb8bb482088bcebfaa (patch)
tree7c4ad180687d144cd25e12e7fd252f5c7c3ac9e0 /net-p2p
parentAdd s390 lovin. (diff)
downloadgentoo-2-8b15641304f7188d0725ddeb8bb482088bcebfaa.tar.gz
gentoo-2-8b15641304f7188d0725ddeb8bb482088bcebfaa.tar.bz2
gentoo-2-8b15641304f7188d0725ddeb8bb482088bcebfaa.zip
Fix building with gcc-4.7 wrt #423045 by Diego Elio Pettenò <flameeyes@gentoo.org>
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 895192F9)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/valknut/ChangeLog7
-rw-r--r--net-p2p/valknut/files/valknut-0.4.9-gcc47.patch15
-rw-r--r--net-p2p/valknut/valknut-0.4.9.ebuild8
3 files changed, 28 insertions, 2 deletions
diff --git a/net-p2p/valknut/ChangeLog b/net-p2p/valknut/ChangeLog
index f0b29fadde69..3e48b1c9f867 100644
--- a/net-p2p/valknut/ChangeLog
+++ b/net-p2p/valknut/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-p2p/valknut
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/valknut/ChangeLog,v 1.80 2013/03/02 23:10:42 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/valknut/ChangeLog,v 1.81 2013/03/03 13:48:03 xarthisius Exp $
+
+ 03 Mar 2013; Kacper Kowalik <xarthisius@gentoo.org>
+ +files/valknut-0.4.9-gcc47.patch, valknut-0.4.9.ebuild:
+ Fix building with gcc-4.7 wrt #423045 by Diego Elio Pettenò
+ <flameeyes@gentoo.org>
02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> valknut-0.4.9.ebuild:
Move Qt dependencies to the new category
diff --git a/net-p2p/valknut/files/valknut-0.4.9-gcc47.patch b/net-p2p/valknut/files/valknut-0.4.9-gcc47.patch
new file mode 100644
index 000000000000..29ecfe63fb79
--- /dev/null
+++ b/net-p2p/valknut/files/valknut-0.4.9-gcc47.patch
@@ -0,0 +1,15 @@
+Fix building with gcc-47
+
+https://bugs.gentoo.org/show_bug.cgi?id=423045
+
+Patch written by Kacper Kowalik <xarthisius@gentoo.org>
+--- a/valknut/main.cpp
++++ b/valknut/main.cpp
+@@ -22,6 +22,7 @@
+ #endif
+
+ #include <stdlib.h>
++#include <unistd.h> /* _exit */
+ #ifndef WIN32
+ #include <signal.h>
+ #endif
diff --git a/net-p2p/valknut/valknut-0.4.9.ebuild b/net-p2p/valknut/valknut-0.4.9.ebuild
index 0cc4a96ec92f..0414d1c3a2ac 100644
--- a/net-p2p/valknut/valknut-0.4.9.ebuild
+++ b/net-p2p/valknut/valknut-0.4.9.ebuild
@@ -1,9 +1,11 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/valknut/valknut-0.4.9.ebuild,v 1.9 2013/03/02 23:10:42 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/valknut/valknut-0.4.9.ebuild,v 1.10 2013/03/03 13:48:03 xarthisius Exp $
EAPI=2
+inherit eutils
+
DESCRIPTION="A open source cross platform client for the Direct Connect network"
HOMEPAGE="http://sourceforge.net/projects/wxdcgui/"
SRC_URI="mirror://sourceforge/wxdcgui/${P}.tar.bz2
@@ -20,6 +22,10 @@ RDEPEND="dev-qt/qtgui:4[qt3support]
DEPEND="${RDEPEND}
virtual/pkgconfig"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc47.patch
+}
+
src_configure() {
econf \
--disable-dependency-tracking