Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834291

Summary: sys-apps/portage-3.0.30-r1: Spurious "Error! Installing dynamic libraries (.so) with blank PROVIDES!" with FEATURES=fakeroot
Product: Portage Development Reporter: Ulrich Müller <ulm>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=811462
https://bugs.gentoo.org/show_bug.cgi?id=867574
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Ulrich Müller gentoo-dev 2022-02-27 11:26:08 UTC
Seen with dev-db/qt5-sqlcipher-1.0.11-r1 and FEATURES=fakeroot:

$ ebuild qt5-sqlcipher-1.0.11-r1.ebuild install
[...]
 * Error! Installing dynamic libraries (.so) with blank PROVIDES!
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version

Also note the empty list of files in the strip line.
Comment 1 Ulrich Müller gentoo-dev 2022-02-27 11:26:33 UTC
Created attachment 765933 [details]
build.log
Comment 2 Ulrich Müller gentoo-dev 2022-02-27 11:26:52 UTC
Created attachment 765934 [details]
emerge --info
Comment 3 Ulrich Müller gentoo-dev 2022-05-19 06:53:44 UTC
Ping.

I see this with a second package now: media-gfx/word_cloud-1.8.1
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-19 07:08:45 UTC
I don't use fakeroot and at the moment, I'm overwhelmed with other work. I'm afraid I can't guarantee I can work on this any time soon.

It would be helpful to identify what makes fakeroot different.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-19 07:11:35 UTC
(In reply to Sam James from comment #4)
> I don't use fakeroot and at the moment, I'm overwhelmed with other work. I'm
> afraid I can't guarantee I can work on this any time soon.
> 
> It would be helpful to identify what makes fakeroot different.

Specifically: look at what scanelf is called as, does its args or output differ? What about the contents of NEEDED.ELF.2? Etc
Comment 6 Ulrich Müller gentoo-dev 2022-05-19 10:48:34 UTC
scanelf calls with and without FEATURES=fakeroot are identical. The output for the last command is different:

Without fakeroot:

/usr/bin/scanelf -yRBF %a;%p;%S;%r;%n /tmp/portage/media-gfx/word_cloud-1.8.1/image/
EM_X86_64;usr/lib/debug/usr/lib/python3.10/site-packages/wordcloud/query_integral_image.cpython-310-x86_64-linux-gnu.so.debug;;  -  ;
EM_X86_64;usr/lib/debug/usr/lib/python3.9/site-packages/wordcloud/query_integral_image.cpython-39-x86_64-linux-gnu.so.debug;;  -  ;
EM_X86_64;usr/lib/python3.10/site-packages/wordcloud/query_integral_image.cpython-310-x86_64-linux-gnu.so;;  -  ;libc.so.6
EM_X86_64;usr/lib/python3.9/site-packages/wordcloud/query_integral_image.cpython-39-x86_64-linux-gnu.so;;  -  ;libc.so.6

With fakeroot:

/usr/bin/scanelf -yRBF %a;%p;%S;%r;%n /tmp/portage/media-gfx/word_cloud-1.8.1/image/
EM_X86_64;usr/lib/python3.10/site-packages/wordcloud/query_integral_image.cpython-310-x86_64-linux-gnu.so;;  -  ;libc.so.6
EM_X86_64;usr/lib/python3.9/site-packages/wordcloud/query_integral_image.cpython-39-x86_64-linux-gnu.so;;  -  ;libc.so.6

That is, the files in /usr/lib/debug/ are not there. Which I guess is expected due to the empty list of files in the strip command in this case.