Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --depclean error
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
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 359

PostPosted: Mon Sep 02, 2024 11:48 am    Post subject: emerge --depclean error Reply with quote

Hi, guys!
After recent update emerge --depclean fails to clean the system:
Code:
 # emerge --depclean

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 *
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence of this, it often becomes necessary to run
 * `emerge --update --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-ExtUtils-Manifest-1.730.0-r2
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-Test-Harness-3.440.0-r1
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-ExtUtils-CBuilder-0.280.238
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-podlators-5.10.0
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-version-0.992.900-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Module-Metadata-1.0.37-r3
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Module-Build-0.423.400
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Pod-Parser-1.660.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/SGMLSpm-1.1-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-JSON-PP-4.160.0-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-Manifest-1.730.0-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Perl-OSType-1.10.0-r8
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-MakeMaker-7.700.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Parse-CPAN-Meta-2.150.10-r8
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/ExtUtils-CChecker-0.120.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/TermReadKey-2.380.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/XS-Parse-Keyword-0.420.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Text-WrapI18N-0.60.0-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Test-Harness-3.440.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-CPAN-Meta-YAML-0.18.0-r10
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-version-0.992.900-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-CPAN-Meta-2.150.10-r8
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/MIME-Charset-1.13.1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-CBuilder-0.280.238
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/YAML-Tiny-1.740.0
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-podlators-5.10.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Text-ParseWords-3.310.0-r3
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Unicode-LineBreak-2019.1.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Unicode-Collate-1.310.0-r2
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-Module-Metadata-1.0.37-r3
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Syntax-Keyword-Try-0.290.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Text-CharWidth-0.40.0-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     app-text/po4a-0.69
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-ParseXS-3.510.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-Install-2.220.0-r1
 *
 * Have you forgotten to do a complete update prior to depclean? The
 * most comprehensive command for this purpose is as follows:
 *
 *   emerge --update --newuse --deep --with-bdeps=y @world
 *
 * Note that the --with-bdeps=y option is not required in many
 * situations. Refer to the emerge manual page (run `man emerge`)
 * for more information about --with-bdeps.
 *
 * Also, note that it may be necessary to manually uninstall
 * packages that no longer exist in the repository, since it may not
 * be possible to satisfy their dependencies.


How do I fix this problem?
Thanks.
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1020
Location: Somewhere in Denmark

PostPosted: Mon Sep 02, 2024 12:09 pm    Post subject: Reply with quote

Did you do a complete update first? (I'd expect a complete update to pull in dev-lang/perl-5.40 - your output indicates 5.38)
Code:
* Have you forgotten to do a complete update prior to depclean? The
 * most comprehensive command for this purpose is as follows:
 *
 *   emerge --update --newuse --deep --with-bdeps=y @world
 *
 * Note that the --with-bdeps=y option is not required in many
 * situations. Refer to the emerge manual page (run `man emerge`)
 * for more information about --with-bdeps.

What's the output of that command?
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 359

PostPosted: Mon Sep 02, 2024 1:26 pm    Post subject: Reply with quote

I ran emerge --sync && emerge -avuDN world yesterday, and it finished successfully, and then I ran emerge --depclean (without performing syncronozation).
Now emerge --ask --update --newuse --deep --with-bdeps=y @world says that a lot of packages will be installed. Why these packages wasn't installed on previuos "emerge -avuDN world"?
OK, will see if it fix the problem
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22404

PostPosted: Mon Sep 02, 2024 1:44 pm    Post subject: Reply with quote

Blind_Sniper wrote:
Now emerge --ask --update --newuse --deep --with-bdeps=y @world says that a lot of packages will be installed. Why these packages wasn't installed on previuos "emerge -avuDN world"?
-avuDN is short for --ask --verbose --update --deep --newuse, so the new command is explicitly enabling --with-bdeps=y, whereas the one you used before left it to the Portage default. Per man emerge:
man emerge:
       --with-bdeps < y | n >
              In dependency calculations, pull in build time dependencies that
              are not strictly required. This option is automatically  enabled
              for  installation  actions,  meaning they will be installed, and
              defaults to "y" for the --depclean action, meaning they will not
              be removed. In order to prevent the --with-bdeps option from be‐
              ing automatically  enabled  for  installation  actions,  specify
              --with-bdeps-auto=n  in  either  the  command line or EMERGE_DE‐
              FAULT_OPTS.
Is this implicitly enabled for you? If not, that would explain the difference.
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 359

PostPosted: Mon Sep 02, 2024 1:49 pm    Post subject: Reply with quote

Yeah, --with-bdeps pulled another 47 packages in, and now emerge --depclean finishes successfully.
Thanks guys!
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2200

PostPosted: Mon Sep 02, 2024 3:16 pm    Post subject: Reply with quote

Blind_Sniper wrote:
I ran emerge --sync && emerge -avuDN world yesterday


Did you use the binhost? Do you have something in your EMERGE_DEFAULT_OPTS?

Best Regards,
Georgi
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 359

PostPosted: Mon Sep 02, 2024 4:15 pm    Post subject: Reply with quote

Quote:
Did you use the binhost?

Yes, I do
Quote:
Do you have something in your EMERGE_DEFAULT_OPTS?

No
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2200

PostPosted: Mon Sep 02, 2024 4:23 pm    Post subject: Reply with quote

Binary packages don't need build dependencies (bdeps). That's the likely reason for the issue. This might actually be worth a bug.

Best Regards,
Georgi
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 316

PostPosted: Mon Sep 02, 2024 9:26 pm    Post subject: Reply with quote

@logrusx I'm not sure about that bug report. One can always do emerge -c --with-bdeps=n, so that emerge does not take BDEPEND into account at all when calculating depcean.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1125
Location: Richmond Hill, Canada

PostPosted: Mon Sep 02, 2024 10:19 pm    Post subject: Reply with quote

Not relate to this thread topic.

But i just need to confirm my understand for emerge -c --with-bdeps=n Does it mean the emerge -c will actually remove those in BDEPEND?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22404

PostPosted: Mon Sep 02, 2024 11:28 pm    Post subject: Reply with quote

As I understand it, emerge --depclean --with-bdeps=n will cause emerge not to add packages from BDEPEND into the list of required dependencies. If BDEPEND is the only reason the package is required on the system, then that will allow --depclean to remove the package. If some other package lists the candidate in RDEPEND, then that listing will force the package to remain.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1125
Location: Richmond Hill, Canada

PostPosted: Tue Sep 03, 2024 12:05 am    Post subject: Reply with quote

Hu wrote:
As I understand it, emerge --depclean --with-bdeps=n will cause emerge not to add packages from BDEPEND into the list of required dependencies. If BDEPEND is the only reason the package is required on the system, then that will allow --depclean to remove the package. If some other package lists the candidate in RDEPEND, then that listing will force the package to remain.


Thank you very much. very clear information.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4855
Location: Bavaria

PostPosted: Tue Sep 03, 2024 1:34 am    Post subject: Reply with quote

pingtoo wrote:
[...] just need to confirm my understand for emerge -c --with-bdeps=n Does it mean the emerge -c will actually remove those in BDEPEND?

Small addition: Please do not run this without the “-p” parameter ... because you don't really want to uninstall these packages:
Code:
dev-build/ninja
sys-devel/clang
dev-lang/rust
dev-build/cmake
net-libs/nodejs
dev-util/glib-utils
...

:lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1125
Location: Richmond Hill, Canada

PostPosted: Tue Sep 03, 2024 2:02 am    Post subject: Reply with quote

pietinger wrote:
pingtoo wrote:
[...] just need to confirm my understand for emerge -c --with-bdeps=n Does it mean the emerge -c will actually remove those in BDEPEND?

Small addition: Please do not run this without the “-p” parameter ... because you don't really want to uninstall these packages:
Code:
dev-build/ninja
sys-devel/clang
dev-lang/rust
dev-build/cmake
net-libs/nodejs
dev-util/glib-utils
...

:lol:
Thank you very much!, this is nice to know. I will be careful.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2200

PostPosted: Tue Sep 03, 2024 6:16 am    Post subject: Reply with quote

bstaletic wrote:
@logrusx I'm not sure about that bug report. One can always do emerge -c --with-bdeps=n, so that emerge does not take BDEPEND into account at all when calculating depcean.


I don't think the system should get into inconsistent state after use of binary packages. At least my system did never get into an inconsistent state.

EDIT: ops, It just got there:

Code:
Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/XML-Simple-2.250.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Canary-Stability-2013.0.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-podlators-5.10.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/TermReadKey-2.380.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Module-Build-0.423.400
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-CPAN-Meta-YAML-0.18.0-r10
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Text-CharWidth-0.40.0-r2
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-Module-Metadata-1.0.37-r3
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Devel-CheckLib-1.160.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Syntax-Keyword-Try-0.290.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-Install-2.220.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/XML-SAX-1.20.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Pod-Parser-1.660.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/XML-SAX-Base-1.90.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Parse-CPAN-Meta-2.150.10-r8
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Module-Metadata-1.0.37-r3
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     app-text/po4a-0.69
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-JSON-PP-4.160.0-r2
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-CPAN-Meta-Requirements-2.140.0-r9
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-ParseXS-3.510.0-r1
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-ExtUtils-Manifest-1.730.0-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/ExtUtils-CChecker-0.120.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Config-AutoConf-0.320.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/CPAN-Meta-Check-0.18.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-CPAN-Meta-Requirements-2.140.0-r9
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/ExtUtils-HasCompiler-0.25.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Locale-gettext-1.70.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-Manifest-1.730.0-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Capture-Tiny-0.480.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/XS-Parse-Keyword-0.420.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Archive-Zip-1.680.0
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-ExtUtils-CBuilder-0.280.238
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/File-Slurper-0.14.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/XML-SAX-Expat-0.510.0-r3
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Text-CSV_XS-1.520.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Text-CSV-2.30.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/Text-WrapI18N-0.60.0-r2
 *
 *   =dev-lang/perl-5.38* pulled in by:
 *     virtual/perl-podlators-5.10.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-CPAN-Meta-2.150.10-r8
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/PerlIO-utf8_strict-0.10.0
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Text-ParseWords-3.310.0-r3
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-ExtUtils-CBuilder-0.280.238
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/SGMLSpm-1.1-r2
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     dev-perl/XML-NamespaceSupport-1.120.0-r1
 *
 *   dev-lang/perl:0/5.38= pulled in by:
 *     virtual/perl-Perl-OSType-1.10.0-r8


Best Regards,
Georgi
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2200

PostPosted: Tue Sep 03, 2024 6:45 am    Post subject: Reply with quote

For whoever is interested and or has an opinion to share: https://bugs.gentoo.org/938956

Best Regards,
Georgi
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