Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571876 - net-analyzer/nethogs-0.8.0-r4 with kernel >=4.3.0 - nethogs: creating socket failed while establishing local IP - are you root?
Summary: net-analyzer/nethogs-0.8.0-r4 with kernel >=4.3.0 - nethogs: creating socket ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-14 10:57 UTC by poncho
Modified: 2016-01-15 06:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nethogs-0.8.1.patch (nethogs-0.8.1.patch,1023 bytes, patch)
2016-01-14 11:03 UTC, poncho
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description poncho 2016-01-14 10:57:46 UTC
~ # id
uid=0(root) gid=0(root)
~ # nethogs wl0
creating socket failed while establishing local IP - are you root?
~ # 

this is fixed in nethogs 0.8.1
see: https://github.com/raboof/nethogs/issues/9
Comment 1 poncho 2016-01-14 11:03:17 UTC
Created attachment 422870 [details, diff]
nethogs-0.8.1.patch
Comment 2 poncho 2016-01-14 16:32:13 UTC
Hi Jeroen
Was there something wrong with my patch? Why did you mark it as obsolete?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2016-01-15 06:16:18 UTC
Comment on attachment 422870 [details, diff]
nethogs-0.8.1.patch

>diff --git a/net-analyzer/nethogs/nethogs-0.8.1.ebuild b/net-analyzer/nethogs/nethogs-0.8.1.ebuild
>index 8629980..0fe6a4b 100644
>--- a/net-analyzer/nethogs/nethogs-0.8.1.ebuild
>+++ b/net-analyzer/nethogs/nethogs-0.8.1.ebuild
>@@ -4,15 +4,13 @@
> 
> EAPI=5
> 
>-inherit eutils toolchain-funcs
>-

Why did you drop these?

> DESCRIPTION="A small 'net top' tool, grouping bandwidth by process"
>-HOMEPAGE="http://nethogs.sf.net/"
>-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
>+HOMEPAGE="https://raboof.github.io/nethogs/"
>+SRC_URI="https://github.com/raboof/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

OK.

>-LICENSE="GPL-1"
>+LICENSE="GPL-2"

OK.

> SLOT="0"
>-KEYWORDS="amd64 ~arm ~ia64 x86"
>+KEYWORDS="~amd64 ~x86"

You dropped unstable keywords, why?

> RDEPEND="
> 	net-libs/libpcap
>@@ -23,11 +21,9 @@ DEPEND="
> 	virtual/pkgconfig
> "
> 
>-DOCS=( Changelog DESIGN README )
>-
>-S=${WORKDIR}/${PN}
>+DOCS=( Changelog DESIGN README.md )
> 
>-src_prepare() {
>-	epatch "${FILESDIR}"/${P}-gentoo.patch
>-	tc-export CC CXX PKG_CONFIG

Now the wrong compiler is used and pkg-config is not used. This breaks cross-compiling and building against sys-libs/ncurses[tinfo], respectively (or whichever comes first).
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-01-15 06:18:36 UTC
0.8.1 in the tree. Thanks for the report!