Bug 1319723 - dnf builddep reports already installed packages which are in Requires(*) and halt
Summary: dnf builddep reports already installed packages which are in Requires(*) and ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-21 11:46 UTC by Richard W.M. Jones
Modified: 2017-05-15 13:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-15 13:42:46 UTC
Type: Bug


Attachments (Terms of Use)

Description Richard W.M. Jones 2016-03-21 11:46:35 UTC
Description of problem:

Check out ceph.spec from dist-git
(http://pkgs.fedoraproject.org/cgit/rpms/ceph.git/)
and try to install the build dependencies:

# dnf builddep ~/d/fedora/ceph/master/ceph.spec --enablerepo=rawhide --best --allowerasing
[...]
Error: package selinux-policy-devel-3.13.1-179.fc25.noarch requires selinux-policy = 3.13.1-179.fc25, but none of the providers can be installed

Note that these packages are already installed:

$ rpm -q selinux-policy-devel selinux-policy selinux-policy-targeted
selinux-policy-devel-3.13.1-179.fc25.noarch
selinux-policy-3.13.1-179.fc25.noarch
selinux-policy-targeted-3.13.1-179.fc25.noarch

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

rpm-4.13.0-0.rc1.27.fc25.x86_64
dnf-1.1.7-2.fc25.noarch

How reproducible:

100%

Steps to Reproduce:
1. (As described above)

Additional info:

It looks as if the problem comes from this part of ceph.spec:

%package devel
Summary: SELinux policy devel
Group: System Environment/Base
Requires(pre): selinux-policy = %{version}-%{release}

Perhaps dnf previously ignored `Requires(pre)'?

Comment 1 Richard W.M. Jones 2016-03-21 11:49:18 UTC
(In reply to Richard W.M. Jones from comment #0)
> It looks as if the problem comes from this part of ceph.spec:
> 
> %package devel
> Summary: SELinux policy devel
> Group: System Environment/Base
> Requires(pre): selinux-policy = %{version}-%{release}

Wrong file.  The above comes from selinux-policy.spec.

However ceph.spec contains:

%package selinux                                                                
Summary:        SELinux support for Ceph MON, OSD and MDS                       
Group:          System Environment/Base                                         
Requires:       %{name}                                                         
Requires:       policycoreutils, libselinux-utils                               
Requires(post): selinux-policy-base >= %{_selinux_policy_version}, policycoreutils, gawk

Comment 2 Fedora Admin XMLRPC Client 2016-07-08 09:24:30 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Jan Kurik 2016-07-26 05:00:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 4 Jaroslav Mracek 2017-05-12 17:59:45 UTC
Please can you confirm that the issue is valid for dnf-2.4.1-1 and dnf-plugins-core-2.0.0-1 that are part of rawhide or Fedora 26, or can be downloaded from our testing repository (dnf copr enable rpmsoftwaremanagement/dnf-nightly). Thanks a lot for your cooperation.

Comment 5 Richard W.M. Jones 2017-05-15 13:42:46 UTC
No, it seems to be fixed in dnf 2.1.0.


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