Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684122 - >dev-lang/swi-prolog-8 should not(???) depend on dev-util/cmake
Summary: >dev-lang/swi-prolog-8 should not(???) depend on dev-util/cmake
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-22 14:10 UTC by Enrique Domínguez
Modified: 2019-08-02 09:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrique Domínguez 2019-04-22 14:10:10 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-04-22 14:25:23 UTC
You didn't actually describe a bug yet.
Comment 2 Enrique Domínguez 2019-04-22 15:25:54 UTC
(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.
Comment 3 Enrique Domínguez 2019-04-22 15:29:37 UTC
cmake is build dep,
http://www.swi-prolog.org/build/prerequisites.html
Comment 4 Michael Palimaka (kensington) gentoo-dev 2019-04-25 03:22:40 UTC
You need to specify --with-bdeps=n to have emerge depclean build-only dependencies.
Comment 5 Enrique Domínguez 2019-04-25 13:50:13 UTC
(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.
Comment 6 Enrique Domínguez 2019-04-25 14:07:56 UTC
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.
Comment 7 Enrique Domínguez 2019-04-25 15:35:54 UTC
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.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2019-04-28 13:08:54 UTC
(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.
Comment 9 Keri Harris gentoo-dev 2019-08-02 09:07:33 UTC
Marking as RESOLVED. This doesn't seem to be a bug with swi-prolog.