Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 575754

Summary: app-eselect/ifstat: Create eselect module to switch between the implementation of ifstat (sys-apps/iproute2 or net-analyzer/ifstat)
Product: Gentoo Linux Reporter: marius.spix
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: jer, netmon
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description marius.spix 2016-02-26 19:17:22 UTC
I noted that the packages sys-apps/iproute2 and net-analyzer/ifstat both provide an implementation of ifstat (1).

The sys-apps/iproute2 implementation defaults to /sbin/ifstat and the net-analyzer/ifstat implementation to /usr/bin/ifstat, so that a different implementation is called depending on the users' PATH variable, when you only type ifstat without the full path to the binary.

My suggestion is to create a eselect module which gives lets you choose the default implementation to fix that issue.
Comment 1 William Hubbs gentoo-dev 2016-03-06 03:54:41 UTC
I would rather find out if we need the one in net-analyzer/ifstat or if
they are fully compatible.

If they are, we may be able to have the packages block each other.

Two packages that have binaries with the same name shouldn't be able to
be installed at the same time.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-06-01 08:40:52 UTC
(In reply to William Hubbs from comment #1)
> I would rather find out if we need the one in net-analyzer/ifstat or if
> they are fully compatible.
> 
> If they are, we may be able to have the packages block each other.

They're not compatible.

> Two packages that have binaries with the same name shouldn't be able to
> be installed at the same time.

They install binaries with the same name to different paths:

/sbin/ifstat (sys-apps/iproute2)
/usr/bin/ifstat (net-analyzer/ifstat)

so they needn't block at all.