sys-devel/binutils: expand SONAME with USE=multitarget, bug #666100
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 15 Sep 2018 11:26:52 +0000 (12:26 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 15 Sep 2018 11:27:17 +0000 (12:27 +0100)
commit5d01953075fcfdb1fbb0e39c3f5f07271e4cf092
tree50c876fb898825d3f0428b4deb499b96ad41cfa3
parent4a8d3413c48ca590b3d9c23684b710bef4f36f6a
sys-devel/binutils: expand SONAME with USE=multitarget, bug #666100

In #663690 creative use of LD_LIBRARY_PATH exposed a problem
of Gentoo's split across binutils and binutils-libs:
we install libbfd.so with the same SONAME but different ABIs.
This caused 'ld' to SIGSEGV or fail asserts.

The change here is to give unique SONAME to each of:
native binutils, cross binutils, binutils-libs packages.

On top of that we encode USE=multitarget flags into SONAME as well.
binutils-libs will also include USE=64-bit-bfd.

This way dynamic linker will be able to detect incompatible changes
like:
- rebuild binutils with new USE flags
- install binutils-libs (silently overrides binutils' libbfd.so)
and report it explicitly.

Bug: https://bugs.gentoo.org/666100
Package-Manager: Portage-2.3.49, Repoman-2.3.10
sys-devel/binutils/Manifest
sys-devel/binutils/binutils-9999.ebuild