Bug 198205

Summary: Using selinux-policy requires m4, but m4 not in dependency list
Product: [Fedora] Fedora Reporter: Hans Ulrich Niedermann <rhbugs>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: dwalsh
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-07-10 14:22:41 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 Hans Ulrich Niedermann 2006-07-10 14:14:27 UTC
Description of problem:

  "make -f /usr/share/selinux/devel/Makefile" requires m4, but the
selinux-policy package does not depend on m4.

  This forces all spec files which need to compile an SELinux policy module to
know that selinux-policy depends on m4 and add that dependency themselves.

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

  selinux-policy-2.2.47-3.fc5

Expected behaviour:

  selinux-policy should depend on m4.

Comment 1 Daniel Walsh 2006-07-10 14:22:41 UTC
We have split out selinux-policy-devel in FC6/Rawhide package which has this
requirement.  I do not want to bring this requirement back into FC5 since it
might break other things.



Comment 2 Hans Ulrich Niedermann 2006-07-12 19:53:35 UTC
That makes sense in a way.

So I'm going to use the following in my SPEC file:

%if "%{fedora}" >= "6"
BuildRequires: selinux-policy-devel
%else
BuildRequires: selinux-policy, m4
%endif