Bug 1223478 - packages cannot be installed by virtual file provides
Summary: packages cannot be installed by virtual file provides
Keywords:
Status: CLOSED DUPLICATE of bug 1242946
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-20 15:32 UTC by Michael Simacek
Modified: 2015-08-28 09:29 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-28 09:29:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Simacek 2015-05-20 15:32:51 UTC
Description of problem:
dnf doesn't resolve file path provides, such as
Provides: /bin/foo

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

How reproducible:
always

Steps to Reproduce:
1. dnf install /bin/ps

Actual results:
No package /bin/ps available.
Error: no package matched: /bin/ps

Expected results:
Package procps-ng-3.3.10-5.fc21.x86_64 already installed and latest version
(actually an output of yum install /bin/ps)

Additional info:
Such provides is present on multiple packages in Fedora and multiple packages actually use it in Requires. bz#1195385 is related.

Comment 2 Michael Simacek 2015-05-21 09:07:42 UTC
I'm not trying to actually install ps this way. I'm just pointing out that there are packages (not mine) that use it and they fail to build with dnf, even though they build fine with yum.

Comment 3 Honza Silhan 2015-05-21 10:50:24 UTC
To be more specific DNF's depsolver should handle them fine. The problem is with the choosing the "right" package selected from CLI e.g. install <pattern>. At first DNF guess whether it should find package that contains a file or provides the "/*".

Comment 4 Honza Silhan 2015-08-28 09:29:59 UTC
It should be fixed by changing the provides / file / name search order.
PR: https://github.com/rpm-software-management/dnf/pull/338

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


Note You need to log in before you can comment on or make changes to this bug.