Created attachment 278483 [details, diff] A patch for portage As explained on gentoo-dev [1], env-update should pass '-X' to ldconfig in order to preserve SONAME symlinks installed by portage. This fixes downgrade issues with preserved-libs. Opening a bug to track other 'ldconfig' calls. [1]:http://archives.gentoo.org/gentoo-dev/msg_7eb376c69be3e43ce8847586cd36de1e.xml
Maybe we should add a pre-merge symlink check for $D. Then if necessary we can generate missing symlinks and trigger a QA Notice.
(In reply to comment #1) > Maybe we should add a pre-merge symlink check for $D. Then if necessary we can > generate missing symlinks and trigger a QA Notice. Well, I did a massive 'qlist -a' check on my packages and none seem not to provide those symlinks. But such a check is a good idea indeed. Even better than blindly running 'ldconfig -N -n ${D}/usr/lib'.
I've made it automatically create symlinks after src_install, since that's when NEEDED.ELF.2 is generated: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=31c9c68d7e96070166fe385141400fa3bcb5950e And the env-update patch is applied: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e1347f9c0dd5ef5ff1a50d6b136b0648efb8a6ca
(In reply to comment #3) > I've made it automatically create symlinks after src_install, since that's when > NEEDED.ELF.2 is generated: > > http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=31c9c68d7e96070166fe385141400fa3bcb5950e This is confined to global libdirs now: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=cad462a63a79438f1666b41a61631de2de4a6163
This is in 2.2.0_alpha42, but I'll leave this bug open until it's in an unmasked release.
This is fixed in 2.1.10.4.
*** Bug 364431 has been marked as a duplicate of this bug. ***