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

Bug 813129

Summary: www-client/firefox-bin: missing rdeps
Product: Gentoo Linux Reporter: Tim Harder <radhermit>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: CONFIRMED ---    
Severity: normal CC: ashpil, herrtimson, ionen, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tim Harder gentoo-dev 2021-09-15 05:32:31 UTC
Running under a stripped down env I get the following errors on startup.

> XPCOMGlueLoad error for file /opt/firefox/libxul.so:
> libXcursor.so.1: cannot open shared object file: No such file or directory
> Couldn't load XPCOM.

Meaning the ebuild lacks an explicit rdep on x11-libs/libXcursor.

> XPCOMGlueLoad error for file /opt/firefox/libxul.so:
> libXi.so.6: cannot open shared object file: No such file or directory
> Couldn't load XPCOM.

And another on x11-libs/libXi.

A suggestion to track rdeps going forward, I'd run something like

> scanelf -L -n -q -F '%n #F' /opt/firefox/libxul.so | tr , ' ' | xargs qfile -C | sort -u

and against any other relevant binary objects alongside doing a simple run check of some type. I'm sure there are probably some dev scripts that help/aid with this as well.
Comment 1 Tim Harder gentoo-dev 2021-09-15 05:34:05 UTC
I forgot to mention, this was using 92.0-r1 but I imagine it's probably relevant for most older versions as well.
Comment 2 Sam James archtester gentoo-dev Security 2021-09-15 05:49:15 UTC
(In reply to Tim Harder from comment #0)
> [...]
> and against any other relevant binary objects alongside doing a simple run
> check of some type. I'm sure there are probably some dev scripts that
> help/aid with this as well.

(iwdevtools works well for this: https://github.com/ionenwks/iwdevtools; https://archives.gentoo.org/gentoo-dev/message/2d3b455009176b54b5506173b16383f5).
Comment 3 Joonas Niilola gentoo-dev 2021-09-15 06:25:42 UTC
 * QA: detected possibly incorrect RDEPEND (www-client/firefox-bin-92.0-r1)
 * x11-libs/gdk-pixbuf | x11-libs/gdk-pixbuf:2
 *                     > x11-libs/libXcursor
 *                     > x11-libs/libXi
 *                     > x11-libs/libxcb
Comment 4 Thomas Deutschmann gentoo-dev Security 2021-09-15 21:53:06 UTC
I am very that this is not a direct firefox dep (can't check right now). It may be depend on USE flags for some deps and bin package upstream is probably always requiring USE=wayland...
Comment 5 Ionen Wolkens gentoo-dev 2021-09-15 22:04:02 UTC
The three are in DT_NEEDED for firefox-bin's libxul.so itself.

Not the case for non-bin www-client/firefox which I'd guess is --as-needed discarding.
Comment 6 tt_1 2021-09-27 19:07:20 UTC
so I've just hit this during src_configure of firefox-92.0.1, the configure scripts certainly checks for it:

 0:48.09 checking MOZ_WEBP_CFLAGS... -I/usr/aarch64-unknown-linux-gnu/usr/include
 0:48.10 checking MOZ_WEBP_LIBS... -L/usr/aarch64-unknown-linux-gnu/usr/lib64 -lwebpdemux -lwebp
 0:48.12 checking for x11 xcb xcb-shm x11-xcb xext xrender xcomposite xcursor xdamage xfixes xi... no
 0:48.12 ERROR: Package xcursor was not found in the pkg-config search path.
 0:48.12 ERROR: Perhaps you should add the directory containing `xcursor.pc'
 0:48.12 ERROR: to the PKG_CONFIG_PATH environment variable
 0:48.12 ERROR: Package 'xcursor', required by 'virtual:world', not found
Error running mach:

    ['configure']


if the so files don't make use of it, it might be an upstream bug? 

emerging x11-libs/libXcursor solves the error