dev-libs/mpc: remove eautoreconf call from ebuild, bug #642300
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 29 Dec 2017 10:43:01 +0000 (10:43 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 29 Dec 2017 10:43:26 +0000 (10:43 +0000)
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
dev-libs/mpc/mpc-1.0.3-r1.ebuild

index 7f9f7e2b97439f533cde39f4f6aab0b96f87f6ae..72d6f2217caf3a03202647f55f6d568991ae0e62 100644 (file)
@@ -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
 
index c35082341337ddcba9289ecd06b837ee253a1119..43c7e147e0d3c45ef2030718a3462fc48e6f3998 100644 (file)
@@ -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
 }