Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539340 - x11-misc/virtualgl with x11-misc/sddm - /etc/init.d/vgl calls set_xauth which assumes X authentication filename is mentioned in cmdline
Summary: x11-misc/virtualgl with x11-misc/sddm - /etc/init.d/vgl calls set_xauth which...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-08 14:25 UTC by Rafal Lalik
Modified: 2015-10-03 11:58 UTC (History)
5 users (show)

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


Attachments
My build.log (build.log,646.79 KB, text/plain)
2015-09-20 07:56 UTC, Silvio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Lalik 2015-02-08 14:25:49 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 14:35:41 UTC
What installs set_xauth?
Comment 2 Rafal Lalik 2015-02-08 14:37:19 UTC
x11-misc/virtualgl, function is defined in
/usr/portage/x11-misc/virtualgl/files/vgl.confd-r1
Comment 3 Rafal Lalik 2015-02-09 07:27:10 UTC
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.
Comment 4 Silvio 2015-09-16 22:14:13 UTC
(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
Comment 6 Silvio 2015-09-20 07:54:44 UTC
(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"
Comment 7 Silvio 2015-09-20 07:56:03 UTC
Created attachment 412316 [details]
My build.log

Complete log
Comment 8 Pacho Ramos gentoo-dev 2015-10-03 11:58:16 UTC
The build failure was fixed in:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fed12a1bc95a7a7d4409b47af7ce0f2b9f48b685