Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130003 - x11-base/xorg-server-1.0.99.901 does not seem to use rgb database
Summary: x11-base/xorg-server-1.0.99.901 does not seem to use rgb database
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-14 17:54 UTC by Ferris McCormick (RETIRED)
Modified: 2006-04-16 13:36 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ferris McCormick (RETIRED) gentoo-dev 2006-04-14 17:54:37 UTC
Perhaps upstream, perhaps xf86-video-sunffb related:

With referenced (masked) server, xf86-video-sunffb-1.1.0, etc., and a local rgb database, the Xorg.0.log file claims:
/var/log/Xorg.0.log:(**) RgbPath set to "/usr/share/X11/rgb-local"
which is correct.
Indeed, if I look for
showrgb | grep fuchsia/dim, it tells me
126   0  71             fuchsia/dim
which is also correct.
But when I try to 'emacs -bg fuchsia/dim', say, I get
Undefined color:  "fuchsia/dim"

I have no idea where the change comes from, nor if it is intentional or not.  But whatever it is, it is most unwelcome.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-14 21:44:15 UTC
Why is that correct? It looks like you have an incorrect setting.

/var/log/Xorg.0.log:(==) RgbPath set to "/usr/share/X11/rgb"
Comment 2 Ferris McCormick (RETIRED) gentoo-dev 2006-04-15 01:09:12 UTC
(In reply to comment #1)
> Why is that correct? It looks like you have an incorrect setting.
> 
> /var/log/Xorg.0.log:(==) RgbPath set to "/usr/share/X11/rgb"
> 
Well, because:
1.  I have RgbPath       "/usr/share/X11/rgb-local"
2.  My Xorg.0.log claims:  (**) RgbPath set to "/usr/share/X11/rgb-local"
3.  Just for fun, before filing this I'd forced /usr/share/X11/rgb.txt and /usr/share/X11/rgb-local.txt to be identical, and they both know about fuchsia
4.  Only change needed to trigger this is is upgrade of server and drivers; my rgb-local.txt file has not changed for years, and xorg.conf did not change with the upgrade.
5.  If, say, I run 'emacs -bg fuchsia -display <some-system-with-unmasked-server>:0.0' I get what I expect.

So only variable in the mix is the server/driver upgrade.  xorg.conf, etc. are as always.
Comment 3 Ferris McCormick (RETIRED) gentoo-dev 2006-04-15 02:02:25 UTC
Oh, yes, there is this ChangeLog entry, too:
        Replace rgb text file loading with static rgb color table.
That suggests that rgb is no longer an RDEPEND for xorg-server, but rather just ignored, and that once the server is built, the user can no longer change the rgb database.  At a minimum, there needs to be w way for the user to specify what rgb database should be used; if I find it useful to change rgb databases, I suspect others do, too (since X11 has supported it from day 0 --- yesterday).

I'm checking to see if building the server with every conceivable rgb database on the system is identical to my local one makes a difference, but it looks to me as if it's forced in os/oscolor.c ; os/oscolor.h to ignore any local rgb database.  (i.e., a hard coded option in oscolor.c to disallow user override.)

How removing this capability is a good thing escapes me completely, but is a show stopper so far as I am concerned.  I rely heavily on what is in my own rgb-local.txt definitions.
Comment 4 Ferris McCormick (RETIRED) gentoo-dev 2006-04-15 08:04:19 UTC
Cross reference upstream at https://bugs.freedesktop.org/show_bug.cgi?id=6608

If a Gentoo fix is required, it's trivial at this point.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-16 13:36:54 UTC
Great, we'll track it there.