Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932850 - gui-wm/sway-1.9-r1: unable to run on fresh install (cannot detect wlroots)
Summary: gui-wm/sway-1.9-r1: unable to run on fresh install (cannot detect wlroots)
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-27 17:10 UTC by Den
Modified: 2024-05-30 14:25 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Den 2024-05-27 17:10:06 UTC
Hello,
The mentioned ebuild fails to run due to [wlr] error on initialization.
As I understand wlroots is mandatory component for Sway to build and run, so wlroots-0.17.2-r1 is built and installed, however emerging sway cannot see it.

den@gentoo ~ $ sudo equery list wlroots
 * Searching for wlroots ...
[IP-] [  ] gui-libs/wlroots-0.17.2-r1:0/17



den@gentoo ~ $ sudo emerge --ask --verbose gui-wm/sway 

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

Calculating dependencies... done!
Dependency resolution took 0.66 s (backtrack: 0/20).

[ebuild   R    ] gui-wm/sway-1.9-r1::gentoo  USE="filecaps man swaybar swaynag -X -tray -wallpapers" 0 KiB

<snip>

Neither a subproject directory nor a wlroots.wrap file was found.
Subproject  wlroots is buildable: NO (disabling)

<snip>

sway 1.9

    xwayland             : NO
    gdk-pixbuf           : YES
    tray                 : NO
    man-pages            : YES

  Subprojects
    wlroots              : NO Neither a subproject directory nor a wlroots.wrap file was found.


Kindly asking to help,
/den
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-27 19:43:55 UTC
I don't think the subproject thing is related. That's just because it's not building a bundled copy.

Please share the full output from when you try to run sway.
Comment 2 Den 2024-05-28 15:51:09 UTC
here it is

den@gentoo ~ $ dbus-run-session sway
nvc0_screen_create:1001 - Base screen init failed: -19
libEGL warning: egl: failed to create dri2 screen
00:00:00.119 [ERROR] [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to create screen"
nvc0_screen_create:1001 - Base screen init failed: -19
libEGL warning: egl: failed to create dri2 screen
00:00:00.121 [ERROR] [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to create screen"
nvc0_screen_create:1001 - Base screen init failed: -19
libEGL warning: egl: failed to create dri2 screen
00:00:00.124 [ERROR] [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to create screen"
00:00:00.124 [ERROR] [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "eglInitialize"
00:00:00.124 [ERROR] [wlr] [render/egl.c:269] Failed to initialize EGL
00:00:00.124 [ERROR] [wlr] [render/egl.c:572] Failed to initialize EGL context
00:00:00.124 [ERROR] [wlr] [render/gles2/renderer.c:804] Could not initialize EGL
00:00:00.124 [ERROR] [wlr] [render/wlr_renderer.c:423] Could not initialize renderer
00:00:00.124 [ERROR] [sway/server.c:143] Failed to create renderer
Comment 3 Den 2024-05-29 18:56:00 UTC
Hello,
I have some update, I've just complete the fresh install of gentoo with sway, but on the other host and it succeed.
The major difference between hosts is GPU, the failed node has nvidia (nouveau), on the second there is intel gpu. The irony is that on the failing host the fresh install of gentoo linux with sway has been successful without any issue just around a month ago... can't really understand what wrong with newest ebuilds...