I downgraded sys-devel/gcc-4.2.4 to sys-devel/gcc-4.2.3 and some libraries were needlessly preserved:
!!! existing preserved libs:
>>> package: sys-devel/gcc-4.2.3
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgcc_s.so
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgomp.so
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgomp.so.1
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libstdc++.so
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libstdc++.so.6
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgcc_s.so.1
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgomp.so.1.0.0
* - /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libstdc++.so.6.0.9
Use emerge @preserved-rebuild to rebuild packages using these libraries
Next I reinstalled virtual/opengl and these libraries were unpreserved:
<<< !needed sym /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgcc_s.so
<<< !needed sym /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgomp.so
<<< !needed sym /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgomp.so.1
<<< !needed sym /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libstdc++.so
<<< !needed sym /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libstdc++.so.6
<<< !needed obj /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgcc_s.so.1
<<< !needed obj /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgomp.so.1.0.0
<<< !needed obj /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libstdc++.so.6.0.9
*** Bug 232784 has been marked as a duplicate of this bug. ***
Same with media-libs/libkipi-0.1.6 - 0.1.6-r1 upgrade (move from /usr/lib to kde prefix). On emerge @preserved-rebuild the depending packages keep linking to the preserved versions... I guess the workaround is to delete the old libraries manually and emerge @preserved-rebuild to relink and clean it up?
(In reply to comment #2)
> I guess the workaround is to delete the old
> libraries manually and emerge @preserved-rebuild to relink and clean it up?
Hm no, after the manual rm the @preserved-rebuild becomes empty set, leaving the files missing in CONTENTS. Not totally clean but bearable I guess...
*** Bug 240367 has been marked as a duplicate of this bug. ***
(In reply to comment #3)
> Hm no, after the manual rm the @preserved-rebuild becomes empty set, leaving
> the files missing in CONTENTS. Not totally clean but bearable I guess...
Or note which packages are in @preserved-rebuild and manually re-emerge them after deleting the old libraries.
This is fixed in svn r11746.
Actually, the fix in svn r11746 will only work after /etc/ld.so.conf has been updated with the new paths. I guess we'll have to trigger the relevant code right after ld.so.conf has been updated.
Should be all fixed now, as of r11749.
This is fixed in 2.2_rc13.