diff options
author | Thomas Anderson <tanderson@gentoo.org> | 2009-06-13 12:40:41 +0000 |
---|---|---|
committer | Thomas Anderson <tanderson@gentoo.org> | 2009-06-13 12:40:41 +0000 |
commit | 7ff3afd1439bd71c9ba6ab406e83248e2d3021a4 (patch) | |
tree | 08519cc5859d65c96a5605171631680286946fc2 /sys-process | |
parent | slotmove of app-backup/konserve to 3.5 (diff) | |
download | historical-7ff3afd1439bd71c9ba6ab406e83248e2d3021a4.tar.gz historical-7ff3afd1439bd71c9ba6ab406e83248e2d3021a4.tar.bz2 historical-7ff3afd1439bd71c9ba6ab406e83248e2d3021a4.zip |
Version bump to 0.8.2, bug 273770; Thanks to Lars Wendler (polynomial-c@gentoo.org) for the report and help on finding patches; Also fixes bug #258112; Adds lsof support; Add a patch to fix crashes when pressing keys 'a' or 'F6'; QA fix for implicit RDEPEND in 0.8.1-r1.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/htop/ChangeLog | 12 | ||||
-rw-r--r-- | sys-process/htop/Manifest | 7 | ||||
-rw-r--r-- | sys-process/htop/files/htop-0.8.2-illegaladdrcopy.patch | 73 | ||||
-rw-r--r-- | sys-process/htop/htop-0.8.1-r1.ebuild | 4 | ||||
-rw-r--r-- | sys-process/htop/htop-0.8.2.ebuild | 52 |
5 files changed, 144 insertions, 4 deletions
diff --git a/sys-process/htop/ChangeLog b/sys-process/htop/ChangeLog index c6d0c3440bed..fac3cf42a64c 100644 --- a/sys-process/htop/ChangeLog +++ b/sys-process/htop/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for sys-process/htop # Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/ChangeLog,v 1.74 2009/03/15 20:20:51 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/ChangeLog,v 1.75 2009/06/13 12:40:41 gentoofan23 Exp $ + +*htop-0.8.2 (13 Jun 2009) + + 13 Jun 2009; Thomas Anderson <gentoofan23@gentoo.org> + +files/htop-0.8.2-illegaladdrcopy.patch, htop-0.8.1-r1.ebuild, + +htop-0.8.2.ebuild: + Version bump to 0.8.2, bug 273770; Thanks to Lars Wendler + (polynomial-c@gentoo.org) for the report and help on finding patches; Also + fixes bug #258112; Adds lsof support; Add a patch to fix crashes when + pressing keys 'a' or 'F6'; QA fix for implicit RDEPEND in 0.8.1-r1. 15 Mar 2009; Raúl Porcel <armin76@gentoo.org> htop-0.8.1-r1.ebuild: alpha stable diff --git a/sys-process/htop/Manifest b/sys-process/htop/Manifest index 1332347419e8..2a9caa13cb7b 100644 --- a/sys-process/htop/Manifest +++ b/sys-process/htop/Manifest @@ -1,7 +1,10 @@ AUX htop-0.8.1-desktop-entry.patch 396 RMD160 a86dbdf0856410707d3b352df43c10dddfb3d807 SHA1 4f852f1a9be20bb6d49369c43d43d0c2560f6c49 SHA256 fad5d148a176b61b2ceeba0dfefd6dc9efd54704ff8f845f6b7ef695a49f2625 AUX htop-0.8.1-no-plpa.patch 3206 RMD160 0a64aee22a69a7b4b80d2df3bae666d30efb2564 SHA1 b254da652488c8238e7dd2356f57db472416ce1d SHA256 866cacdd7572fc5d013aad40195d6b863d16c556d9f3b96d0ddfe71d776bafaa AUX htop-0.8.1-non-printable-char-filter.patch 576 RMD160 eb716cf0a079b4a06aa60c763c2b3ecb138aa82e SHA1 1ade154e42525b3e04210eb7375e1543ed6d87f5 SHA256 e4ff4eb727b9baae514589ec99d08f3c9f5160618dae493fcacca92473de68a7 +AUX htop-0.8.2-illegaladdrcopy.patch 3414 RMD160 c5bc3677f3e51729439f665260665270d55833ce SHA1 ca3bee8970f665454c33495bffb7ba5b7db0a024 SHA256 41057a981d2226f751030fcfe784864dfb6684995680b4d1ca06913440122a16 DIST htop-0.8.1.tar.gz 414870 RMD160 8e73a9b31b6a48d4680c4df06c280c8d1bc125da SHA1 b41b4d83ab7ac40b79f6eeb730cd561293b62fd4 SHA256 25ae28202fa4b782ed0e1298d3feee407bdeb56eaf9c652d0a6f9dbf22125d28 -EBUILD htop-0.8.1-r1.ebuild 1333 RMD160 5947cd7a1ac9fef989a2764417eeada48545753a SHA1 c35499651b5fb2d977eaac4928e63149415900f9 SHA256 94f78ed644e96a16a0c3d573d820aa7b1dd97ac304bac29f578d95c19d154b8e -MISC ChangeLog 10035 RMD160 0ea5531d4e3b0bcf025ce041dc9e228bb5355eee SHA1 9d9cd2e85a75b5078655d8fcd446eafec8af6ad6 SHA256 ac78a99562fb92d520f5b11875861c13438bb95f7eaa575a8a039e9024b9e8ef +DIST htop-0.8.2.tar.gz 418756 RMD160 0f45cac3e503c9633876347b049a9c2be09a4b5e SHA1 d4a9fe8b864276fdb037633ba9c5b3b3c4541e66 SHA256 8e77ad7dbf6333ed158dcd3ab16da346ded680fd50a1c258e3a6771e4ca1c707 +EBUILD htop-0.8.1-r1.ebuild 1358 RMD160 60a74f525922d831516242a99194db803894a513 SHA1 b2a58ef70960151d7c1337b01d206e19f8f84f9f SHA256 e63cf25023deaacbd528e2b0960268be8508c4d48cd34381141788cb2fd0c363 +EBUILD htop-0.8.2.ebuild 1570 RMD160 0f697d26140cdc5d265aa7ab3bcef0dcfcba0a69 SHA1 47bf240674852a76e1658cffcf1589d637103f7d SHA256 72eb98ccbed21f4de37b495766f65a47a3834f48ed7761448196604e322671a9 +MISC ChangeLog 10489 RMD160 e4bf1839ea4e8d28ae6d0d1ddd84590da6791e6a SHA1 f6929cabf2588adfb9abd266a16e31c9b1749e6e SHA256 ea623125bd29abcc7ebcc4a8692737d20b3a83d71438798709bb17a6fca838ae MISC metadata.xml 618 RMD160 dd00a14cdcd692f6c4efd5107cc0e97f2ea915c6 SHA1 4b96f9a5c5964bc4182eed3acdb59e6b9d9b0559 SHA256 b04ca9e5e1cde68556c792812c5ba650727c43513cf577296a6ed24c8d18256d diff --git a/sys-process/htop/files/htop-0.8.2-illegaladdrcopy.patch b/sys-process/htop/files/htop-0.8.2-illegaladdrcopy.patch new file mode 100644 index 000000000000..6202d4ba0690 --- /dev/null +++ b/sys-process/htop/files/htop-0.8.2-illegaladdrcopy.patch @@ -0,0 +1,73 @@ +Found from http://sourceforge.net/tracker/?func=detail&aid=2803527&group_id=108839&atid=651633 + +Index: FunctionBar.c +=================================================================== +--- FunctionBar.c (revision 162) ++++ FunctionBar.c (working copy) +@@ -52,12 +52,14 @@ FunctionBar* FunctionBar_new(char** func + this->functions = malloc(sizeof(char*) * 15); + this->keys = malloc(sizeof(char*) * 15); + this->events = malloc(sizeof(int) * 15); +- int i = 0; +- while (i < 15 && functions[i]) { ++ int i; ++ for (i = 0; i < 15; i++) { ++ if (functions[i] == NULL) /* We don't know the size of the array, */ ++ break; /* so let's assume it is NULL terminated */ ++ /* and break if we find that NULL */ + this->functions[i] = String_copy(functions[i]); + this->keys[i] = String_copy(keys[i]); + this->events[i] = events[i]; +- i++; + } + this->size = i; + } else { +Index: htop.c +=================================================================== +--- htop.c (revision 162) ++++ htop.c (working copy) +@@ -151,7 +151,7 @@ static void showHelp(ProcessList* pl) { + clear(); + } + +-static char* CategoriesFunctions[10] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done "}; ++static char* CategoriesFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL}; + + static void Setup_run(Settings* settings, int headerHeight) { + ScreenManager* scr = ScreenManager_new(0, headerHeight, 0, -1, HORIZONTAL, true); +@@ -190,7 +190,7 @@ static HandlerResult pickWithEnter(Panel + } + + static Object* pickFromVector(Panel* panel, Panel* list, int x, int y, char** keyLabels, FunctionBar* prevBar) { +- char* fuKeys[2] = {"Enter", "Esc"}; ++ char* fuKeys[] = {"Enter", "Esc", NULL}; + int fuEvents[2] = {13, 27}; + if (!list->eventHandler) + Panel_setEventHandler(list, pickWithEnter); +@@ -326,7 +326,7 @@ int main(int argc, char** argv) { + Panel_setRichHeader(panel, ProcessList_printHeader(pl)); + + char* searchFunctions[] = {"Next ", "Exit ", " Search: ", NULL}; +- char* searchKeys[] = {"F3", "Esc", " "}; ++ char* searchKeys[] = {"F3", "Esc", " ", NULL}; + int searchEvents[] = {KEY_F(3), 27, ERR}; + FunctionBar* searchBar = FunctionBar_new(searchFunctions, searchKeys, searchEvents); + +@@ -656,7 +656,7 @@ int main(int argc, char** argv) { + + Panel* affinityPanel = AffinityPanel_new(pl->processorCount, curr); + +- char* fuFunctions[2] = {"Set ", "Cancel "}; ++ char* fuFunctions[3] = {"Set ", "Cancel ", NULL}; + void* set = pickFromVector(panel, affinityPanel, 15, headerHeight, fuFunctions, defaultBar); + if (set) { + unsigned long new = AffinityPanel_getAffinity(affinityPanel); +@@ -695,7 +695,7 @@ int main(int argc, char** argv) { + { + Panel* sortPanel = Panel_new(0, 0, 0, 0, LISTITEM_CLASS, true, ListItem_compare); + Panel_setHeader(sortPanel, "Sort by"); +- char* fuFunctions[2] = {"Sort ", "Cancel "}; ++ char* fuFunctions[] = {"Sort ", "Cancel ", NULL}; + ProcessField* fields = pl->fields; + for (int i = 0; fields[i]; i++) { + char* name = String_trim(Process_fieldTitles[fields[i]]); diff --git a/sys-process/htop/htop-0.8.1-r1.ebuild b/sys-process/htop/htop-0.8.1-r1.ebuild index f82be85aafc8..3016a936dcf4 100644 --- a/sys-process/htop/htop-0.8.1-r1.ebuild +++ b/sys-process/htop/htop-0.8.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/htop-0.8.1-r1.ebuild,v 1.10 2009/03/15 20:20:51 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/htop-0.8.1-r1.ebuild,v 1.11 2009/06/13 12:40:41 gentoofan23 Exp $ EAPI="2" @@ -13,7 +13,9 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" + DEPEND="sys-libs/ncurses[unicode?]" +RDEPEND="${DEPEND}" pkg_setup() { if use elibc_FreeBSD && ! [[ -f "${ROOT}"/proc/stat && -f "${ROOT}"/proc/meminfo ]] ; then diff --git a/sys-process/htop/htop-0.8.2.ebuild b/sys-process/htop/htop-0.8.2.ebuild new file mode 100644 index 000000000000..345987925114 --- /dev/null +++ b/sys-process/htop/htop-0.8.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/htop-0.8.2.ebuild,v 1.1 2009/06/13 12:40:41 gentoofan23 Exp $ + +EAPI="2" +inherit eutils flag-o-matic multilib + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://htop.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="debug" + +DEPEND="sys-libs/ncurses[unicode]" +RDEPEND="${DEPEND}" + +pkg_setup() { + if use elibc_FreeBSD && ! [[ -f "${ROOT}"/proc/stat && -f "${ROOT}"/proc/meminfo ]] ; then + eerror + eerror "htop needs /proc mounted to compile and work, to mount it type" + eerror "mount -t linprocfs none /proc" + eerror "or uncomment the example in /etc/fstab" + eerror + die "htop needs /proc mounted" + fi + + if ! has_version sys-process/lsof ; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8.1-non-printable-char-filter.patch \ + "${FILESDIR}"/${P}-illegaladdrcopy.patch +} + +src_configure() { + useq debug && append-flags -O -ggdb -DDEBUG + econf \ + --enable-taskstats \ + --enable-unicode +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc README ChangeLog TODO || die "documentation installation failed." + rmdir "${D}"/usr/{include,$(get_libdir)} || die "Removing empty directory failed." +} |