pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/mpfr Hack the pkg to at least build + install on ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/35edbd86e366
branches: trunk
changeset: 367350:35edbd86e366
user: martin <martin%pkgsrc.org@localhost>
date: Wed Aug 30 10:35:54 2017 +0000
description:
Hack the pkg to at least build + install on NetBSD/alpha - may need
revisiting after closer examination of the underlying issues.
diffstat:
math/mpfr/Makefile | 7 ++++++-
math/mpfr/distinfo | 4 +++-
math/mpfr/patches/patch-acinclude.m4 | 16 ++++++++++++++++
math/mpfr/patches/patch-configure | 16 ++++++++++++++++
4 files changed, 41 insertions(+), 2 deletions(-)
diffs (71 lines):
diff -r 8abbc31599b1 -r 35edbd86e366 math/mpfr/Makefile
--- a/math/mpfr/Makefile Wed Aug 30 10:27:33 2017 +0000
+++ b/math/mpfr/Makefile Wed Aug 30 10:35:54 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2016/10/03 12:35:18 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2017/08/30 10:35:54 martin Exp $
DISTNAME= mpfr-3.1.5
CATEGORIES= math
@@ -17,3 +17,8 @@
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+
+.if (${MACHINE_ARCH} == alpha)
+CONFIGURE_ENV+=CFLAGS="${CFLAGS:N-mieee}"
+.endif
+
diff -r 8abbc31599b1 -r 35edbd86e366 math/mpfr/distinfo
--- a/math/mpfr/distinfo Wed Aug 30 10:27:33 2017 +0000
+++ b/math/mpfr/distinfo Wed Aug 30 10:35:54 2017 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.23 2016/10/03 12:35:18 wiz Exp $
+$NetBSD: distinfo,v 1.24 2017/08/30 10:35:54 martin Exp $
SHA1 (mpfr-3.1.5.tar.bz2) = 874e84bb5959fd5a19c032cfb5d673dded4b5cff
RMD160 (mpfr-3.1.5.tar.bz2) = 18a12b1735c8d0a66115cd4c5e3c804dbe465eea
SHA512 (mpfr-3.1.5.tar.bz2) = ebf94f49e1f850db6304eec8bf3cbf592b9fb06b743e0a99a660edae3c086aa47cdd089ea958fd4631ff02a444ec034b5e45d7e9701704d74c2e2d49021e49a7
Size (mpfr-3.1.5.tar.bz2) = 1279489 bytes
+SHA1 (patch-acinclude.m4) = 62cdd6710683d2a1ab202d0122cf023bb84ade04
+SHA1 (patch-configure) = 77375ad75693f4f9665bc23687782631318481ec
diff -r 8abbc31599b1 -r 35edbd86e366 math/mpfr/patches/patch-acinclude.m4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mpfr/patches/patch-acinclude.m4 Wed Aug 30 10:35:54 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-acinclude.m4,v 1.1 2017/08/30 10:35:54 martin Exp $
+
+Remove alpha specific -miee* options currently not working on NetBSD (needs
+further investigation)
+
+--- acinclude.m4.orig 2016-09-27 09:58:14.000000000 +0200
++++ acinclude.m4 2017-08-30 12:23:59.333559123 +0200
+@@ -102,7 +102,7 @@
+ saved_CFLAGS="$CFLAGS"
+ AC_CACHE_CHECK([for IEEE-754 switches], mpfr_cv_ieee_switches, [
+ if test -n "$GCC"; then
+- mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
++ mpfr_cv_ieee_switches=""
+ else
+ mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
+ fi
diff -r 8abbc31599b1 -r 35edbd86e366 math/mpfr/patches/patch-configure
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/mpfr/patches/patch-configure Wed Aug 30 10:35:54 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure,v 1.1 2017/08/30 10:35:54 martin Exp $
+
+Remove alpha specific -miee* options currently not working on NetBSD (needs
+further investigation)
+
+--- configure.orig 2016-09-27 09:58:43.000000000 +0200
++++ configure 2017-08-30 12:24:27.235843640 +0200
+@@ -6337,7 +6337,7 @@
+ else
+
+ if test -n "$GCC"; then
+- mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
++ mpfr_cv_ieee_switches=""
+ else
+ mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
+ fi
Home |
Main Index |
Thread Index |
Old Index