Bug 1258859

Summary: libsepol-devel can't be installed
Product: [Fedora] Fedora Reporter: Andreas Schneider <asn>
Component: libsepolAssignee: Petr Lautrbach <plautrba>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: asn, dwalsh, mgrepl, plautrba
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-09-01 12:39: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 Andreas Schneider 2015-09-01 12:20:57 UTC
Description of problem:

libsepol-devel can't be installed ...


krikkit:~ # dnf install krb5-devel
Last metadata expiration check performed 2:15:41 ago on Tue Sep  1 12:02:28 2015.
Error: package krb5-devel-1.13.2-6.fc23.i686 requires libselinux-devel, but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)
krikkit:~ # dnf install libselinux-devel                                                                                                                                                
Last metadata expiration check performed 2:15:45 ago on Tue Sep  1 12:02:28 2015.
Error: package libselinux-devel-2.4-1.fc23.1.i686 requires pkgconfig(libsepol), but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)
krikkit:~ # dnf install libsepol
Last metadata expiration check performed 2:15:54 ago on Tue Sep  1 12:02:28 2015.
Package libsepol-2.4-3.fc23.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
krikkit:~ # dnf install libsepol-devel
Last metadata expiration check performed 2:16:10 ago on Tue Sep  1 12:02:28 2015.
Error: package libsepol-devel-2.4-1.fc23.i686 requires libsepol.so.1, but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)
krikkit:~ # dnf install libsepol-devel.x86_64
Last metadata expiration check performed 2:16:36 ago on Tue Sep  1 12:02:28 2015.
Error: package libsepol-devel-2.4-1.fc23.x86_64 requires libsepol = 2.4-1.fc23, but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)

Comment 1 Andreas Schneider 2015-09-01 12:24:12 UTC
krikkit:~ # rpm -q libsepol
libsepol-2.4-3.fc23.x86_64

Comment 2 Petr Lautrbach 2015-09-01 12:33:40 UTC
It works with manually downloaded package:

# wget https://kojipkgs.fedoraproject.org//packages/libsepol/2.4/3.fc23/x86_64/libsepol-devel-2.4-3.fc23.x86_64.rpm

# rpm -qp --requires libsepol-devel-2.4-3.fc23.x86_64.rpm 
/usr/bin/pkg-config
libsepol = 2.4-3.fc23
libsepol.so.1()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

# dnf install libsepol-devel-2.4-3.fc23.x86_64.rpm
...
Installed:
  libsepol-devel.x86_64 2.4-3.fc23


It seems to be problem on mirrors where there's no libsepol-devel-2.4-3.fc23.x86_64 available.

Comment 3 Petr Lautrbach 2015-09-01 12:39:31 UTC
So libsepol-2.4-3.fc23 was obsoleted as the update got bad karma -  https://bodhi.fedoraproject.org/updates/libsepol-2.4-3.fc23. You should use --allowerasing option to get back to -1 version:

# dnf install --enablerepo=updates-testing --allowerasing libsepol-devel