When running vgl daemon it calls set_auth command which is executing: # common case (works in almost all tested environments (except of lightdm)): XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2)" to extract auth file name. This works fine for e.g. kdm with auth file: /usr/bin/X -br -novtswitch -quiet :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-AOWMmb where grep can match "auth" in file path, but does not work with sddm, where, like in my case, X command is called following: /usr/bin/X :0 -auth /var/run/sddm/:0 -nolisten tcp -background none -noreset vt7 In this case no auth in file path is matched. Adding a comment to /usr/portage/x11-misc/virtualgl/files/vgl.confd-r1 that it does not work with "lightdm and sddm" I do not consider as a solution :) Reproducible: Always Actual Results: As a results, vgl service stopes somewhere in xauth comand since %XAUTHORITY is an empty variable
What installs set_xauth?
x11-misc/virtualgl, function is defined in /usr/portage/x11-misc/virtualgl/files/vgl.confd-r1
Actually, I found that even beside general formula to get XAUTHORITY of XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2)" /etc/conf.d/vgl defines (commented by default) custom definitions for each display manager, it is enough to modify general expression to (get rod of auth in grep command): XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*' | cut -d ' ' -f 2)" to make it working for each DM.
(In reply to Rafal Lalik from comment #3) > Actually, I found that even beside general formula to get XAUTHORITY of > > XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o > '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2)" > > /etc/conf.d/vgl defines (commented by default) custom definitions for each > display manager, it is enough to modify general expression to (get rod of > auth in grep command): > > XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o > '\B[-]auth\s*/var\S*' | cut -d ' ' -f 2)" > > to make it working for each DM. I confirm both the problem and the solution proposed. Now that plasma5 is in portage I think it is important to solve this bug
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=945fef13fa4820de9ebafdf8c399d19f74418954
(In reply to Pacho Ramos from comment #5) > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=945fef13fa4820de9ebafdf8c399d19f74418954 It doesn't compile now. It exits in this way: -- Up-to-date: /var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image/usr/share/doc/virtualgl-2.4.1/sshtunnel.png -- Up-to-date: /var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image/usr/share/doc/virtualgl-2.4.1/LICENSE.txt -- Up-to-date: /var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image/usr/share/doc/virtualgl-2.4.1/LICENSE-FLTK.txt -- Up-to-date: /var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image/usr/share/doc/virtualgl-2.4.1/LGPL.txt -- Up-to-date: /var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image/usr/share/doc/virtualgl-2.4.1/index.html -- Up-to-date: /var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image/usr/share/doc/virtualgl-2.4.1/virtualgl.css -- Up-to-date: /var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image/usr/share/doc/virtualgl-2.4.1/ChangeLog.txt rm: impossibile rimuovere "/var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image//usr/share/doc/virtualgl-2.4.1-r1/LGPL.txt*": File o directory non esistente rm: impossibile rimuovere "/var/tmp/portage/x11-misc/virtualgl-2.4.1-r1/image//usr/share/doc/virtualgl-2.4.1-r1/LICENSE*": File o directory non esistente NOTE: "impossibile rimuovere" means "impossibile to remove" "File o directory non esistente" means "the file or directory doesn't exist" I'm sorry my emerge log speaks in Italian (I'm not able to set it in english"
Created attachment 412316 [details] My build.log Complete log
The build failure was fixed in: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fed12a1bc95a7a7d4409b47af7ce0f2b9f48b685