Bug 680267 - Policy rpmbuild should not care about running system
Summary: Policy rpmbuild should not care about running system
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-24 20:51 UTC by Eric Paris
Modified: 2011-10-04 13:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-04 13:44:38 UTC
Type: ---


Attachments (Terms of Use)

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


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