Bug 625062 - Unneeded dependency on policycoreutils
Summary: Unneeded dependency on policycoreutils
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: jadetex
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-18 14:10 UTC by Jindrich Novy
Modified: 2013-07-02 23:47 UTC (History)
2 users (show)

Fixed In Version: jadetex-3.13-9.fc15
Clone Of:
Environment:
Last Closed: 2010-08-31 08:54:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jindrich Novy 2010-08-18 14:10:28 UTC
Description of problem:
jadetex package contains the following %post scriptlet dependency:
Requires(post): policycoreutils

This dependency is not needed and causes dependency bloat because 63k jadetex package pulls in additional 2M of dependencies (policycoreutils and checkpolicy as its dependency) even on a system without SELinux enabled.

Correct SELinux context restoration could be made only when SELinux is installed/enabled on a system. Likely in a similar way how it is done in TeX Live packages:

%post
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi
:


Version-Release number of selected component (if applicable):
jadetex-3.13-8.fc15

How reproducible:
Always

Steps to Reproduce:
1. rpm -q --requires jadetex | grep policycoreutils | wc -l
2.
3.
  
Actual results:
1

Expected results:
0

Comment 1 Ondrej Vasik 2010-08-18 14:15:27 UTC
Thanks for filling the bug, as discussed via IRC, I'll remove the dependency in next jadetex rawhide build.

Comment 2 Ondrej Vasik 2010-08-31 08:54:31 UTC
Fixed in jadetex-3.13-9.fc15, closing RAWHIDE.


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