From 7d4dab8e885a67938291e514d8022cbd02dae717 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 3 May 2005 04:48:56 +0000 Subject: fix building with -fno-implicit-templates #90819 (Portage version: 2.0.51.21) --- sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch | 17 +++++++++++++++++ sys-libs/ncurses/ncurses-5.4-r5.ebuild | 3 ++- sys-libs/ncurses/ncurses-5.4-r6.ebuild | 3 ++- sys-libs/ncurses/ncurses-5.4.20050319.ebuild | 3 ++- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch (limited to 'sys-libs') diff --git a/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch b/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch new file mode 100644 index 000000000000..60c4b716e2de --- /dev/null +++ b/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch @@ -0,0 +1,17 @@ +Fix building with -fno-implicit-templates. + +http://bugs.gentoo.org/show_bug.cgi?id=90819 + +Patch by Mike Frysinger (C++ sucks btw) + +--- c++/demo.cc ++++ c++/demo.cc +@@ -152,6 +152,8 @@ + return FALSE; + } + }; ++template class MyAction; ++template class NCURSES_IMPEXP NCursesUserItem; + + class QuitItem : public NCursesMenuItem + { diff --git a/sys-libs/ncurses/ncurses-5.4-r5.ebuild b/sys-libs/ncurses/ncurses-5.4-r5.ebuild index 0afbcbb91382..41803a556857 100644 --- a/sys-libs/ncurses/ncurses-5.4-r5.ebuild +++ b/sys-libs/ncurses/ncurses-5.4-r5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r5.ebuild,v 1.23 2005/03/22 18:52:33 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r5.ebuild,v 1.24 2005/05/03 04:48:55 vapier Exp $ inherit eutils flag-o-matic toolchain-funcs @@ -30,6 +30,7 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}"/${P}-xterm.patch epatch "${FILESDIR}"/${P}-share-sed.patch #42336 + epatch "${FILESDIR}"/${P}-c++-templates.patch #90819 } src_compile() { diff --git a/sys-libs/ncurses/ncurses-5.4-r6.ebuild b/sys-libs/ncurses/ncurses-5.4-r6.ebuild index b84a5e173c74..583e1bc359b1 100644 --- a/sys-libs/ncurses/ncurses-5.4-r6.ebuild +++ b/sys-libs/ncurses/ncurses-5.4-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r6.ebuild,v 1.6 2005/05/01 17:17:56 hansmi Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r6.ebuild,v 1.7 2005/05/03 04:48:55 vapier Exp $ inherit eutils flag-o-matic toolchain-funcs @@ -30,6 +30,7 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}"/${P}-xterm.patch epatch "${FILESDIR}"/${P}-share-sed.patch #42336 + epatch "${FILESDIR}"/${P}-c++-templates.patch #90819 } src_compile() { diff --git a/sys-libs/ncurses/ncurses-5.4.20050319.ebuild b/sys-libs/ncurses/ncurses-5.4.20050319.ebuild index 20c0d04fdaa3..5e8d47448201 100644 --- a/sys-libs/ncurses/ncurses-5.4.20050319.ebuild +++ b/sys-libs/ncurses/ncurses-5.4.20050319.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4.20050319.ebuild,v 1.1 2005/04/28 23:08:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4.20050319.ebuild,v 1.2 2005/05/03 04:48:55 vapier Exp $ inherit eutils flag-o-matic toolchain-funcs @@ -35,6 +35,7 @@ src_unpack() { cd "${S}" epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh epatch "${FILESDIR}"/${MY_P}-share-sed.patch #42336 + epatch "${FILESDIR}"/${MY_P}-c++-templates.patch #90819 } src_compile() { -- cgit v1.2.3-65-gdbad