Bug 1016674

Summary: net-tools should move binaries to /usr/bin and /usr/sbin
Product: [Fedora] Fedora Reporter: Tomáš Hozza <thozza>
Component: net-toolsAssignee: Jiri Popelka <jpopelka>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: jpopelka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: net-tools-2.0-0.15.20131004git.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-10 10:09:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomáš Hozza 2013-10-08 13:56:27 UTC
Description of problem:
As of Fedora 17, the top level directories /bin and /sbin are just symlinks
to /usr/bin /usr/sbin. However net-tools installs all of its binaries to
those top level directories.

Since we have Fedora 19 already I would expect "yum provides /usr/bin/netstat" to tell me which package provides netstat binary. However because net-tools
installs binaries into top level dirs, this is not possible.

Version-Release number of selected component (if applicable):
net-tools-2.0-0.6.20130109git.fc19.x86_64

How reproducible:
always

Steps to Reproduce:
1. yum provides /usr/bin/netstat
2. yum install net-tools && rpm -ql net-tools

Actual results:
/bin/netstat
/sbin/arp
/sbin/ether-wake
/sbin/ifconfig
/sbin/ipmaddr
/sbin/iptunnel
/sbin/mii-diag
/sbin/mii-tool
/sbin/nameif
/sbin/plipconfig
/sbin/route
/sbin/slattach
...

Expected results:
/usr/bin/netstat
/usr/sbin/arp
/usr/sbin/ether-wake
/usr/sbin/ifconfig
/usr/sbin/ipmaddr
/usr/sbin/iptunnel
/usr/sbin/mii-diag
/usr/sbin/mii-tool
/usr/sbin/nameif
/usr/sbin/plipconfig
/usr/sbin/route
/usr/sbin/slattach

Additional info:
http://fedoraproject.org/wiki/Features/UsrMove

Comment 1 Jiri Popelka 2013-10-08 14:56:58 UTC
(In reply to Tomas Hozza from comment #0)
> Expected results:
> /usr/sbin/ifconfig
> /usr/sbin/route

Upstream decided some time ago that ifconfig & route should be in /bin instead of /sbin. I've been moving them back to /bin up to now but I think it's time to be in sync with upstream so correct would be:

/usr/bin/ifconfig
/usr/bin/route

Comment 2 Jiri Popelka 2013-10-08 14:58:06 UTC
(In reply to Jiri Popelka from comment #1)
> I've been moving them back to /bin

back to /sbin

Comment 3 Tomáš Hozza 2013-10-10 11:01:10 UTC
Thanks for quick fix...