Acting a manual unmerge of the ati-drivers package with ati opengl leave wrong links for libglx and others. Reproducible: Always Steps to Reproduce: 1. emerge ati-drivers 2. eselect opengl set ati 3. emerge -C ati-drivers Actual Results: eselect will not be able to complete opengl set xorg-x11 operation and ati-drivers cant be merged due to compile errors. Simply add pkg_prerm () { eselect opengl set xorg-x11 } or change the pkg_postrm function in them solve the problem.
Created attachment 167081 [details] ati-drivers-8.522.ebuild there is allready something like you described ati-drivers-8.522.ebuild. what version are you using? pkg_postrm() { linux-mod_pkg_postrm /usr/bin/eselect opengl set --use-old xorg-x11 }
Created attachment 167083 [details] full output of: emerge -C ati-drivers the ati-drivers-8.522.ebuild tries to: Switching to xorg-x11 OpenGL interface...ln: creating symbolic link `./libGL.so': File exists !!! Error: Failed to create //usr/lib32/libGL.so /var/tmp/binpkgs/x11-drivers/ati-drivers-8.522/temp/environment: line 2984: 7582 Killed /usr/bin/eselect opengl set --use-old xorg-x11 but does not sucseed. for more about this see Bug 237785
(In reply to comment #1) > there is allready something like you described ati-drivers-8.522.ebuild. what > version are you using? The error can be verified with all latest versions of ati-drivers > pkg_postrm() this act after not before the library binaries are removed. in fact is more a problem of eselect because it not delete the symlinks to the ati libraries if started after the binaryes are removed, but change the opengl selection before the remotion in the ebuild is more easy than fix eselect to remove the cruft files. Can you verify if the same problem affect the nvidia drivers (the other common video card with eselect opengl call) also? I have only ati cards on my computers (and I will have never buy this crappy piece of hardware) so is unuseful if I test it. The error in build reported in bug 237785 is the same, in fact bugs 238686 and 237785 are duplicate, but the second is referred to an x86_64 profile (I am on x86 hardened) I have verified and solved by adding a pkg_prerm function (I post the ebuild for 8.522 than works for me). The problem affects all current and unstable versions of ati drivers, I have tested and verified in all 8.5 releases. (now I am trying 8.532 without success as reported in bug 238412, due to possible library conflict, not related to this)
Created attachment 167479 [details] ebuild corrected and tested working Is a brute, trivial fix, but it work for me. Same solution and problem tested for ati-drivers versions: 8.501, 8.512, 8.522 and 8.532
This also happens if you switch a video card. I just replaced my broken nVidia card with an ATI card, but unfortunately old libGL.so symlink cruft was left over from the nVidia installation. I found the workaround in a recent bug (http://bugs.gentoo.org/show_bug.cgi?id=237785#c5), but it still looks like the eselect thing at unmerge would be useful.
(In reply to comment #4) > Created an attachment (id=167479) [edit] > ebuild corrected and tested working > > Is a brute, trivial fix, but it work for me. > Same solution and problem tested for ati-drivers versions: > 8.501, 8.512, 8.522 and 8.532 > hi Nicola, i did test it on my multilib environment and it worked fine for the broken links. but i still have a problem with the fglrx.ko conflict (see Bug 237785) after: emerge ati-drivers emerge -C ati-drivers emerge ati-drivers << here i get the conflict: ... --- cfgpro obj /lib/modules/2.6.25-gentoo-r7/video/fglrx.ko --- cfgpro dir /lib/modules/2.6.25-gentoo-r7/video --- cfgpro dir /lib/modules/2.6.25-gentoo-r7 ... (..or see attachment unmerge.. here) which is according other gentoo bugs not good. did you have also problems with this?
hi people, some further tests now with the versions of eselect: initialy i had this installed: app-admin/eselect-1.0.10 app-admin/eselect-opengl-1.0.6-r1 afterwards i tried to upgrade to a the newer app-admin/eselect-1.0.11-r1 (masked by ~amd64 keyword) with this one i was able to use the unchanged .ebuild for ati v 8.532 the fglrx.ko conflict after unmerge/emerge still persists. any ideas?
It is looks like nvidia folks got similar errors too: http://bugs.gentoo.org/show_bug.cgi?id=228547
Hello I have same bug with the ati-drivers from 8.501 to 8.561. I try the latest drivers download from ATI web-site and it works fine with the default configuration. Video card: Ati Radeon HD 3200 (pci) Ati driver : 8.561 (from web-site) xorg-server : 1.3 emerge --sync 12/22/2008 Note: ebuild dependances require xorg-server 1.5 for ati-drivers 8.561 (!?).
Postinst phase fixed in 9.6. Thanks for report.