Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874795 - [torbrowser] www-client/torbrowser-launcher fails to launch when using gtk compiled without X use flag
Summary: [torbrowser] www-client/torbrowser-launcher fails to launch when using gtk co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: poncho
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-04 05:15 UTC by bugs.gentoo.org.3642l
Modified: 2022-10-04 06:22 UTC (History)
1 user (show)

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


Attachments
emerge --info (emergeinfo.txt,6.90 KB, text/plain)
2022-10-04 05:15 UTC, bugs.gentoo.org.3642l
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.gentoo.org.3642l 2022-10-04 05:15:55 UTC
Created attachment 818416 [details]
emerge --info

x11-libs/gtk+-3.24.34:3::gentoo  USE="... -X* ..."
gui-libs/gtk-4.8.0:4::gentoo  USE="... -X* ..."
dev-cpp/gtkmm-3.24.7:3.0::gentoo  USE="... -X* ..."

Above is a list of gtk packages compiled without X USE flag, to reproduce the issue.

Running the torbrowser-launcher script produces some output, but doesn't launch the browser.

Using the browser executable directly produces this output:
---
XPCOMGlueLoad error for file /home/samuliy/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/libxul.so:
/home/samuliy/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/libxul.so: undefined symbol: gdk_x11_display_get_xdisplay
Couldn't load XPCOM.
---

The browser does not seem to work any different when having MOZ_ENABLE_WAYLAND=1 environment variable set.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 05:20:20 UTC
Please specify which repository you're using it from.
Comment 2 bugs.gentoo.org.3642l 2022-10-04 05:24:29 UTC
Sorry about that. I am in fact using it from the torbrowser repository.

Output of emerge -pv torbrowser-launcher

[ebuild   R    ] www-client/torbrowser-launcher-0.3.5-r1::torbrowser  USE="apparmor" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" 0 KiB
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 05:28:23 UTC
It looks like we removed that overlay a while ago. I suggest changing to the guru overlay for this, and I think it has this problem fixed.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 05:29:24 UTC
(In reply to Sam James from comment #3)
> It looks like we removed that overlay a while ago. I suggest changing to the
> guru overlay for this, and I think it has this problem fixed.

oh, sorry, I got confused! Ignore this.
Comment 5 poncho 2022-10-04 06:22:59 UTC
Thanks for the report. Fixed in https://github.com/MeisterP/torbrowser-overlay/commit/027381508a92f5add66bf1412f541f9268de3d92

@Sam James:
the package in the guru overlay doesn't add the dependencies to run the actual binary at all. therefore doesn't depend on gtk+ in the first place.