commit:     66cdca4a0b121ae77b2530b080e414f96569206a
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 29 10:43:01 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Dec 29 10:43:26 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66cdca4a

dev-libs/mpc: remove eautoreconf call from ebuild, bug #642300

As mpc is one of bootstrap libraries it's highly undesirable
to depend on autotools. Early autotools requirement breaks
prefix bootstrap for example. See https://bugs.gentoo.org/642300

The change updates patch to modify both configure.ac and configure.

Bug: https://bugs.gentoo.org/642576
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 | 44 +++++++++++++++++++++++++++
 dev-libs/mpc/mpc-1.0.3-r1.ebuild              |  3 +-
 2 files changed, 45 insertions(+), 2 deletions(-)

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
index 7f9f7e2b974..72d6f2217ca 100644
--- 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
@@ -80,6 +80,50 @@ index 3c9c0a7..8c4afe4 100644
  
     mpc_set (z, rop, MPC_RNDNN);
     if (overlap)
+--- a/configure
++++ b/configure
+@@ -13835,6 +13835,41 @@ else
+ $as_echo "no" >&6; }
+         as_fn_error $? "libmpfr not found or uses a different ABI (including 
static vs shared)." "$LINENO" 5
+ 
++fi
++rm -f core conftest.err conftest.$ac_objext \
++    conftest$ac_exeext conftest.$ac_ext
++
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_fmma" >&5
++$as_echo_n "checking for mpfr_fmma... " >&6; }
++LIBS="-lmpfr $LIBS"
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include "mpfr.h"
++int
++main ()
++{
++mpfr_t x; mpfr_fmma (x, x, x, x, x, 0);
++
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++
++      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
++$as_echo "yes" >&6; }
++
++$as_echo "#define HAVE_MPFR_FMMA 1" >>confdefs.h
++
++
++else
++
++        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++
++$as_echo "#define HAVE_MPFR_FMMA 0" >>confdefs.h
++
++
+ fi
+ rm -f core conftest.err conftest.$ac_objext \
+     conftest$ac_exeext conftest.$ac_ext
 -- 
 2.15.1
 

diff --git a/dev-libs/mpc/mpc-1.0.3-r1.ebuild b/dev-libs/mpc/mpc-1.0.3-r1.ebuild
index c3508234133..43c7e147e0d 100644
--- a/dev-libs/mpc/mpc-1.0.3-r1.ebuild
+++ b/dev-libs/mpc/mpc-1.0.3-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit autotools eutils libtool multilib-minimal
+inherit eutils libtool multilib-minimal
 
 DESCRIPTION="A library for multiprecision complex arithmetic with exact 
rounding"
 HOMEPAGE="http://mpc.multiprecision.org/";
@@ -26,7 +26,6 @@ PATCHES=(
 src_prepare() {
        default
 
-       eautoreconf
        elibtoolize #347317
 }
 

Reply via email to