The build system for sys-apps/findutils-4.5.8 automagically detects and links against libselinux. This causes trouble for prefix if findutils are compiled on a host where selinux is present, but run on a system without. The attached patch is a ugly workaround, because I don't understand how all the pieces of the build system fit together.
Applying it, doing eautoreconf and adding an $(use_enable selinux) to econf fixes the problem for me.
Steps to Reproduce:
1. host_with_selinux$ emerge "=findutils-4.5.8"
2. host_without_selinux$ find /etc -name passwd
find: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
Created attachment 240385 [details, diff]
Initial attempt at introducing --enable-selinux/--disable-selinux options to configure.
I'm no autotools wizard. Can you approach upstream with this issue and report back?
(In reply to comment #2)
> I'm no autotools wizard. Can you approach upstream with this issue and report
Reported upstream. See http://savannah.gnu.org/bugs/index.php?30608
Great thanks, now there is activity on the upstream bug.
(In reply to comment #4)
> Great thanks, now there is activity on the upstream bug.
The issue has migrated to gnulib. The thread starts here:
Created attachment 246291 [details, diff]
Upstream's patch for --with-selinux/--without-selinux options to configure.
Just pushed to 4.5.9 the other day. You will need to remerge.
(In reply to comment #7)
> Just pushed to 4.5.9 the other day. You will need to remerge.
Thanks a lot, issue solved!