1)Install a swi-prolog from 8 series 2)emerge -v --depclean cmake, refuses to clean cmake because swi-prolog. Maybe eclass related? 7 series worked fine.
You didn't actually describe a bug yet.
(In reply to Jeroen Roovers from comment #1) > You didn't actually describe a bug yet. swi-prolog doesn't rdepend from cmake (look dev-lang/swi-prolog/swi-prolog-8.1.4.ebuild), something in cmake eclass could be wrong because portage refuses to depclean cmake I hope now it's more clear. Thanks for so quick reply.
cmake is build dep, http://www.swi-prolog.org/build/prerequisites.html
You need to specify --with-bdeps=n to have emerge depclean build-only dependencies.
(In reply to Michael Palimaka (kensington) from comment #4) > You need to specify --with-bdeps=n to have emerge depclean build-only > dependencies. yes, I miss that, but # emerge --depclean -a pull in all my system deps # emerge --depclean -a -o -D swi-prolog doesn't track build deps of swi If I want to try a package, could you tell me if the only way is tracking those package dependencies myself? Thanks a lot.
Sorry for the trouble, my fault. --with-bdeps=n worked And do what I want was finally, # emerge --depclean -a --exclude swi-prolog Thanks all for replies.
It's unclear when this solution will always work, could somebody confirm if portage will preserve all requited dependencies (preserved registry)? And, when I uninstall the package will the deps be cleaned too? Thanks a lot.
(In reply to Enrique Domínguez from comment #7) > It's unclear when this solution will always work, could somebody confirm if > portage will preserve all requited dependencies (preserved registry)? And, > when I uninstall the package will the deps be cleaned too? > Thanks a lot. Gentoo has a few different types of dependencies (see https://devmanual.gentoo.org/general-concepts/dependencies/). By default, portage will always preserve all dependencies (unless you manually remove a package). By passing --with-bdeps=n, you are telling portage it can clean dependencies requires to build a package (while keeping all dependencies required to run it). If you uninstall a package using --unmerge (-C), portage will not consider any dependencies of this package - the package will be removed leaving any dependencies and breaking anything that depended on it. You can use --depclean to take care of this instead.
Marking as RESOLVED. This doesn't seem to be a bug with swi-prolog.