Description of problem: yum resolvedep can't resolve filedeps. # yum resolvedep /usr/share/fonts/liberation/LiberationSerif-Italic.ttf Importing additional filelist information No Package Found for /usr/share/fonts/liberation/LiberationSerif-Italic.ttf Version-Release number of selected component (if applicable): How reproducible: deterministic. Steps to Reproduce: # yum resolvedep /usr/share/fonts/liberation/LiberationSerif-Italic.ttf Importing additional filelist information No Package Found for /usr/share/fonts/liberation/LiberationSerif-Italic.ttf Version-Release number of selected component (if applicable): yum-3.2.8-2.fc8 Actual results: see above. Expected results: Correct package name. similar to # repoquery --whatprovides \ /usr/share/fonts/liberation/LiberationSerif-Italic.ttf liberation-fonts-0:0.2-3.fc8.noarch Additional info: This bug breaks building packages in mock. cf. https://bugzilla.redhat.com/show_bug.cgi?id=388761 Excerpt from a mock run's root.log: ... DEBUG backend.py:473: /usr/bin/yum --installroot /var/lib/mock/fedora-8-x86_64/root resolvedep ccache 'bison' '/usr/share/fonts/liberation/LiberationSerif-Italic.ttf' .... DEBUG util.py:239: run cmd timeout(0): /usr/bin/yum --installroot /var/lib/mock/fedora-8-x86_64/root resolvedep ccache 'bison' '/usr/share/fonts/liberation/LiberationSerif-Italic.ttf' DEBUG util.py:212: Ran setarch 'x86_64' DEBUG util.py:260: 0:ccache-2.4-11.fc8.x86_64 DEBUG util.py:260: 0:bison-2.3-4.fc8.x86_64 DEBUG util.py:260: No Package Found for /usr/share/fonts/liberation/LiberationSerif-Italic.ttf ...
This is because you're running yum as non-root and it doesn't have privileges to download the filelists repodata to find that file. If you ran it as root and had the filelists metadata cached then it would work.
Please test mock 0.8.19 which is currently in updates-testing. This issue was a mock issue and should be fixed.
(In reply to comment #1) > This is because you're running yum as non-root Right. This happens inside of mock, as part of running mock (== running yum as non-root) > If you ran it as root and > had the filelists metadata cached then it would work. A matter of point of view. Fact is: /usr/bin/yum resolvedep (== a program to run by ordinary users) resolvedep returns incorrect results.