diff options
Diffstat (limited to 'dev-libs/newt')
-rw-r--r-- | dev-libs/newt/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/newt/files/newt-CVE-2009-2905.patch | 11 | ||||
-rw-r--r-- | dev-libs/newt/newt-0.52.10-r1.ebuild | 87 |
3 files changed, 5 insertions, 99 deletions
diff --git a/dev-libs/newt/ChangeLog b/dev-libs/newt/ChangeLog index 91003489e8d6..7bc5f8f0f1e9 100644 --- a/dev-libs/newt/ChangeLog +++ b/dev-libs/newt/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/newt # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/ChangeLog,v 1.73 2011/03/01 01:19:47 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/ChangeLog,v 1.74 2011/03/01 14:06:45 arfrever Exp $ + + 01 Mar 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -newt-0.52.10-r1.ebuild, -files/newt-CVE-2009-2905.patch: + Delete. 01 Mar 2011; Brent Baude <ranger@gentoo.org> newt-0.52.12.ebuild: stable ppc64, bug 349905 diff --git a/dev-libs/newt/files/newt-CVE-2009-2905.patch b/dev-libs/newt/files/newt-CVE-2009-2905.patch deleted file mode 100644 index 1e45af836519..000000000000 --- a/dev-libs/newt/files/newt-CVE-2009-2905.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up newt-0.52.10/textbox.c.orig newt-0.52.10/textbox.c ---- newt-0.52.10/textbox.c.orig 2008-07-30 14:42:55.000000000 +0200 -+++ newt-0.52.10/textbox.c 2009-09-21 14:59:24.000000000 +0200 -@@ -179,7 +179,7 @@ static void doReflow(const char * text, - - if (resultPtr) { - /* XXX I think this will work */ -- result = malloc(strlen(text) + (strlen(text) / width) + 2); -+ result = malloc(strlen(text) + (strlen(text) / (width - 1)) + 2); - *result = '\0'; - } diff --git a/dev-libs/newt/newt-0.52.10-r1.ebuild b/dev-libs/newt/newt-0.52.10-r1.ebuild deleted file mode 100644 index 4ef17270beae..000000000000 --- a/dev-libs/newt/newt-0.52.10-r1.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/newt/newt-0.52.10-r1.ebuild,v 1.9 2010/12/27 22:30:03 arfrever Exp $ - -EAPI="3" -PYTHON_DEPEND="2" - -inherit python toolchain-funcs eutils rpm - -DESCRIPTION="Redhat's Newt windowing toolkit development files" -HOMEPAGE="https://fedorahosted.org/newt/" -SRC_URI="https://fedorahosted.org/releases/n/e/newt/${P}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86" -IUSE="gpm tcl nls" - -RDEPEND="=sys-libs/slang-2* - >=dev-libs/popt-1.6 - elibc_uclibc? ( sys-libs/ncurses ) - gpm? ( sys-libs/gpm ) - tcl? ( =dev-lang/tcl-8.5* ) - " - -DEPEND="${RDEPEND}" - -pkg_setup() { - python_set_active_version 2 - python_pkg_setup -} - -src_unpack() { - unpack ${A} - #rpm_src_unpack - cd "${S}" - - # bug 73850 - if use elibc_uclibc; then - sed -i -e 's:-lslang:-lslang -lncurses:g' "${S}"/Makefile.in - fi - - # bug 212676 - sed -i -e 's:-ltcl8.4:-ltcl8.5:g' "${S}"/Makefile.in - - sed -i -e 's:instroot:DESTDIR:g' "${S}"/Makefile.in || die - - # bug 285854 - epatch "${FILESDIR}"/newt-CVE-2009-2905.patch -} - -src_compile() { - econf \ - $(use_with gpm gpm-support) \ - $(use_with tcl) \ - $(use_enable nls) - - # not parallel safe - emake -j1 \ - CC="$(tc-getCC)" \ - PYTHONVERS="$(PYTHON)" \ - RPM_OPT_FLAGS="${CFLAGS}" \ - || die "emake failed" -} - -src_install () { - # the RPM_OPT_FLAGS="ERROR" is there to catch a build error - # if it fails, that means something in src_compile() didn't build properly - # not parallel safe - emake \ - DESTDIR="${D}" \ - prefix="/usr" \ - libdir="/usr/$(get_libdir)" \ - PYTHONVERS="$(PYTHON)" \ - RPM_OPT_FLAGS="ERROR" \ - install || die "make install failed" - dodoc peanuts.py popcorn.py tutorial.sgml - doman whiptail.1 -} - -pkg_postinst() { - python_mod_optimize snack.py -} - -pkg_postrm() { - python_mod_cleanup snack.py -} |