Bug 680267

Summary: Policy rpmbuild should not care about running system
Product: [Fedora] Fedora Reporter: Eric Paris <eparis>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mads, mgrepl
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: 2011-10-04 13:44:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Paris 2011-02-24 20:51:58 UTC
If the kernel claims to support a newer policy version than the userspace toolchain the rpmbuild will fail.  In my case kernel supports policy.25 but userspace only supports policy.24.  The error when it bails out is:


Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.bO7L16
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd serefpolicy-3.9.15
+ unset DISPLAY
+ /usr/sbin/selinuxenabled
+ /usr/bin/sepolgen-ifgen -i /root/rpmbuild/BUILDROOT/selinux-policy-3.9.15-2.fc15.1.eparis.x86_64/usr/share/selinux/devel/include -o /dev/null
Can't open '/etc/selinux/targeted/policy/policy.25':  No such file or directory
could not run attribute helpererror: Bad exit status from /var/tmp/rpm-tmp.bO7L16 (%check)


You COULD make it try back to policy.24 policy.23 etc, but that is just total crap.  The state of the running system should be COMPLETELY independent of the build process.  Just give me my built RPM and stop looking at my running system!

Comment 1 Daniel Walsh 2011-03-11 21:54:08 UTC
/policycoreutils-2.0.85-20.fc15