Re: custom policy guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Howarth wrote:
Wart wrote:
The proposed guidelines on the wiki recommend a %define macro to embed
the build-time selinux-policy version in the resulting -selinux
subpackage Requires:

https://fedoraproject.org/wiki/PackagingDrafts/SELinux/PolicyModules#Runtime_Dependencies

This has worked fine for me in F-8 and F-9, but when I try to build the
package (crossfire) in rawhide, mock now gives the error below.  Is this
a temporary rawhide problem, or do the guidelines need to be updated?

I've updated the guidelines to something that works in both Rawhide and older releases. It's still a horrible hack of course.

%global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp || echo 0.0.0)
Requires:         selinux-policy >= %{selinux_policyver}

There's no longer any need for the %if clause around the Requires: line.

That fixed the issue.  Thanks!

--Wart

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux