FS#33542 - [catalyst-utils] /etc/ati/authatieventsd.sh: Permission denied
Attached to Project:
Community Packages
Opened by alexander (actics) - Thursday, 24 January 2013, 10:46 GMT
Last edited by Laurent Carlier (lordheavy) - Saturday, 20 April 2013, 18:40 GMT
Opened by alexander (actics) - Thursday, 24 January 2013, 10:46 GMT
Last edited by Laurent Carlier (lordheavy) - Saturday, 20 April 2013, 18:40 GMT
|
Details
Description:
In my x86_64 arch, after installing catalyst-utils 13.1 i have a write to log (journalctl every second) atieventsd[680]: sh: /etc/ati/authatieventsd.sh: Permission denied after # chmod +x /etc/ati/authatieventsd.sh i have a atieventsd[680]: /etc/ati/authatieventsd.sh: line 69: return: -1: invalid option i rewrite line 69 to exit -1, and in journalctl is clear |
This task depends upon
You get:
atieventsd[680]: /etc/ati/authatieventsd.sh: line 69: return: -1: invalid option
because the script somehow fails to determine any authorization key for X and hits line 69, which is:
return -1
Not finding an authorization key can happen if you start your X with something else than xdm, kdm, gdm or startx.
Or you haven't started X at all prior to executing the script.
Also, rewriting line 69 to exit -1 is not correct, as it exits the whole script, not only the function.
For bash, line 69 should be:
return -- -1
See this for more info:
http://gnu-bash.2382.n7.nabble.com/bug-return-doesn-t-accept-negative-numbers-tp2031p2032.html
which
xorg-xauth
sysvinit-tools
packages in order to work and maybe they should be optional dependencies.
which is part of base package
sysvinit-tools will be useless, i've replaced pidof with ps
xorg-xauth will be added as a dependency
Thanks! Test for bug on lxdm, slim and startx in my system is OK.
In catalyst-utils-13.1-2 you directly include a modified version of
authatieventsd.sh instead of a patch for it. I agree this is more
convenient for the maintainer. This way, the fglrx-authfile-locations.patch
becomes unnecessary. You can include the changes in directly in the
redacted authatieventsd.sh.
Besides, since when the whole 'base' group is expected to be installed?
I thought this was the case only with 'base-devel'.
locations.patch' do not take effect since it patches the original
'authatieventsd.sh' and after that the new, modified version of
'authatieventsd.sh' replaces it. 'fglrx-authfile-locations.patch' have
to be merged in the 'authatieventsd.sh' supplied with the package.