ports/76193: [ports math]pari update

Yoshiaki Uchikawa yoshiaki at kt.rim.or.jp
Thu Jan 13 12:50:22 UTC 2005


>Number:         76193
>Category:       ports
>Synopsis:       [ports math]pari update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 13 12:50:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Yoshiaki Uchikawa
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD singer.tertio.atoll 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sun Jan 9 21:21:19 JST 2005 yoshiaki at singer.tertio.atoll:/usr/src/sys/i386/compile/CRUSE i386
	
>Description:
	ports math: pari
	version 2.1.5 -> 2.1.6
	& It was not work on 5.3R. (compiled by gcc 3.4, core dumped)
	
	
>How-To-Repeat:
	
>Fix:

diff -ruN pari.orig/Makefile pari/Makefile
--- pari.orig/Makefile	Tue Oct  5 08:27:44 2004
+++ pari/Makefile	Sun Jan  9 19:05:50 2005
@@ -6,15 +6,14 @@
 #
 
 PORTNAME=	pari
-PORTVERSION=	2.1.5
-PORTREVISION=	1
+PORTVERSION=	2.1.6
 CATEGORIES=	math
-MASTER_SITES=	ftp://www.gn-50uma.de/gn/gn-50uma.de/pari-2.1/ \
-		http://www.gn-50uma.de/ftp/pari-2.1/
+MASTER_SITES= http://pari.math.u-bordeaux.fr/pub/pari/unix/
 
 MAINTAINER=	yoshiaki at kt.rim.or.jp
 COMMENT=	Mathmatics library and advanced calculator package
 
+EXTRACT_SUFX=   .tgz
 INSTALLS_SHLIB=	yes
 HAS_CONFIGURE=	yes
 CONFIGURE_SCRIPT=	Configure
@@ -38,7 +37,7 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} >= 502126
-EXTRA_PATCHES=	${FILESDIR}/hack-src:headers::paricom.h
+USE_GCC=    3.2
 .endif
 
 .if ${ARCH} == "amd64"
diff -ruN pari.orig/distinfo pari/distinfo
--- pari.orig/distinfo	Wed Mar 31 12:09:33 2004
+++ pari/distinfo	Sun Jan  9 17:28:49 2005
@@ -1,2 +1,2 @@
-MD5 (pari-2.1.5.tar.gz) = 194e9d1cc11926e457028c6a7cba15f0
-SIZE (pari-2.1.5.tar.gz) = 1540679
+MD5 (pari-2.1.6.tgz) = 506a061c8dcdec33d18876f3c551e951
+SIZE (pari-2.1.6.tgz) = 1541464
diff -ruN pari.orig/files/hack-src:headers::paricom.h pari/files/hack-src:headers::paricom.h
--- pari.orig/files/hack-src:headers::paricom.h	Tue Oct  5 08:27:44 2004
+++ pari/files/hack-src:headers::paricom.h	Thu Jan  1 09:00:00 1970
@@ -1,20 +0,0 @@
---- src/headers/paricom.h.orig	Fri Nov  3 13:00:24 2000
-+++ src/headers/paricom.h	Wed Sep 29 20:22:41 2004
-@@ -86,3 +86,2 @@
- 
--#ifdef NOEXP2
- #  ifdef __cplusplus
-@@ -92,12 +91,4 @@
- #    define exp2(x) (exp((double)(x)*LOG2))
--#    ifndef __CYGWIN32__
--#      define log2(x) (log((double)(x))/LOG2)
--#    endif
-+#    define log2(x) (log((double)(x))/LOG2)
- #  endif
--#else
--  BEGINEXTERN
--    double exp2(double);
--    double log2(double);
--  ENDEXTERN
--#endif
- 
diff -ruN pari.orig/files/patch-Configure pari/files/patch-Configure
--- pari.orig/files/patch-Configure	Wed May 22 17:59:26 2002
+++ pari/files/patch-Configure	Sun Jan  9 18:54:18 2005
@@ -1,14 +1,14 @@
---- Configure	2002/05/22 08:28:37	1.1
-+++ Configure	2002/05/22 08:30:16
-@@ -1005,7 +1005,10 @@
+--- Configure.orig	Fri Nov 26 00:58:25 2004
++++ Configure	Sun Jan  9 18:53:28 2005
+@@ -1006,7 +1006,10 @@
  #    aix-*)  DLSUFFIX=a  ;; dynamic linking does not work!
      sunos-*) sodest=$VersionMajor$VersionMinor.$patch
               soname=$sodest;;
--    *-alpha|solaris-*|linux-*|freebsd-*)
+-    gnu-*|*-alpha|solaris-*|linux-*|freebsd-*)
 +    freebsd-*)
-+	sodest=1
-+	soname=$sodest;;
-+    *-alpha|solaris-*|linux-*)
++      sodest=1
++      soname=$sodest;;
++    gnu-*|*-alpha|solaris-*|linux-*)
        case $libpari_base in
          pari) sodest=$version.$patch;; # released versions
          *) sodest=$patch.0.0;; # unstable versions
diff -ruN pari.orig/files/patch-ah pari/files/patch-ah
--- pari.orig/files/patch-ah	Thu Jan  1 09:00:00 1970
+++ pari/files/patch-ah	Sun Jan  9 18:24:19 2005
@@ -0,0 +1,20 @@
+diff -urN files_orig/patch-has_exp2.c files/patch-has_exp2.c
+--- files_orig/patch-has_exp2.c	Wed Dec 31 18:00:00 1969
++++ files/patch-has_exp2.c	Thu Sep 16 14:30:23 2004
+@@ -0,0 +1,6 @@
++--- config/has_exp2.c_orig	Thu Sep 16 08:46:59 1999
+++++ config/has_exp2.c	Thu Sep 16 14:27:18 2004
++@@ -1,2 +1,2 @@
++ #include <math.h>
++-main(){double x=exp2(1.0);}
+++main(){double x=exp2(0.666);}
+diff -urN files_orig/patch-has_log2.c files/patch-has_log2.c
+--- files_orig/patch-has_log2.c	Wed Dec 31 18:00:00 1969
++++ files/patch-has_log2.c	Thu Sep 16 14:30:50 2004
+@@ -0,0 +1,6 @@
++--- config/has_log2.c_orig	Wed Jan  8 18:16:55 2003
+++++ config/has_log2.c	Thu Sep 16 14:27:07 2004
++@@ -1,2 +1,2 @@
++ #include <math.h>
++-main(){double x=log2(1.0);}
+++main(){double x=log2(0.666);}


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



More information about the freebsd-ports-bugs mailing list