Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2006 00:07:14 +0400 (MSD)
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/100633: [MAINTAINER PATCH] cad/jspice3: fix build on systems with pre-c99 compilers
Message-ID:  <20060720200714.B4CD7128E9@fonon.realnet>
Resent-Message-ID: <200607202010.k6KKAHiB035174@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100633
>Category:       ports
>Synopsis:       [MAINTAINER PATCH] cad/jspice3: fix build on systems with pre-c99 compilers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 20 20:10:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Jun 18 20:51:36 MSD 2006
>Description:
- Fix build with pre-c99 compilers.

Added file(s):
- files/patch-src+lib+dev+ltra+ltramisc.c

>How-To-Repeat:
>Fix:

--- jspice3-2.5_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/cad/jspice3/Makefile /var/tmp/work4/jspice3/Makefile
--- /usr/ports/cad/jspice3/Makefile	Thu Jul 20 23:50:40 2006
+++ /var/tmp/work4/jspice3/Makefile	Fri Jul 21 00:06:13 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	jspice3
 PORTVERSION=	2.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	cad
 MASTER_SITES=	http://www.wrcad.com/ftp/pub/	\
 		ftp://ftp.srware.com/pub/
diff -ruN --exclude=CVS /usr/ports/cad/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c /var/tmp/work4/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c
--- /usr/ports/cad/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c	Thu Jan  1 03:00:00 1970
+++ /var/tmp/work4/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c	Thu Jul 20 23:59:47 2006
@@ -0,0 +1,31 @@
+--- src/lib/dev/ltra/ltramisc.c.orig	Wed Jan  5 03:25:41 2005
++++ src/lib/dev/ltra/ltramisc.c	Thu Jul 20 23:59:44 2006
+@@ -965,10 +965,12 @@
+     double ax = fabs(x);
+     if (ax < 3.75) {
+         double y = x/3.75;
++        double ans1;
++        double ans2;
+         y *= y;
+-        double ans1 = 1.0+y*(3.5156229+y*(3.0899424+y*(1.2067492
++        ans1 = 1.0+y*(3.5156229+y*(3.0899424+y*(1.2067492
+             +y*(0.2659732+y*(0.360768e-1+y*0.45813e-2)))));
+-        double ans2 = ax*(0.5+y*(0.87890594+y*(0.51498869+y*(0.15084934
++        ans2 = ax*(0.5+y*(0.87890594+y*(0.51498869+y*(0.15084934
+             +y*(0.2658733e-1+y*(0.301532e-2+y*0.32411e-3))))));
+         if (x > 0)
+             ans1 += ans2;
+@@ -978,11 +980,12 @@
+     }       
+     else {
+         double y = 3.75/ax;
++        double ans2;
+         double ans1 = (0.39894228+y*(0.1328592e-1
+             +y*(0.225319e-2+y*(-0.157565e-2+y*(0.916281e-2
+             +y*(-0.2057706e-1+y*(0.2635537e-1+y*(-0.1647633e-1
+             +y*0.392377e-2))))))));
+-        double ans2 = 0.2282967e-1+y*(-0.2895312e-1+y*(0.1787654e-1
++        ans2 = 0.2282967e-1+y*(-0.2895312e-1+y*(0.1787654e-1
+             -y*0.420059e-2));
+         ans2 = 0.39894228+y*(-0.3988024e-1+y*(-0.362018e-2
+             +y*(0.163801e-2+y*(-0.1031555e-1+y*ans2))));
--- jspice3-2.5_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060720200714.B4CD7128E9>