diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-28 20:57:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-28 20:57:55 +0000 |
commit | 3ade4c6a0c2a87abb16561afb0e3cfa6beed0d10 (patch) | |
tree | 697c3da94cddbd85cfe7dd6bf530165f209a81f5 /net-misc | |
parent | give to net-irc since this is part of the ezbounce irc package (diff) | |
download | gentoo-2-3ade4c6a0c2a87abb16561afb0e3cfa6beed0d10.tar.gz gentoo-2-3ade4c6a0c2a87abb16561afb0e3cfa6beed0d10.tar.bz2 gentoo-2-3ade4c6a0c2a87abb16561afb0e3cfa6beed0d10.zip |
Fix some broken C++ code #116999 by Markus Ullmann.
(Portage version: 2.1_pre2)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/mdidentd/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/mdidentd/files/mdidentd-1.04a-c++.patch | 23 | ||||
-rw-r--r-- | net-misc/mdidentd/mdidentd-1.04a.ebuild | 24 |
3 files changed, 40 insertions, 15 deletions
diff --git a/net-misc/mdidentd/ChangeLog b/net-misc/mdidentd/ChangeLog index aedcc07431cf..095ffc0a043d 100644 --- a/net-misc/mdidentd/ChangeLog +++ b/net-misc/mdidentd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/mdidentd -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mdidentd/ChangeLog,v 1.4 2005/08/23 13:20:13 flameeyes Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/mdidentd/ChangeLog,v 1.5 2005/12/28 20:57:55 vapier Exp $ + + 28 Dec 2005; Mike Frysinger <vapier@gentoo.org> + +files/mdidentd-1.04a-c++.patch, mdidentd-1.04a.ebuild: + Fix some broken C++ code #116999 by Markus Ullmann. 23 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> mdidentd-1.04a.ebuild: Use -1 instead of /bin/false on enewuser call. diff --git a/net-misc/mdidentd/files/mdidentd-1.04a-c++.patch b/net-misc/mdidentd/files/mdidentd-1.04a-c++.patch new file mode 100644 index 000000000000..a40f078e0040 --- /dev/null +++ b/net-misc/mdidentd/files/mdidentd-1.04a-c++.patch @@ -0,0 +1,23 @@ +Fix some broken C++ code ... __list_iter doesn't implement get(), nor +does __list_core implement insert() ... + +http://bugs.gentoo.org/116999 + +--- ezbounce-1.04a/lib/linkedlist.h ++++ ezbounce-1.04a/lib/linkedlist.h +@@ -89,7 +89,6 @@ public: + list_iterator(__list_core * x) : __list_iter(x) { } + T * next() { return (T *) __list_iter::next(); } + T * remove() { return (T *) __list_iter::remove(); } +- T * get(void) { return (T *) __list_iter::get(); } + T * set(int x) { return (T *) __list_iter::set(x); } + }; + +@@ -97,7 +96,6 @@ template <class T> class list : public _ + { + public: + int add(T *x) { return __list_core::add((void *) x); } +- int add(int w, T * x) { return __list_core::insert(w, (void *) x); } + T * get(int idx) { return (T *) __list_core::get(idx); } + T * remove(int idx) { return (T *) __list_core::remove(idx); } + bool remove(T * d) { return __list_core::remove(d); } diff --git a/net-misc/mdidentd/mdidentd-1.04a.ebuild b/net-misc/mdidentd/mdidentd-1.04a.ebuild index 037571ee4811..47d9fa57d97b 100644 --- a/net-misc/mdidentd/mdidentd-1.04a.ebuild +++ b/net-misc/mdidentd/mdidentd-1.04a.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/net-misc/mdidentd/mdidentd-1.04a.ebuild,v 1.7 2005/08/23 13:20:13 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/mdidentd/mdidentd-1.04a.ebuild,v 1.8 2005/12/28 20:57:55 vapier Exp $ inherit eutils @@ -10,11 +10,10 @@ SRC_URI="http://druglord.freelsd.org/ezbounce/ezbounce-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86 ~ppc" +KEYWORDS="~amd64 ~ppc ~x86" IUSE="ssl" -DEPEND="virtual/libc - ssl? ( dev-libs/openssl )" +DEPEND="ssl? ( dev-libs/openssl )" S=${WORKDIR}/ezbounce-${PV} @@ -25,22 +24,21 @@ pkg_setup() { src_unpack() { unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PV}-security.patch - epatch ${FILESDIR}/${PV}-pidfile.patch + cd "${S}" + epatch "${FILESDIR}"/${PV}-security.patch + epatch "${FILESDIR}"/${PV}-pidfile.patch + epatch "${FILESDIR}"/${P}-c++.patch #116999 } src_compile() { - econf `use_with ssl` || die + econf $(use_with ssl) || die emake -C mdidentd CXX_OPTIMIZATIONS="${CXXFLAGS}" || die } src_install() { - dosbin mdidentd/mdidentd + dosbin mdidentd/mdidentd || die dodoc mdidentd/README - exeinto /etc/init.d - newexe ${FILESDIR}/mdidentd.init.d mdidentd - insinto /etc/conf.d - newins ${FILESDIR}/mdidentd.conf.d mdidentd + newinitd "${FILESDIR}"/mdidentd.init.d mdidentd + newconfd "${FILESDIR}"/mdidentd.conf.d mdidentd } |