Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238686 - x11-drivers/ati-drivers - unmerge should run eselect opengl
Summary: x11-drivers/ati-drivers - unmerge should run eselect opengl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 19:23 UTC by djinnZ
Modified: 2009-07-06 11:14 UTC (History)
4 users (show)

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


Attachments
ati-drivers-8.522.ebuild (ati-drivers-8.522.ebuild,14.33 KB, text/plain)
2008-10-03 12:36 UTC, Erik Dobak
Details
full output of: emerge -C ati-drivers (unmerge ati-drivers-8.522,9.80 KB, text/plain)
2008-10-03 12:42 UTC, Erik Dobak
Details
ebuild corrected and tested working (ati-drivers-8.522.ebuild,14.42 KB, text/plain)
2008-10-06 18:05 UTC, djinnZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djinnZ 2008-09-25 19:23:50 UTC
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.
Comment 1 Erik Dobak 2008-10-03 12:36:48 UTC
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
}
Comment 2 Erik Dobak 2008-10-03 12:42:48 UTC
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
Comment 3 djinnZ 2008-10-06 18:00:03 UTC
(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)
Comment 4 djinnZ 2008-10-06 18:05:22 UTC
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
Comment 5 nm (RETIRED) gentoo-dev 2008-10-08 01:40:59 UTC
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.
Comment 6 Erik Dobak 2008-10-08 18:40:54 UTC
(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?
Comment 7 Erik Dobak 2008-10-12 09:43:02 UTC
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?
Comment 8 Max Arnold 2008-11-25 14:26:34 UTC
It is looks like nvidia folks got similar errors too: http://bugs.gentoo.org/show_bug.cgi?id=228547
Comment 9 Jean-Marie PRIOUL 2008-12-31 02:00:25 UTC
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 (!?).
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2009-07-06 11:14:01 UTC
Postinst phase fixed in 9.6.
Thanks for report.