From e47a1ee741b651d9af90d4f095efef595bb5f838 Mon Sep 17 00:00:00 2001 From: Eldad Zack Date: Mon, 22 Nov 2004 17:18:09 +0000 Subject: [PATCH] Added patch to fix 'label at end of compound statement' compile error --- net-analyzer/nettop/ChangeLog | 7 ++++++- net-analyzer/nettop/Manifest | 11 ++++++----- net-analyzer/nettop/files/nettop.c.patch | 10 ++++++++++ net-analyzer/nettop/nettop-0.2.3.ebuild | 8 ++++++-- 4 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 net-analyzer/nettop/files/nettop.c.patch diff --git a/net-analyzer/nettop/ChangeLog b/net-analyzer/nettop/ChangeLog index 619e9f6391db..617b192dc6de 100644 --- a/net-analyzer/nettop/ChangeLog +++ b/net-analyzer/nettop/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/nettop # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nettop/ChangeLog,v 1.7 2004/11/22 17:09:31 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nettop/ChangeLog,v 1.8 2004/11/22 17:18:09 eldad Exp $ + + 22 Nov 2004; Eldad Zack +files/nettop.c.patch, + nettop-0.2.3.ebuild: + Added patch to fix 'label at end of compound statement' compile error. Thanks + to Peter Gantner . Closes #72066. 22 Nov 2004; Eldad Zack nettop-0.2.3.ebuild: die if emake fails. diff --git a/net-analyzer/nettop/Manifest b/net-analyzer/nettop/Manifest index 88fc41d6f880..f190856f84f1 100644 --- a/net-analyzer/nettop/Manifest +++ b/net-analyzer/nettop/Manifest @@ -1,14 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 f7d0b0befc66e01c7fbf47502ceaa26c nettop-0.2.3.ebuild 637 -MD5 2c0099a665fdb9d02f60b5d7cb0320e4 ChangeLog 825 +MD5 bc939cf1fd6cdb9e2d5b48376cb693f5 nettop-0.2.3.ebuild 696 +MD5 5f5936afc59ab3f955e56c77d7364f4a ChangeLog 1065 MD5 59fafa99faf187e744c602a625052f65 metadata.xml 232 +MD5 523f340b61566f16b1a8fcb9343e0f6e files/nettop.c.patch 182 MD5 d1dfb4623376711f1542dc52dcb85a7c files/digest-nettop-0.2.3 63 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) -iD8DBQFBohv/T+MN7JbqCpMRAm2qAKCIiZP64NLtgzP8q0dXV9DltLsusQCdEn15 -fjnx2fFxaNYGWycGI39ZC+M= -=f2Ca +iD8DBQFBoh4XT+MN7JbqCpMRAm5/AJ9zJDQMUR8yzNlVNJbOIf9/eeHRpgCghmYX +hoaxqrZxm8VDV99BzBWEkOw= +=Lunm -----END PGP SIGNATURE----- diff --git a/net-analyzer/nettop/files/nettop.c.patch b/net-analyzer/nettop/files/nettop.c.patch new file mode 100644 index 000000000000..647f8a430edd --- /dev/null +++ b/net-analyzer/nettop/files/nettop.c.patch @@ -0,0 +1,10 @@ +--- nettop.c.orig 2004-11-22 19:06:23.648845592 +0200 ++++ nettop.c 2004-11-22 19:06:38.166638552 +0200 +@@ -361,6 +361,7 @@ + } + break; + default: ++ break; + } + } + } diff --git a/net-analyzer/nettop/nettop-0.2.3.ebuild b/net-analyzer/nettop/nettop-0.2.3.ebuild index 6314b14593fe..dad873f06ff5 100644 --- a/net-analyzer/nettop/nettop-0.2.3.ebuild +++ b/net-analyzer/nettop/nettop-0.2.3.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nettop/nettop-0.2.3.ebuild,v 1.7 2004/11/22 17:09:31 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nettop/nettop-0.2.3.ebuild,v 1.8 2004/11/22 17:18:09 eldad Exp $ + +inherit eutils IUSE="" @@ -17,6 +19,8 @@ DEPEND="sys-libs/slang src_compile() { + epatch ${FILESDIR}/nettop.c.patch + local myconf myconf="--prefix=/usr" ./configure ${myconf} || die @@ -24,6 +28,6 @@ src_compile() { } src_install() { - dosbin nettop + dosbin nettop || die dodoc ChangeLog README THANKS } -- 2.26.2