Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55142 - Packages that provide OpenGL implementations should inform the user that 'opengl-update' should be run after removal.
Summary: Packages that provide OpenGL implementations should inform the user that 'ope...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-25 04:59 UTC by Peter Jensen
Modified: 2005-04-26 13:24 UTC (History)
3 users (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 Peter Jensen 2004-06-25 04:59:47 UTC
As seen in bug #55016 you risk leaving stale symlinks on the system if opengl-update is not run after unmerging one OpenGL implementation.
Perhaps a friendly warning after unmerging is in order?
I was thinking something along the lines of this in the nvidia-glx, ati-drivers, and mtxdrivers-pro ebuilds:

pkg_postrm()
{
    ewarn "Remember to run \"opengl-update\" to switch to a working OpenGL!"
}
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-26 01:08:13 UTC
Personally, I think it should run opengl-update for you, just like nvidia drivers do now at install time.

Anyone else have thoughts on this?
Comment 2 Peter Jensen 2004-06-26 03:49:02 UTC
Yes, I though about that too.
It would make sense if there was only one valid OpenGL implementation remaining.
If there were more (like after an upgrade), it should only warn.
Not that I think many people will have three or more implementations installed (since that seems invalid), but in that situation it might be dangerous to meddle.
At any rate, something has to be done.  Leaving stale links on the system is simply not an option.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-26 14:48:13 UTC
I would suggest that it switch back to the default implementation (xorg, xfree) because anything is better than broken, and it would ignore any others around (ati, nvidia, mtx, etc).

Since running opengl-update prints some info about the action, it also can serve as a warning.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-26 14:49:15 UTC
Your comment does bring up some interesting points in combination with bug #55212, though.
Comment 5 Peter Jensen 2004-06-26 15:32:55 UTC
Yes, bug #55212 is exactly the kind of situation I was worrying about initially.
I still suggest a warning at unmerge time, and that may indeed be the only safe choice (without a whole lot of logic behind it).
At least that way it'll be the user that breaks the system, not portage :-)
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-26 13:24:12 UTC
this is fixed in the latest ati and nvidia drivers.  Thanks.