On Sun, Oct 26, 2008 at 03:32:10PM -0400, Mike Edenfield wrote: > Matt Harrison wrote: > >> The problem is that even though the selinux USE flag isn't exabled, >> packages >> like coreutils are still linking into libselinux. So if I remove >> libselinux >> and all the selinux related packages, it breaks a whole load of binaries >> on >> the system, so much so that I can't recompile packages afterwards. > > Once you switch to a non-SELinux profile you still need to rebuild the > packages that used the library. Building them without the selinux USE flag > will prevent them from linking to the library. Once they're all rebuilt, > then you can remove the SELinux userland stuff.
But I've already rebuilt the packages, like coreutils, yet ldd on /bin/mv still shows libselinux linked in. > To easily get this list of packages you have multiple options. The easiest > way is to use revdep-rebuild with the --library option, but last time I > checked revdep-rebuild crashed when you supplied a library. Alternately, > you could run emerge with the --newuse flag, which will pick up any > packages that used to have the selinux USE flag and now don't. Of course, > if you want to be extra safe, just rebuild everything: I'll have a go with revdep-rebuild. Thanks Matt
pgpFsJ7Z82fpN.pgp
Description: PGP signature
