Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829623 - Broken soname dependencies with --depclean
Summary: Broken soname dependencies with --depclean
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 687956 694246
  Show dependency tree
 
Reported: 2021-12-19 12:15 UTC by Niko Hämäläinen
Modified: 2023-09-28 03:09 UTC (History)
3 users (show)

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


Attachments
emerge --depclean output (depclean.log,69.06 KB, text/plain)
2021-12-19 12:15 UTC, Niko Hämäläinen
Details
emerge --info (emerge.info,18.70 KB, text/plain)
2021-12-19 12:18 UTC, Niko Hämäläinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niko Hämäläinen 2021-12-19 12:15:38 UTC
Created attachment 759761 [details]
emerge --depclean output

emerge --depclean spams most everything to have broken soname dependencies

sys-apps/portage-3.0.30

steps:
# emerge --depclean
<output in paste file>
Comment 1 Niko Hämäläinen 2021-12-19 12:18:04 UTC
Created attachment 759762 [details]
emerge --info
Comment 2 Niko Hämäläinen 2021-12-19 12:23:08 UTC
Not using any binpkgs. revdep-rebuild and @preserved-rebuild are clean

# revdep-rebuild
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Checking dynamic linking consistency

Your system is consistent

# emerge @preserved-rebuild

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 KiB

Nothing to merge; quitting.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-19 12:25:57 UTC
I think we may want to, for now at least, yank the --ignore-soname-deps=n default. It was done in https://github.com/gentoo/portage/commit/6091fcd861034b9b20677098827eff7b7a148853 and the commit message says it should only affect usepkgonly/getbinpkgonly but that doesn't seem to be the case?

not sure
Comment 4 Ionen Wolkens gentoo-dev 2021-12-19 12:46:29 UTC
Personally ran into the following when I wanted to depclean nvidia-cuda-toolkit

$ emerge -pvc nvidia-cuda-toolkit
Calculating dependencies... done!
  dev-util/nvidia-cuda-toolkit-11.5.1-r1 pulled in by:
    app-emulation/wine-staging-6.23 requires x86_64: libOpenCL.so.1
    dev-util/clinfo-3.0.21.02.21 requires x86_64: libOpenCL.so.1
    media-video/ffmpeg-4.4.1-r1 requires x86_64: libOpenCL.so.1

libOpenCL is used from opencl-icd-loader, not nvidia-cuda-toolkit which just happens to have the same library in /opt

$ emerge -pvc --ignore-soname-deps=y nvidia-cuda-toolkit
Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 dev-util/nvidia-cuda-toolkit
    selected: 11.5.1-r1 
   protected: none 
     omitted: none
Comment 5 Zac Medico gentoo-dev 2021-12-19 18:53:21 UTC
(In reply to Sam James from comment #3)
> I think we may want to, for now at least, yank the --ignore-soname-deps=n
> default. It was done in
> https://github.com/gentoo/portage/commit/
> 6091fcd861034b9b20677098827eff7b7a148853 and the commit message says it
> should only affect usepkgonly/getbinpkgonly but that doesn't seem to be the
> case?
> 
> not sure

Yeah I think it's not a bad idea to revert it in light of the issues raised here.
Comment 6 Zac Medico gentoo-dev 2021-12-20 00:56:50 UTC
(In reply to Niko Hämäläinen from comment #0)
> Created attachment 759761 [details]
> emerge --depclean output
> 
> emerge --depclean spams most everything to have broken soname dependencies
> 
> sys-apps/portage-3.0.30
> 
> steps:
> # emerge --depclean
> <output in paste file>

I've got some similar "spam" on my laptop system that I suspect was due to a temporarily broken scanelf which prevented soname dependency metadata from being generated for some providers.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-20 01:00:19 UTC
(In reply to Zac Medico from comment #6)
> (In reply to Niko Hämäläinen from comment #0)
> > Created attachment 759761 [details]
> > emerge --depclean output
> > 
> > emerge --depclean spams most everything to have broken soname dependencies
> > 
> > sys-apps/portage-3.0.30
> > 
> > steps:
> > # emerge --depclean
> > <output in paste file>
> 
> I've got some similar "spam" on my laptop system that I suspect was due to a
> temporarily broken scanelf which prevented soname dependency metadata from
> being generated for some providers.

Ah, I hadn't thought about the connection with bug 811462 / https://www.gentoo.org/support/news-items/2021-09-29-possible-failure-to-preserve-libraries.html.
Comment 8 Zac Medico gentoo-dev 2021-12-20 01:21:14 UTC
(In reply to Ionen Wolkens from comment #4)
> Personally ran into the following when I wanted to depclean
> nvidia-cuda-toolkit
> 
> $ emerge -pvc nvidia-cuda-toolkit
> Calculating dependencies... done!
>   dev-util/nvidia-cuda-toolkit-11.5.1-r1 pulled in by:
>     app-emulation/wine-staging-6.23 requires x86_64: libOpenCL.so.1
>     dev-util/clinfo-3.0.21.02.21 requires x86_64: libOpenCL.so.1
>     media-video/ffmpeg-4.4.1-r1 requires x86_64: libOpenCL.so.1
> 
> libOpenCL is used from opencl-icd-loader, not nvidia-cuda-toolkit which just
> happens to have the same library in /opt
> 
> $ emerge -pvc --ignore-soname-deps=y nvidia-cuda-toolkit
> Calculating dependencies... done!
> >>> Calculating removal order...
> 
> >>> These are the packages that would be unmerged:
> 
>  dev-util/nvidia-cuda-toolkit
>     selected: 11.5.1-r1 
>    protected: none 
>      omitted: none

I've opened a separate bug 829691 for this issue.
Comment 9 Larry the Git Cow gentoo-dev 2021-12-20 16:18:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=2c025e87bb6253f869f9e84e6eb0d98eecfd49c4

commit 2c025e87bb6253f869f9e84e6eb0d98eecfd49c4
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-20 16:16:30 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-20 16:18:21 +0000

    Revert "emerge: Default enable soname dependencies (bug 687956)"
    
    This change seems to cause problems with emerge --depclean.
    
    Reverts: 6091fcd861034b9b20677098827eff7b7a148853
    Bug: https://bugs.gentoo.org/687956
    Bug: https://bugs.gentoo.org/829623
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 lib/_emerge/create_depgraph_params.py | 2 +-
 man/emerge.1                          | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)
Comment 10 Larry the Git Cow gentoo-dev 2021-12-20 16:26:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a92e6d74d7a7af59dd351f815e87e09a719ea742

commit a92e6d74d7a7af59dd351f815e87e09a719ea742
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-20 16:23:53 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-20 16:24:38 +0000

    sys-apps/portage: revert --ignore-soname-deps change
    
    Bug: https://bugs.gentoo.org/687956
    Bug: https://bugs.gentoo.org/829623
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 ...revert-default-enable-soname-dependencies.patch | 52 ++++++++++++++++++++++
 ...tage-3.0.30.ebuild => portage-3.0.30-r1.ebuild} |  1 +
 2 files changed, 53 insertions(+)