fedoraproject.org/wiki/PackagingDrafts/SELinux/PolicyModules

Johnson, Richard Richard.Johnson at stratus.com
Tue Aug 5 15:06:19 UTC 2008


The examples don't work:  Attempts to install the resulting  *-selinux rpm yield problem like:

CMD# rpm -Uvh  /auto/svn/rjohnson/5611/ftl_linux/build/CD_ROOT/RPMS/lsb-ft-asn-selinux-6.0.2-183.x86_64.rpm 
error: Failed dependencies:
  file:///usr/share/doc/selinux-policy-2.4.6/html/index.html is needed by lsb-ft-asn-selinux-6.0.2-183.x86_64

CMD# rpm -q --whatprovides file:///usr/share/doc/selinux-policy-2.4.6/html/index.html
no package provides file:///usr/share/doc/selinux-policy-2.4.6/html/index.html

CMD# rpm -q --whatprovides /usr/share/doc/selinux-policy-2.4.6/html/index.html
selinux-policy-2.4.6-137.1.el5_2
 
---------------
The problem appears to be the line:
   %define selinux_policyver %(sed -e 's,.*selinux-policy-\\([^/] *\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp)


I'd suggest querying the rpm db instead:
   %define selinux_policyver %(if rpm -q selinux-policy > /dev/null; then rpm -q --queryformat '%{VERSION}' selinux-policy; fi)

--rich




More information about the Fedora-websites-list mailing list