https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c0 Summary: Perl module X11::Auth not knowing about the openSUSE-specific XAUTHLOCALHOSTNAME environment variable. Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: vargusz@fazekas.hu QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- Created an attachment (id=476013) --> (http://bugzilla.novell.com/attachment.cgi?id=476013) Suggested patch for the bug report, fixes Perl module X11::Auth User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0 There is an openSUSE-specific solution for X authentication failures in case of changing host names, which uses an environment variable called XATHLOCALHOSTNAME. It was introduced after Bug #420057, and the discussion of Bug #538064 shows that is could not be pushed upstream GDM (upstream bug report in [1]). The Perl method X11::Auth->get_by_host() [2] in package perl-X11-Protocol tries to find the magic cookie for the host name returned by Sys::Hostname::hostname(), but the XATHLOCALHOSTNAME contains "localhost" instead of the real hostname, so no value is returned. The attached patch contains two independent attempts to fix this issue, and I think that either of them should be enough. This defect surfaced when trying to apply Debian testing's patch for xdg-screensaver in Bug #559110 to fix the issue of being unable to "poke" gnome-screensaver correctly. The issue with the Perl module X11::Auth cannot be reported upstream as the XATHLOCALHOSTNAME environment variable is openSUSE-specific. [1] https://bugzilla.gnome.org/show_bug.cgi?id=555464 [2] http://search.cpan.org/~smccam/X11-Protocol-0.56/Auth.pm Reproducible: Always Steps to Reproduce: Call X11::Protocol->new() in a Perl script and observe the error message on the output. Actual Results: Error message: "Connection to server failed -- (version 11.0) No protocol specified" Expected Results: The X11::Protocol->new() should succeed authenticating to the X server using X11::Auth -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.