Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mpc/, dev-libs/mpc/files/
Date: Fri, 29 Dec 2017 10:43:41
Message-Id: 1514544206.66cdca4a0b121ae77b2530b080e414f96569206a.slyfox@gentoo
1 commit: 66cdca4a0b121ae77b2530b080e414f96569206a
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 29 10:43:01 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 29 10:43:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66cdca4a
7
8 dev-libs/mpc: remove eautoreconf call from ebuild, bug #642300
9
10 As mpc is one of bootstrap libraries it's highly undesirable
11 to depend on autotools. Early autotools requirement breaks
12 prefix bootstrap for example. See https://bugs.gentoo.org/642300
13
14 The change updates patch to modify both configure.ac and configure.
15
16 Bug: https://bugs.gentoo.org/642576
17 Closes: https://bugs.gentoo.org/642300
18 Package-Manager: Portage-2.3.19, Repoman-2.3.6
19
20 dev-libs/mpc/files/mpc-1.0.3-mpfr-4.0.0.patch | 44 +++++++++++++++++++++++++++
21 dev-libs/mpc/mpc-1.0.3-r1.ebuild | 3 +-
22 2 files changed, 45 insertions(+), 2 deletions(-)
23
24 diff --git a/dev-libs/mpc/files/mpc-1.0.3-mpfr-4.0.0.patch b/dev-libs/mpc/files/mpc-1.0.3-mpfr-4.0.0.patch
25 index 7f9f7e2b974..72d6f2217ca 100644
26 --- a/dev-libs/mpc/files/mpc-1.0.3-mpfr-4.0.0.patch
27 +++ b/dev-libs/mpc/files/mpc-1.0.3-mpfr-4.0.0.patch
28 @@ -80,6 +80,50 @@ index 3c9c0a7..8c4afe4 100644
29
30 mpc_set (z, rop, MPC_RNDNN);
31 if (overlap)
32 +--- a/configure
33 ++++ b/configure
34 +@@ -13835,6 +13835,41 @@ else
35 + $as_echo "no" >&6; }
36 + as_fn_error $? "libmpfr not found or uses a different ABI (including static vs shared)." "$LINENO" 5
37 +
38 ++fi
39 ++rm -f core conftest.err conftest.$ac_objext \
40 ++ conftest$ac_exeext conftest.$ac_ext
41 ++
42 ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_fmma" >&5
43 ++$as_echo_n "checking for mpfr_fmma... " >&6; }
44 ++LIBS="-lmpfr $LIBS"
45 ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46 ++/* end confdefs.h. */
47 ++#include "mpfr.h"
48 ++int
49 ++main ()
50 ++{
51 ++mpfr_t x; mpfr_fmma (x, x, x, x, x, 0);
52 ++
53 ++ ;
54 ++ return 0;
55 ++}
56 ++_ACEOF
57 ++if ac_fn_c_try_link "$LINENO"; then :
58 ++
59 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60 ++$as_echo "yes" >&6; }
61 ++
62 ++$as_echo "#define HAVE_MPFR_FMMA 1" >>confdefs.h
63 ++
64 ++
65 ++else
66 ++
67 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68 ++$as_echo "no" >&6; }
69 ++
70 ++$as_echo "#define HAVE_MPFR_FMMA 0" >>confdefs.h
71 ++
72 ++
73 + fi
74 + rm -f core conftest.err conftest.$ac_objext \
75 + conftest$ac_exeext conftest.$ac_ext
76 --
77 2.15.1
78
79
80 diff --git a/dev-libs/mpc/mpc-1.0.3-r1.ebuild b/dev-libs/mpc/mpc-1.0.3-r1.ebuild
81 index c3508234133..43c7e147e0d 100644
82 --- a/dev-libs/mpc/mpc-1.0.3-r1.ebuild
83 +++ b/dev-libs/mpc/mpc-1.0.3-r1.ebuild
84 @@ -3,7 +3,7 @@
85
86 EAPI=6
87
88 -inherit autotools eutils libtool multilib-minimal
89 +inherit eutils libtool multilib-minimal
90
91 DESCRIPTION="A library for multiprecision complex arithmetic with exact rounding"
92 HOMEPAGE="http://mpc.multiprecision.org/"
93 @@ -26,7 +26,6 @@ PATCHES=(
94 src_prepare() {
95 default
96
97 - eautoreconf
98 elibtoolize #347317
99 }