dev-libs/mpc: fix build failure against mpfr-4.0.0, bug #642300
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 26 Dec 2017 16:39:25 +0000 (16:39 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Tue, 26 Dec 2017 16:39:56 +0000 (16:39 +0000)
commitcdf7f5c37e8a3dfacfbf5fc81a6a2a8ef3b77a9a
treee3c8033fab8adfe48826f06282e27c1de9a720ba
parentd609bbeb50dee991641cfbf1d7e99e8285847bcb
dev-libs/mpc: fix build failure against mpfr-4.0.0, bug #642300

mprf-4.0.0 introduced new 'mpfr_fmma' symbol that collides
with mpc's 'mpfr_fmma' symbol.

It's a backport of upstream commit
https://scm.gforge.inria.fr/anonscm/gitweb?p=mpc/mpc.git;a=commitdiff;h=36a84f43f326de14db888ba07936cc9621c23f19
("use mpfr_fmma and mpfr_fmms if provided by mpfr")
which does the following to mitigate build failure:
- rename local symbol to 'mpc_fmma' to avoid collision
- reuse mpfr's symbol if that exists

Reported-by: Perfect Gentleman
Closes: https://bugs.gentoo.org/642300
Package-Manager: Portage-2.3.19, Repoman-2.3.6
dev-libs/mpc/files/mpc-1.0.3-mpfr-4.0.0.patch [new file with mode: 0644]
dev-libs/mpc/mpc-1.0.3.ebuild