summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2012-07-03 13:22:54 +0000
committerMichael Palimaka <kensington@gentoo.org>2012-07-03 13:22:54 +0000
commit0ad6982cd131e7f90153cc5e3faf7f825c27767e (patch)
tree83c817f4c9e5a03136897b4b22375d2b2244ecae /kde-misc
parentStable amd64 (diff)
downloadgentoo-2-0ad6982cd131e7f90153cc5e3faf7f825c27767e.tar.gz
gentoo-2-0ad6982cd131e7f90153cc5e3faf7f825c27767e.tar.bz2
gentoo-2-0ad6982cd131e7f90153cc5e3faf7f825c27767e.zip
Fix build with GCC 4.7, wrt bug #424567.
(Portage version: 2.1.11.4/cvs/Linux x86_64)
Diffstat (limited to 'kde-misc')
-rw-r--r--kde-misc/krcstat/ChangeLog9
-rw-r--r--kde-misc/krcstat/files/krcstat-0.7.3-gcc-4.7.patch10
-rw-r--r--kde-misc/krcstat/krcstat-0.7.3.ebuild6
3 files changed, 20 insertions, 5 deletions
diff --git a/kde-misc/krcstat/ChangeLog b/kde-misc/krcstat/ChangeLog
index ea93c177e6f3..b3f95093b9e2 100644
--- a/kde-misc/krcstat/ChangeLog
+++ b/kde-misc/krcstat/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for kde-misc/krcstat
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-misc/krcstat/ChangeLog,v 1.2 2011/04/20 20:38:44 scarabeus Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/krcstat/ChangeLog,v 1.3 2012/07/03 13:22:54 kensington Exp $
+
+ 03 Jul 2012; Michael Palimaka <kensington@gentoo.org>
+ +files/krcstat-0.7.3-gcc-4.7.patch, krcstat-0.7.3.ebuild:
+ Fix build with GCC 4.7, wrt bug #424567.
*krcstat-0.7.3 (20 Apr 2011)
@@ -13,4 +17,3 @@
02 Jan 2011; Theo Chatzimichos <tampakrap@gentoo.org> +krcstat-0.7.2.ebuild,
+metadata.xml:
Initial commit, bug 282310
-
diff --git a/kde-misc/krcstat/files/krcstat-0.7.3-gcc-4.7.patch b/kde-misc/krcstat/files/krcstat-0.7.3-gcc-4.7.patch
new file mode 100644
index 000000000000..e111f8879c5b
--- /dev/null
+++ b/kde-misc/krcstat/files/krcstat-0.7.3-gcc-4.7.patch
@@ -0,0 +1,10 @@
+--- src/krcstat.cpp
++++ src/krcstat.cpp
+@@ -58,6 +58,7 @@
+ #include <fstream>
+ #include <stdlib.h>
+ #include <errno.h>
++#include <unistd.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+
diff --git a/kde-misc/krcstat/krcstat-0.7.3.ebuild b/kde-misc/krcstat/krcstat-0.7.3.ebuild
index c9391de15eb1..c50451b80872 100644
--- a/kde-misc/krcstat/krcstat-0.7.3.ebuild
+++ b/kde-misc/krcstat/krcstat-0.7.3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-misc/krcstat/krcstat-0.7.3.ebuild,v 1.1 2011/04/20 20:38:44 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/krcstat/krcstat-0.7.3.ebuild,v 1.2 2012/07/03 13:22:54 kensington Exp $
EAPI=4
@@ -19,3 +19,5 @@ DEPEND="
$(add_kdebase_dep konsole)
"
RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-gcc-4.7.patch" )