Bug 4576

Summary: libx11: Xcms should be enabled by default
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Liu <net147>
Component: graphicsAssignee: Jonathan Liu <net147>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jonathan Liu 2013-05-30 12:37:40 UTC
The following do not work if Xcms is not enabled in libx11:
- starting xterm and doing ls --color / fails to color code the directories:
  xterm: Cannot allocate color "rgb:5c/5c/ff"
- xsetroot -solid rgb:5c/5c/ff fails with the following error:
  xsetroot:  unknown color "rgb:5c/5c/ff"
- xsetroot -solid rgbi:1.0/1.0/1.0 fails with the following error:
  xsetroot:  unknown color "rgbi:1.0/1.0/1.0"
Comment 1 Jonathan Liu 2013-05-30 12:49:52 UTC
In particular, it seems these applications fail because they pass Xcms color names to XParseColor [1]. These would be color names of the form:
rgb:<red>/<green>/<blue>
rgbi:<red>/<green>/<blue>
CIEXYZ:<X>/<Y>/<Z> 
CIEuvY:<u>/<v>/<Y> 
CIExyY:<x>/<y>/<Y> 
CIELab:<L>/<a>/<b> 
CIELuv:<L>/<u>/<v> 
TekHVC:<H>/<V>/<C>

[1] http://www.x.org/releases/X11R7.6/doc/man/man3/XLookupColor.3.xhtml