svn commit: r427058 - in head/math/octave-forge-interval: . files

Stephen Montgomery-Smith stephen at FreeBSD.org
Thu Nov 24 18:28:26 UTC 2016


Author: stephen
Date: Thu Nov 24 18:28:24 2016
New Revision: 427058
URL: https://svnweb.freebsd.org/changeset/ports/427058

Log:
  - Patch in hope that mpfr_to_string_d.cc will build properly on FreeBSD <= 9.
  - Bump port revision (because binaries will also differ on other builds.)
  
  Reported by:	http://beefy2.nyi.freebsd.org/data/93amd64-default/426986/logs/octave-forge-interval-2.0.0.log

Added:
  head/math/octave-forge-interval/files/
  head/math/octave-forge-interval/files/patch-mpfr__to__string__d.cc   (contents, props changed)
Modified:
  head/math/octave-forge-interval/Makefile

Modified: head/math/octave-forge-interval/Makefile
==============================================================================
--- head/math/octave-forge-interval/Makefile	Thu Nov 24 17:43:44 2016	(r427057)
+++ head/math/octave-forge-interval/Makefile	Thu Nov 24 18:28:24 2016	(r427058)
@@ -3,6 +3,7 @@
 
 PORTNAME=	octave-forge-interval
 PORTVERSION=	2.0.0
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	stephen at FreeBSD.org

Added: head/math/octave-forge-interval/files/patch-mpfr__to__string__d.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/octave-forge-interval/files/patch-mpfr__to__string__d.cc	Thu Nov 24 18:28:24 2016	(r427058)
@@ -0,0 +1,15 @@
+--- mpfr_to_string_d.cc.orig	2016-11-24 18:19:39 UTC
++++ mpfr_to_string_d.cc
+@@ -201,10 +201,10 @@ DEFUN_DLD (mpfr_to_string_d, args, nargo
+               // Make subnormal numbers use the exponent -1022
+               if (exponent < std::numeric_limits <double>::min_exponent)
+                 {
+-                  mantissa /= std::pow (2.0, 
++                  mantissa /= std::pow (2.0, (int)(
+                                         std::numeric_limits
+                                           <double>::min_exponent - 1
+-                                        - exponent);
++                                        - exponent));
+                   exponent = std::numeric_limits <double>::min_exponent - 1;
+                 }
+             


More information about the svn-ports-all mailing list