Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575754 - app-eselect/ifstat: Create eselect module to switch between the implementation of ifstat (sys-apps/iproute2 or net-analyzer/ifstat)
Summary: app-eselect/ifstat: Create eselect module to switch between the implementatio...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-26 19:17 UTC by marius.spix
Modified: 2016-06-01 08:40 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.