From f07eeec3c59081e46fda12c83bed06e4cc6e0f91 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Sun, 15 Jan 2017 19:27:57 +0000 Subject: [PATCH] sci-libs/mpir: Version Bump Package-Manager: Portage-2.3.3, Repoman-2.3.1 Signed-off-by: Justin Lecher --- sci-libs/mpir/Manifest | 1 + sci-libs/mpir/files/mpir-2.2.0-yasm.patch | 54 ------- .../mpir/files/mpir-2.7.2-ABI-multilib.patch | 145 ++++++++++++++++++ sci-libs/mpir/mpir-2.6.0-r2.ebuild | 4 +- sci-libs/mpir/mpir-2.7.2.ebuild | 68 ++++++++ 5 files changed, 216 insertions(+), 56 deletions(-) delete mode 100644 sci-libs/mpir/files/mpir-2.2.0-yasm.patch create mode 100644 sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch create mode 100644 sci-libs/mpir/mpir-2.7.2.ebuild diff --git a/sci-libs/mpir/Manifest b/sci-libs/mpir/Manifest index e79d8186d90e..23509da06a0e 100644 --- a/sci-libs/mpir/Manifest +++ b/sci-libs/mpir/Manifest @@ -1 +1,2 @@ DIST mpir-2.6.0.tar.lzma 2472231 SHA256 2d2cd75a21a73bcd8898f092e4f123016b578288d7c7eab2df05df5e1921695f SHA512 e2608beeb72651c9b2e47f8fb2bcf672f8c74e2cd622e17cd19b12100b66e929ee31d102d2901816379b23aee1a3ea3a854e3e10ebffe2a6e4772748858f911d WHIRLPOOL 4759be848778fc4f34e87083e83e3697bfb57b9c9360ab69666afadc1b2652285a3c2a4c14321d9091ed90d0df307e89e34875a7592e24c2e405453a0b6f6e06 +DIST mpir-2.7.2.tar.bz2 3771429 SHA256 a7d4c33595b4f781a51c92d5d139ec2efb3cf1bf101dfc3eef5b40c54e6f45ec SHA512 8436a0123201f9e30130ea340331c5a6445dddb58ce1f6c6a3a8303c310ac5b3c279c83b5c520a757cba82c2b14e92da44583e0eec287090cf69cbb29d516a9c WHIRLPOOL 8c7804b183282b7d804e91233176ce948a2e5e5c83dcefc4eaf31194a59431af55002a8b6a3405ddb45cac89270066c3c0ae2c4adcaa22329f4af06dbdf10ffb diff --git a/sci-libs/mpir/files/mpir-2.2.0-yasm.patch b/sci-libs/mpir/files/mpir-2.2.0-yasm.patch deleted file mode 100644 index e717891a4e64..000000000000 --- a/sci-libs/mpir/files/mpir-2.2.0-yasm.patch +++ /dev/null @@ -1,54 +0,0 @@ -diff -U 3 -dHrN mpir-2.2.0.orig/configure.in mpir-2.2.0/configure.in ---- mpir-2.2.0.orig/configure.in 2010-12-16 10:16:19.000000000 +0100 -+++ mpir-2.2.0/configure.in 2010-12-16 10:16:53.000000000 +0100 -@@ -1455,8 +1455,6 @@ - ;; - esac - --AM_CONDITIONAL(BUILD_YASM, test "$want_yasm" = "yes") -- - CFLAGS_or_unset=${CFLAGS-'(unset)'} - CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} - -@@ -1848,7 +1846,7 @@ - GMP_CHECK_LIBM_FOR_BUILD - - --MPIR_AS="/yasm/yasm" -+MPIR_AS="yasm" - - # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am. - # Using the compiler is a lot easier than figuring out how to invoke the -@@ -3161,9 +3159,6 @@ - # FIXME: Upcoming version of autoconf/automake don't like broken lines. - # Right now automake isn't accepting the new AC_CONFIG_FILES scheme. - --# allways configure all subdirectorys , even if there are not going to be built , --AC_CONFIG_SUBDIRS([yasm]) -- - case $host in - *-w64-mingw*) - if test $enable_fat = yes; then -diff -U 3 -dHrN mpir-2.2.0.orig/Makefile.am mpir-2.2.0/Makefile.am ---- mpir-2.2.0.orig/Makefile.am 2010-12-16 10:16:21.000000000 +0100 -+++ mpir-2.2.0/Makefile.am 2010-12-16 10:17:19.000000000 +0100 -@@ -95,10 +95,6 @@ - - SUBDIRS = tests - --if BUILD_YASM --SUBDIRS += yasm --endif -- - SUBDIRS += mpn mpz mpq mpf printf scanf cxx tune doc - - EXTRA_DIST = configfsf.guess configfsf.sub .gdbinit INSTALL.autoconf -diff -U 3 -dHrN mpir-2.2.0.orig/mpn/Makeasm.am mpir-2.2.0/mpn/Makeasm.am ---- mpir-2.2.0.orig/mpn/Makeasm.am 2010-12-16 10:16:18.000000000 +0100 -+++ mpir-2.2.0/mpn/Makeasm.am 2010-12-16 10:16:35.000000000 +0100 -@@ -112,4 +112,4 @@ - # .as assembler, assembled with Yasm - - .as.lo: -- $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/strip_fPIC.sh $(top_builddir)$(MPIR_AS) -I $(top_builddir) $(OBJECT_FORMAT) $(GSYM_FLAG) -o $@ `test -f '$<' || echo '$(srcdir)/'`$< -+ $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/strip_fPIC.sh $(MPIR_AS) -I $(top_builddir) $(OBJECT_FORMAT) $(GSYM_FLAG) -o $@ `test -f '$<' || echo '$(srcdir)/'`$< diff --git a/sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch b/sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch new file mode 100644 index 000000000000..f02df55ccf98 --- /dev/null +++ b/sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch @@ -0,0 +1,145 @@ +--- a/configure.ac 2009-11-28 10:48:59.196977657 +0000 ++++ b/configure.ac 2009-11-28 10:54:50.717976971 +0000 +@@ -361,7 +361,7 @@ + # hugely bloat the output. + + +-AC_ARG_VAR(ABI, [desired ABI (for processors supporting more than one ABI)]) ++AC_ARG_VAR(MPIRABI, [desired ABI (for processors supporting more than one ABI)]) + + # abilist needs to be non-empty, "standard" is just a generic name here + abilist="standard" +@@ -1590,7 +1590,7 @@ + + cat >&AC_FD_CC <&AC_FD_CC <> $i <<-EOF + #if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits + #endif + EOF + done + + for i in $(find . -type f -name '*.as') ; do + cat >> $i <<-EOF + %ifidn __OUTPUT_FORMAT__,elf + section .note.GNU-stack noalloc noexec nowrite progbits + %endif + EOF + done + eend + eautoreconf +} + +src_configure() { + # beware that cpudetection aka fat binaries is x86/amd64 only. + # Place mpir in profiles/arch/$arch/package.use.mask + # when making it available on $arch. + myeconfargs+=( + --with-system-yasm + $(use_enable cxx) + $(use_enable cpudetection fat) + ) + econf ${myeconfargs[@]} +} -- 2.26.2