Bug 1203705

Summary: "dnf provides" doesn't work on all files
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 14:39:07 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 Christian Stadelmann 2015-03-19 13:50:08 UTC
Description of problem:
running 
$ dnf provides /usr/lib/kbd/keymaps/xkb
(or any other file below /usr/lib/kbd/) doesn't give the package providing this file.

running
$ rpm -qf /usr/lib/kbd/keymaps/xkb
works fine and gives 
kbd-misc-2.0.2-3.fc21.noarch

Version-Release number of selected component (if applicable):
dnf 0:0.6.4-1.fc21

Comment 1 Radek Holy 2015-03-19 14:39:07 UTC
Hello, please note that there is no package that explicitly provides /usr/lib/kbd/keymaps/xkb. "kbd-misc-0:2.0.2-3.fc21.noarch" explicitly only provides "/lib/kbd/keymaps/xkb". See also http://dnf.readthedocs.org/en/latest/cli_vs_yum.html#dnf-provides-bin-file-does-not-find-any-packages-on-fedora.

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

Comment 2 Christian Stadelmann 2015-03-20 14:26:33 UTC
Ok, while
$ dnf provides /usr/lib/kbd/keymaps/xkb
doesn't work, 
$ dnf provides /lib/kbd/keymaps/xkb
does. Just in case anyone runs into the same problem.

And if I understand this correct on the long run kbd-misc should generate files to install in /usr/lib/kbd/… instead of /lib/kbd/…, am I right?

Comment 3 Radek Holy 2015-03-24 11:04:13 UTC
Christian, please take a look at https://fedoraproject.org/wiki/Packaging:Guidelines#Effect_of_the_UsrMove_Fedora_Feature .