Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289423 - x11-libs/libXext-1.0.5: "Generic Event Extension" incorrectly reported as missing when app doesn't ask for it.
Summary: x11-libs/libXext-1.0.5: "Generic Event Extension" incorrectly reported as mis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-17 03:07 UTC by John Bowler
Modified: 2009-10-24 18:40 UTC (History)
1 user (show)

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


Attachments
Patch to fix the bug in libXext 1.0.5 (extutil-127.patch,391 bytes, patch)
2009-10-17 03:20 UTC, John Bowler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Bowler 2009-10-17 03:07:29 UTC
With libXext 1.0.5 (a recent upgrade) the error message:

Xlib:  "Generic Event Extension" missing on display '<whatever>'.

is produced if the server (e.g. Xming) does not support the extension but does support at least one other known extension.

It's a simple mud-on-face bug in libXext 1.0.5 extutil.c line 127 (the strcmp, oops ;-)

Best repro is with Xming - the free version simply doesn't have the extension, so the error message is squirted onto stderr on the first XOpenDisplay.

Reproducible: Always

Steps to Reproduce:
See description.
Comment 1 John Bowler 2009-10-17 03:20:34 UTC
Created attachment 207377 [details, diff]
Patch to fix the bug in libXext 1.0.5

I've reported the bug #24581 in bugs.freedesktop.org.  The patch, verified against x11-libs/libXext/libXext-1.0.5.ebuild, is attached (it simply corrects the strcmp test) and has been verified against my own program.
Comment 2 John Bowler 2009-10-19 01:09:09 UTC
That (the strcmp change) is the wrong fix - the code really was meant to do that.  There is an existing fix for libXext; commit 8a91fc6f72206362f399b5e29bf3d5f44f4eb822 - see #24581, here:

http://bugs.freedesktop.org/show_bug.cgi?id=24581

Or see the commit itself:

http://cgit.freedesktop.org/xorg/lib/libXext/commit/?id=8a91fc6f72206362f399b5e29bf3d5f44f4eb822

It's a two liner diff and the libXext 1.0.5 code seems unchanged so it can just be back ported into 1.0.5


Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-10-24 16:52:47 UTC
Fixed in libxext-1.1, if I'm reading this right.
X11: Wanna backport? Otherwise, just close this bug as FIXED
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-10-24 18:40:42 UTC
It's just a warning and is clearly marked as such...

We'll get to newer libXext at some point. I don't see the need to backport that "fix".

Cheers