Setools does not require libselinux to build. Without this library on a system the setools emerge fails. I grepped for it in the setools ebuild files and did not find it. The problem came for me when I attempted to install setools on a non-selinux system in order to test the policy for the selinux system which does not have X windows. Also the latest version of bwidget will cause the setools 1.3.1 or 1.4.0 to fail to start running because a message is reporting bwidget-1.7.0 has problems. The message recommends changing bwidget back to 1.4.1. When I did that setools apps started.
Make sure you have the most current setools ebuilds, they should have been fixed for the libselinux. As for bwidget, I'm going to need more information, it works fine for me.
When apol starts now from setools-1.4 compiled with bwidget-1.7 I get the following message upon startup: Your installed Tk version 8.3 includes an incompatible BWidgets 1.7 package version. This has been known to cause a tk application to crash. It is recommended that you either upgrade your Tk library to version 8.4 or greater or use Bwidgets 1.4.1 instead. See the README for more information. If I downgrade bwidgets to 1.4.1 the application starts normally. Otherwise I can click the "ok" button and the application terminates. Unfortunately the README does not contain more information.
If bwidgets 1.7 needs tk 8.4 to work correctly, then this seems more appropriate as a bug to the bwidget maintainer.
I am willing to call this close if we can take care of the following: bash-2.05b$ qpkg -q libselinux sys-libs/libselinux-1.12 * DEPENDED ON BY: logrotate-3.6.5-r1 gdm-2.4.4.7-r1 openssh-3.8.1_p1-r1 baselayout-1.9.4-r3 coreutils-5.2.1 pam-login-3.14 psmisc-21.2-r4 shadow-4.0.4.1-r3 util-linux-2.12-r4 vixie-cron-3.0.1-r4 pam-0.77 pwdb-0.62 Why is setools not listed? In regards to bkwigets I will post a bug there. Once we are assured setools does indeed depend on libselinux and is shown by qpkg -q libselinux then this bug should be called FIXED.
added libselinux as an optional dependancy for USE='selinux'