Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
depclean wants to remove package, but can I do it?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 197
Location: Kraków, Poland

PostPosted: Sat Apr 12, 2025 3:48 pm    Post subject: depclean wants to remove package, but can I do it? Reply with quote

Hi!

Please, forgive me my ignorance, but I try to understand how things works.
After recent update I try to do cleanup, but got into confusing (at least for me) situation.

Trying to depcleand I got this:

Code:

mkm-box /home/maniek # emerge -p --depclean
>>> These are the packages that would be unmerged:

 dev-lang/tcl
    selected: 8.6.15
   protected: none
     omitted: none

 virtual/perl-Storable
    selected: 3.320.0-r1
   protected: none
     omitted: none

All selected packages: =dev-lang/tcl-8.6.15 =virtual/perl-Storable-3.320.0-r1


But checking dependencies I got this:

Code:

mkm-box /home/maniek # equery depends dev-lang/tcl
 * These packages depend on dev-lang/tcl:
app-editors/vim-9.1.0794 (tcl ? dev-lang/tcl:0)
                         (tcl ? dev-lang/tcl:0)
dev-db/sqlite-3.49.1 (tcl ? dev-lang/tcl[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
                     (tools ? dev-lang/tcl)
                     (test ? >=dev-lang/tcl-8.6:0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
                     (tcl ? dev-lang/tcl[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
                     (tools ? dev-lang/tcl)
dev-lang/python-3.11.11_p2 (tk ? >=dev-lang/tcl-8.0)
                           (tk ? >=dev-lang/tcl-8.0)
dev-lang/python-3.12.10 (tk ? >=dev-lang/tcl-8.0)
                        (tk ? >=dev-lang/tcl-8.0)
dev-lang/python-3.13.3 (tk ? >=dev-lang/tcl-8.0)
                       (tk ? >=dev-lang/tcl-8.0)
dev-libs/newt-0.52.24-r1 (tcl ? >=dev-lang/tcl-8.5:0)
                         (tcl ? >=dev-lang/tcl-8.5:0)
media-gfx/graphviz-12.2.1-r1 (tcl ? >=dev-lang/tcl-8.3)
                             (tcl ? >=dev-lang/tcl-8.3)


And I don't get it. Should I agree with depclean or should I do something else with that? Or do nothing... ?

I appreciate your comments on that.
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23326

PostPosted: Sat Apr 12, 2025 3:52 pm    Post subject: Reply with quote

We routinely tell people not to use equery depends here because of exactly the problem you saw. It reports potential dependencies, which can apply for some possible system configuration. emerge --depclean considers active dependencies, which apply on the currently configured system. In this specific case, every consumer is conditionally dependent on tcl/tk if the right USE flag is enabled. You don't have that flag enabled, so you don't depend on tcl/tk. emerge --depclean is correct. equery depends is misleading you, and should be ignored.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55161
Location: 56N 3W

PostPosted: Sat Apr 12, 2025 4:05 pm    Post subject: Reply with quote

m.s.w,

Code:
emerge -cav dev-lang/tcl
will either offer to remove dev-lang/tcl or tell you what depends on it and refuse to remove it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 197
Location: Kraków, Poland

PostPosted: Sat Apr 12, 2025 4:30 pm    Post subject: Reply with quote

Thank you.
Proceeding with depclean.
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum