Bug 185210

Summary: util-linux - policycoreutils circular dependancy
Product: [Fedora] Fedora Reporter: Matthew Truch <matt>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dcantrell, dwalsh, notting
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-12 16:21:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Truch 2006-03-11 20:41:49 UTC
Circular Dependancy (which causes the Fedora Extras build system to fail on many
builds):
util-linux-2.13-0.20.i386                PreReq: /sbin/restorecon
policycoreutils-1.29.26-5.i386           PreReq: /bin/mount

This was created when util-linux was last updated:
* Thu Mar 09 2006 Jesse Keating <jkeating> 2.13-0.20
  - Better calling of restorecon as suggested by Bill Nottingham
  - prereq restorecon to avoid ordering issues
* Thu Mar 09 2006 Jesse Keating <jkeating> 2.13-0.19
  - restorecon /var/log/lastlog

Comment 1 Karel Zak 2006-03-12 12:26:31 UTC
Jesse, what remove the dependence on /sbin/restorecon and replace it with simple
test:

if [ -x /sbin/restorecon ]; then 
  /sbin/restorecon /var/log/lastlog >/dev/null 2>&1
fi

I think we should assume that people use FC without policy packages and I'm not
sure if this dependence is good idea for so basic package like util-linux.

Comment 2 Karel Zak 2006-03-12 13:21:32 UTC
It seems the problem should be fixed by the latest policycoreutils release:

* Fri Mar 10 2006 Dan Walsh <dwalsh> 1.29.26-6
- Remove prereq

But I still not sure if "PreReq: /sbin/restorecon" in the util-linux package is
a good idea. From my point of view it should more optinal.

# rpm -q --whatrequires /sbin/restorecon
xorg-x11-xfs-1.0.1-4
util-linux-2.13-0.20


Comment 3 Jesse Keating 2006-03-12 16:20:59 UTC
policy already gets pulled in by other very basic packages.  Pretty much these
days if you install FC, you get selinux in one way or another.  We just need to
make sure the packages that require parts of it to run list them as prereqs for
rpm ordering.

Comment 4 Bill Nottingham 2006-03-13 17:57:26 UTC
If the prereq isn't there, it almost certainly *will* get ordered wrong, judging
by previous ordering of the packages.