View previous topic :: View next topic |
Author |
Message |
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 362
|
Posted: Mon Sep 02, 2024 11:48 am Post subject: emerge --depclean error |
|
|
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 |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1028 Location: Somewhere in Denmark
|
Posted: Mon Sep 02, 2024 12:09 pm Post subject: |
|
|
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 |
|
|
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 362
|
Posted: Mon Sep 02, 2024 1:26 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22612
|
Posted: Mon Sep 02, 2024 1:44 pm Post subject: |
|
|
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 |
|
|
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 362
|
Posted: Mon Sep 02, 2024 1:49 pm Post subject: |
|
|
Yeah, --with-bdeps pulled another 47 packages in, and now emerge --depclean finishes successfully.
Thanks guys! _________________ GNU is Not Usable |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2397
|
Posted: Mon Sep 02, 2024 3:16 pm Post subject: |
|
|
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 |
|
|
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 362
|
Posted: Mon Sep 02, 2024 4:15 pm Post subject: |
|
|
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 |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2397
|
Posted: Mon Sep 02, 2024 4:23 pm Post subject: |
|
|
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 |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 358
|
Posted: Mon Sep 02, 2024 9:26 pm Post subject: |
|
|
@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 |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1234 Location: Richmond Hill, Canada
|
Posted: Mon Sep 02, 2024 10:19 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22612
|
Posted: Mon Sep 02, 2024 11:28 pm Post subject: |
|
|
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 |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1234 Location: Richmond Hill, Canada
|
Posted: Tue Sep 03, 2024 12:05 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5084 Location: Bavaria
|
Posted: Tue Sep 03, 2024 1:34 am Post subject: |
|
|
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
... |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1234 Location: Richmond Hill, Canada
|
Posted: Tue Sep 03, 2024 2:02 am Post subject: |
|
|
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
... |
| Thank you very much!, this is nice to know. I will be careful. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2397
|
Posted: Tue Sep 03, 2024 6:16 am Post subject: |
|
|
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 |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2397
|
Posted: Tue Sep 03, 2024 6:45 am Post subject: |
|
|
For whoever is interested and or has an opinion to share: https://bugs.gentoo.org/938956
Best Regards,
Georgi |
|
Back to top |
|
|
|