Bug 1538359

Summary: glibc rpm installs ldconfig and sln to /sbin
Product: [Fedora] Fedora Reporter: Van de Bugger <van.de.bugger>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 27CC: aoliva, arjun.is, codonell, dj, fweimer, law, mfabian, pfrankli, rth, siddhesh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-24 22:21:31 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:
Embargoed:

Description Van de Bugger 2018-01-24 22:05:22 UTC
Description of problem:

glibc rpm (either glibc-2.26-24.fc27.i686.rpm or glibc-2.26-24.fc27.x86_64.rpm) installs ldconfig and sln programs to /sbin/ directory. In Fedora 27, /sbin is not a real directory but a symbolic link to usr/sbin directory. It has tricky and confusing consequence: 

$ which ldconfig 
/usr/sbin/ldconfig

$ rpm -qf /usr/sbin/ldconfig
glibc-2.26-21.fc27.x86_64

$ rpm -q --whatprovides /usr/sbin/ldconfig
glibc-2.26-21.fc27.x86_64

Everything looks ok up to now, BUT:

$ dnf provides /usr/sbin/ldconfig
Last metadata expiration check: 1:40:36 ago on Wed 24 Jan 2018 23:16:51 MSK.
Error: No Matches found

So, a package requiring /usr/sbin/ldconfig could not be installed with dnf.


Version-Release number of selected component (if applicable):

Fedora 27, glibc-2.26-24.fc27.x86_64.rpm.


How reproducible:

Always


Steps to Reproduce:
1. Install Fedora 27
2. $ dnf provides /usr/sbin/ldconfig


Actual results:

Error: No Matches found


Expected results:

Repo        : @System
Matched from:
Filename    : /usr/sbin/ldconfig


Additional info:

It could be treated as a bug in dnf. But I think since /bin, /sbin, /lib, and /lib64 directories are officially "retired" in Fedora 27, no files should be installed into these directories, all the files should be installed into /usr/bin, /usr/sbin, /usr/lib and /usr/lib64 directories.

Comment 1 Carlos O'Donell 2018-01-24 22:21:31 UTC

*** This bug has been marked as a duplicate of bug 1063607 ***