Bug 4576 - libx11: Xcms should be enabled by default
Summary: libx11: Xcms should be enabled by default
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Jonathan Liu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-30 12:37 UTC by Jonathan Liu
Modified: 2013-06-28 10:00 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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