diff options
author | 2013-05-02 21:43:45 +0000 | |
---|---|---|
committer | 2013-05-02 21:43:45 +0000 | |
commit | 6fcf4fa8367994327f73afc3bd7354237d68f455 (patch) | |
tree | 7d47b542ae7515c66a48c79bed3c3cfbdbc6999a /app-portage | |
parent | Version bump by Manuel Rüger <gentoo@rueg.eu> and me. (diff) | |
download | gentoo-2-6fcf4fa8367994327f73afc3bd7354237d68f455.tar.gz gentoo-2-6fcf4fa8367994327f73afc3bd7354237d68f455.tar.bz2 gentoo-2-6fcf4fa8367994327f73afc3bd7354237d68f455.zip |
app-portage/elogv: Fix crash with TERM=vt100 (bug #467792)
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/elogv/ChangeLog | 8 | ||||
-rw-r--r-- | app-portage/elogv/elogv-0.7.5-r2.ebuild | 76 | ||||
-rw-r--r-- | app-portage/elogv/files/elogv-0.7.5-vt100.patch | 38 |
3 files changed, 121 insertions, 1 deletions
diff --git a/app-portage/elogv/ChangeLog b/app-portage/elogv/ChangeLog index 08bd48c4c82a..7fda97cc3d7a 100644 --- a/app-portage/elogv/ChangeLog +++ b/app-portage/elogv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-portage/elogv # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/elogv/ChangeLog,v 1.71 2013/02/25 22:12:34 sping Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/elogv/ChangeLog,v 1.72 2013/05/02 21:43:45 sping Exp $ + +*elogv-0.7.5-r2 (02 May 2013) + + 02 May 2013; Sebastian Pipping <sping@gentoo.org> +elogv-0.7.5-r2.ebuild, + +files/elogv-0.7.5-vt100.patch: + Fix crash with TERM=vt100 (bug #467792) 25 Feb 2013; Sebastian Pipping <sping@gentoo.org> elogv-0.7.5-r1.ebuild: Add ~ppc64 keyword (bug #459196) diff --git a/app-portage/elogv/elogv-0.7.5-r2.ebuild b/app-portage/elogv/elogv-0.7.5-r2.ebuild new file mode 100644 index 000000000000..b1af8c985c82 --- /dev/null +++ b/app-portage/elogv/elogv-0.7.5-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-portage/elogv/elogv-0.7.5-r2.ebuild,v 1.1 2013/05/02 21:43:45 sping Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +PYTHON_USE_WITH="ncurses" + +inherit distutils eutils prefix + +DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage" +HOMEPAGE="http://gechi-overlay.sourceforge.net/?page=elogv" +SRC_URI="mirror://sourceforge/gechi-overlay/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="linguas_de linguas_es linguas_it linguas_pl" + +DEPEND="" +RDEPEND="" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-vt100.patch + distutils_src_prepare +} + +src_install() { + distutils_src_install + dodoc README || die + + # Remove unused man pages/LC_MESSAGES according to the linguas flags + if ! use linguas_de ; then + rm -rf "${ED}"/usr/share/locale/de + rm -rf "${ED}"/usr/share/man/de + fi + + if ! use linguas_es ; then + rm -rf "${ED}"/usr/share/locale/es + rm -rf "${ED}"/usr/share/man/es + fi + + if ! use linguas_it ; then + rm -rf "${ED}"/usr/share/locale/it + rm -rf "${ED}"/usr/share/man/it + fi + + if ! use linguas_pl ; then + rm -rf "${ED}"/usr/share/locale/pl + rm -rf "${ED}"/usr/share/man/pl + fi +} + +pkg_postinst() { + distutils_pkg_postinst + + elog + elog "In order to use this software, you need to activate" + elog "Portage's elog features. Required is" + elog " PORTAGE_ELOG_SYSTEM=\"save\" " + elog "and at least one out of " + elog " PORTAGE_ELOG_CLASSES=\"warn error info log qa\"" + elog "More information on the elog system can be found" + elog "in ${EPREFIX}/etc/make.conf.example" + elog + elog "To operate properly this software needs the directory" + elog "${PORT_LOGDIR:-${EPREFIX}/var/log/portage}/elog created, belonging to group portage." + elog "To start the software as a user, add yourself to the portage" + elog "group." + elog +} diff --git a/app-portage/elogv/files/elogv-0.7.5-vt100.patch b/app-portage/elogv/files/elogv-0.7.5-vt100.patch new file mode 100644 index 000000000000..5df26c4750df --- /dev/null +++ b/app-portage/elogv/files/elogv-0.7.5-vt100.patch @@ -0,0 +1,38 @@ +From 68141bf6f469ed7618c7ebd068eb7f8db260dfdb Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Thu, 2 May 2013 23:22:36 +0200 +Subject: [PATCH] Fix crash with TERM=vt100 + +--- + elogv | 15 +++++++++------ + 1 file changed, 9 insertions(+), 6 deletions(-) + +diff --git a/elogv b/elogv +index 53c37cd..a8440d1 100755 +--- a/elogv ++++ b/elogv +@@ -96,12 +96,15 @@ class ElogViewer: + self.screen = screen + + # Our color pairs +- curses.use_default_colors() +- curses.init_pair(selected, curses.COLOR_BLACK, curses.COLOR_WHITE) +- curses.init_pair(einfo, curses.COLOR_GREEN, curses.COLOR_BLACK) +- curses.init_pair(ewarn, curses.COLOR_YELLOW, curses.COLOR_BLACK) +- curses.init_pair(eerror, curses.COLOR_RED, curses.COLOR_BLACK) +- curses.init_pair(elog, curses.COLOR_MAGENTA, curses.COLOR_BLACK) ++ try: ++ curses.use_default_colors() ++ curses.init_pair(selected, curses.COLOR_BLACK, curses.COLOR_WHITE) ++ curses.init_pair(einfo, curses.COLOR_GREEN, curses.COLOR_BLACK) ++ curses.init_pair(ewarn, curses.COLOR_YELLOW, curses.COLOR_BLACK) ++ curses.init_pair(eerror, curses.COLOR_RED, curses.COLOR_BLACK) ++ curses.init_pair(elog, curses.COLOR_MAGENTA, curses.COLOR_BLACK) ++ except curses.error: # e.g. with "TERM=vt100 elogv" invokation ++ pass + + # This attributes are used to manage the scrolling of the list + # of files +-- +1.8.1.5 + |