Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575368 - app-eselect/eselect-opengl creates 20opengl.conf instead of 20-opengl.conf
Summary: app-eselect/eselect-opengl creates 20opengl.conf instead of 20-opengl.conf
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-22 09:47 UTC by Michael Gn. Gajda
Modified: 2017-10-21 21:11 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 Michael Gn. Gajda 2016-02-22 09:47:43 UTC
Not sure if this is really an issue. But after reading #534128 I noticed that there *is* some confusion about the name of this config file.

eslect opengl creates a file /etc/X11/xorg.conf.d/20opengl.conf while other files use a hyphen (e.g. 97-evdev.conf). On some systems (noticed this on mine, reading the bugreport I mentioned earlier it appears that others have similar issues) a file called 20-opengl.conf exists.

Eventually the name was changed in the utility along the way, creating two configs that might overwrite each other and cause opengl issues.

I would suggest that an updated version of eselect checks for 20opengl.conf and known hashes and warns the user [1]. And that it uses 20-opengl.conf by default to stay consistent with the other files.

Best wishes,
Michael


[1]
When invoked:
- Just delete the file 20opengl.conf if the md5sum is 02f2b21130b93a2bb6662ac125884077 (Add known md5 for nvidia / ati settings)
- If md5 unknown, print:
"eselect detected that /etc/X11/xorg.conf.d/20opengl.conf exists and contains custom settings. You can migrate your settings to 20-opengl.conf and delete 20opengl.conf"
- write new config to 20-opengl.conf
Comment 1 Jesper Olsson 2017-05-18 22:22:39 UTC
eselect opengl also creates /etc/env.d/000opengl and not 00opengl as one would expect.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-05-21 07:15:59 UTC
(In reply to Jesper Olsson from comment #1)
> eselect opengl also creates /etc/env.d/000opengl and not 00opengl as one
> would expect.

This is needed to make it sourced before 00basic.
Comment 3 Michael Gn. Gajda 2017-10-21 21:11:32 UTC
I am not sure if this means, that this mix(?) is intentional. Either way, I assume this bugreport is no longer relevant so I'll just close it. :-)