diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-09-15 06:59:57 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-09-15 06:59:57 +0000 |
commit | 9f19a572f5fcfa1610e816705040ec4bd85c526a (patch) | |
tree | b92c416687a66b33bb413a9257e2d158e222a701 /net-news | |
parent | Add dep on virtual/glu and fix linking with GLU (bug #408301). (diff) | |
download | gentoo-2-9f19a572f5fcfa1610e816705040ec4bd85c526a.tar.gz gentoo-2-9f19a572f5fcfa1610e816705040ec4bd85c526a.tar.bz2 gentoo-2-9f19a572f5fcfa1610e816705040ec4bd85c526a.zip |
Fix build with gcc-4.7 (bug #423517).
(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)
Diffstat (limited to 'net-news')
-rw-r--r-- | net-news/newsbeuter/ChangeLog | 6 | ||||
-rw-r--r-- | net-news/newsbeuter/files/newsbeuter-2.5-gcc47.patch | 61 | ||||
-rw-r--r-- | net-news/newsbeuter/newsbeuter-2.5.ebuild | 6 |
3 files changed, 70 insertions, 3 deletions
diff --git a/net-news/newsbeuter/ChangeLog b/net-news/newsbeuter/ChangeLog index b4696ad0102c..95eebf2365cf 100644 --- a/net-news/newsbeuter/ChangeLog +++ b/net-news/newsbeuter/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-news/newsbeuter # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-news/newsbeuter/ChangeLog,v 1.38 2012/08/03 15:24:40 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-news/newsbeuter/ChangeLog,v 1.39 2012/09/15 06:59:57 radhermit Exp $ + + 15 Sep 2012; Tim Harder <radhermit@gentoo.org> newsbeuter-2.5.ebuild, + +files/newsbeuter-2.5-gcc47.patch: + Fix build with gcc-4.7 (bug #423517). 03 Aug 2012; Markos Chandras <hwoarang@gentoo.org> newsbeuter-2.5.ebuild: Stable on amd64 wrt bug #419327 diff --git a/net-news/newsbeuter/files/newsbeuter-2.5-gcc47.patch b/net-news/newsbeuter/files/newsbeuter-2.5-gcc47.patch new file mode 100644 index 000000000000..48ed1682a3ed --- /dev/null +++ b/net-news/newsbeuter/files/newsbeuter-2.5-gcc47.patch @@ -0,0 +1,61 @@ +--- newsbeuter-2.5/src/controller.cpp ++++ newsbeuter-2.5/src/controller.cpp +@@ -30,6 +30,7 @@ + #include <ctime> + #include <cassert> + #include <signal.h> ++#include <unistd.h> + #include <sys/utsname.h> + #include <langinfo.h> + #include <libgen.h> +--- newsbeuter-2.5/src/google_api.cpp ++++ newsbeuter-2.5/src/google_api.cpp +@@ -7,6 +7,8 @@ + #include <config.h> + #include <utils.h> + ++#include <unistd.h> ++ + #include <curl/curl.h> + + #define GREADER_LOGIN "https://www.google.com/accounts/ClientLogin" +--- newsbeuter-2.5/src/pb_controller.cpp ++++ newsbeuter-2.5/src/pb_controller.cpp +@@ -12,6 +12,7 @@ + #include <pwd.h> + #include <cstdlib> + #include <signal.h> ++#include <unistd.h> + + #include <keymap.h> + #include <configcontainer.h> +--- newsbeuter-2.5/src/queueloader.cpp ++++ newsbeuter-2.5/src/queueloader.cpp +@@ -8,6 +8,8 @@ + #include <config.h> + #include <libgen.h> + ++#include <unistd.h> ++ + using namespace newsbeuter; + + namespace podbeuter { +--- newsbeuter-2.5/src/reloadthread.cpp ++++ newsbeuter-2.5/src/reloadthread.cpp +@@ -1,5 +1,6 @@ + #include <reloadthread.h> + #include <logger.h> ++#include <unistd.h> + + namespace newsbeuter { + +--- newsbeuter-2.5/src/utils.cpp ++++ newsbeuter-2.5/src/utils.cpp +@@ -11,6 +11,7 @@ + #include <libgen.h> + #include <sys/utsname.h> + ++#include <unistd.h> + #include <sstream> + #include <locale> + #include <cwchar> diff --git a/net-news/newsbeuter/newsbeuter-2.5.ebuild b/net-news/newsbeuter/newsbeuter-2.5.ebuild index ba1aa79d01d9..527ee06575bd 100644 --- a/net-news/newsbeuter/newsbeuter-2.5.ebuild +++ b/net-news/newsbeuter/newsbeuter-2.5.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-news/newsbeuter/newsbeuter-2.5.ebuild,v 1.4 2012/08/03 15:24:40 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-news/newsbeuter/newsbeuter-2.5.ebuild,v 1.5 2012/09/15 06:59:57 radhermit Exp $ EAPI="4" -inherit toolchain-funcs +inherit toolchain-funcs eutils DESCRIPTION="A RSS/Atom feed reader for the text console" HOMEPAGE="http://www.newsbeuter.org/index.html" @@ -38,6 +38,8 @@ src_prepare() { -e "s:-ggdb:${CXXFLAGS}:" \ -e "s:^CXX=.*:CXX=$(tc-getCXX):" \ Makefile + + epatch "${FILESDIR}"/${P}-gcc47.patch } src_configure() { |