From skv@FreeBSD.org  Fri Sep 15 09:58:13 2006
Return-Path: <skv@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7D43016A412
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 15 Sep 2006 09:58:13 +0000 (UTC)
	(envelope-from skv@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E2F2643D46
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 15 Sep 2006 09:58:12 +0000 (GMT)
	(envelope-from skv@FreeBSD.org)
Received: from freefall.freebsd.org (skv@localhost [127.0.0.1])
	by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8F9wCjO043354
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 15 Sep 2006 09:58:12 GMT
	(envelope-from skv@freefall.freebsd.org)
Received: (from skv@localhost)
	by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8F9wCGf043353;
	Fri, 15 Sep 2006 09:58:12 GMT
	(envelope-from skv)
Message-Id: <200609150958.k8F9wCGf043353@freefall.freebsd.org>
Date: Fri, 15 Sep 2006 09:58:12 GMT
From: skv@freebsd.org
Reply-To: skv@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Unbreak & update port math/p5-Math-Pari
X-Send-Pr-Version: 3.2

>Number:         103297
>Category:       ports
>Synopsis:       Unbreak & update port math/p5-Math-Pari
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mharo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 15 10:00:34 GMT 2006
>Closed-Date:    Tue Nov 21 17:36:24 GMT 2006
>Last-Modified:  Tue Nov 21 17:36:24 GMT 2006
>Originator:     Sergey Skvortsov
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
<Organization of PR author (multiple lines)>
>Environment:

	<Relevant environment information (multiple lines)>

>Description:

Update port math/p5-Math-Pari to 2.010706

p.s. If you have no plans to maintaint this port
(it was last updated 2003/08/21) then feel free to pass maintainership
to me or to perl@

>How-To-Repeat:

	<Code/input/activities to reproduce the problem (multiple lines)>

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-Pari/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	2 Sep 2006 16:51:04 -0000	1.8
+++ Makefile	15 Sep 2006 09:50:20 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	Math-Pari
-PORTVERSION=	2.010500
+PORTVERSION=	2.010706
 CATEGORIES=	math perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	Math
@@ -15,28 +15,21 @@
 MAINTAINER=	mharo@FreeBSD.org
 COMMENT=	PARI - numerical/scientific/number-theoretic calculations
 
-BROKEN=		fails to install
-DEPRECATED=	${BROKEN}
-EXPIRATION_DATE=2006-12-01
-
 BUILD_DEPENDS=	pari:${PORTSDIR}/math/pari:configure
+LIB_DEPENDS=	pari:${PORTSDIR}/math/pari
 
-USE_GMAKE=	yes
 USE_GCC=	3.2+
 PERL_CONFIGURE=	yes
 
-MAN3=		Math::Pari.3 Math::libPARI.3 \
-		Math::PariInit.3 Math::libPARI.dumb.3
-
-.include <bsd.port.pre.mk>
+CONFIGURE_ARGS=	parilib="-L${LOCALBASE}/lib -lpari" \
+		paridir=`${MAKE} -C ${PORTSDIR}/math/pari -V WRKSRC`
 
-PARI_PORT?=	math/pari
-PARI_PORTDIR?=	${PORTSDIR}/${PARI_PORT}
-PARI_WRKSRC!=	cd ${PARI_PORTDIR} && ${MAKE} -V WRKSRC
+MAN3=		Math::Pari.3 Math::libPARI.3 Math::PariInit.3
 
-CONFIGURE_ARGS=	paridir=${PARI_WRKSRC}
+post-patch:
+	${REINPLACE_CMD} -e 's/2001004/200300/' ${WRKSRC}/Makefile.PL
 
 post-clean:
-	@cd ${PARI_PORTDIR} && ${MAKE} -DBATCH clean
+	${MAKE} -C ${PORTSDIR}/math/pari -DBATCH clean
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-Pari/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	22 Jan 2006 12:56:37 -0000	1.5
+++ distinfo	15 Sep 2006 08:11:48 -0000
@@ -1,3 +1,3 @@
-MD5 (Math-Pari-2.010500.tar.gz) = 6ae5d0b044984a4fdc7817e79922419e
-SHA256 (Math-Pari-2.010500.tar.gz) = eea5b9918b4861274d48457b360310737755415f3200e080511ff19a57598676
-SIZE (Math-Pari-2.010500.tar.gz) = 91295
+MD5 (Math-Pari-2.010706.tar.gz) = 5ed1fb49f246288a9899fa6ad1b7753c
+SHA256 (Math-Pari-2.010706.tar.gz) = ba546277afcbb072a11e7dbe74f44bd233d86ee310ef43fa945ac20dfc79ea02
+SIZE (Math-Pari-2.010706.tar.gz) = 111692
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-Pari/pkg-plist,v
retrieving revision 1.3
diff -u -r1.3 pkg-plist
--- pkg-plist	22 Jan 2006 02:26:19 -0000	1.3
+++ pkg-plist	15 Sep 2006 09:47:31 -0000
@@ -1,6 +1,5 @@
 %%SITE_PERL%%/%%PERL_ARCH%%/Math/Pari.pm
 %%SITE_PERL%%/%%PERL_ARCH%%/Math/PariInit.pm
-%%SITE_PERL%%/%%PERL_ARCH%%/Math/libPARI.dumb.pod
 %%SITE_PERL%%/%%PERL_ARCH%%/Math/libPARI.pod
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Pari/.packlist
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Pari/Pari.bs
Index: files/patch-Makefile.PL
===================================================================
RCS file: files/patch-Makefile.PL
diff -N files/patch-Makefile.PL
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-Makefile.PL	15 Sep 2006 09:48:13 -0000
@@ -0,0 +1,31 @@
+--- Makefile.PL.orig	Wed May 31 12:39:28 2006
++++ Makefile.PL	Fri Sep 15 13:45:27 2006
+@@ -44,7 +44,7 @@
+ EOP
+ 
+ if ($common::parilib) {
+-  $pari_version = '2001004';	# XXXX How to get a correct one?
++  $pari_version = '2003000';	# XXXX How to get a correct one?
+   $define = '-DNO_HIGHLEVEL_PARI';
+   print <<EOP;
+ Trying to use existing PARI library (at $common::parilib)
+@@ -91,9 +91,9 @@
+ }
+ 
+ my %opts;
++  make_pod 'libPARI.pod', '-to_pod', $paridir; # Now the docs
+ unless ($common::parilib) {
+   build_tests $paridir;		# Convert the test suite
+-  make_pod 'libPARI.pod', '-to_pod', $paridir; # Now the docs
+   make_pod 'libPARI.dumb.pod', '-to_dumb_pod', $paridir;
+   %opts = build_paricfg($paridir, $common::do_configure); # ... and paricfg.h
+ 
+@@ -139,7 +139,7 @@
+ # the contents of the Makefile being created.
+ &WriteMakefile(
+ 	       LIBS	     =>  $libs,
+-	       INC	     => $extra_inc . ' -I$(PARI_DIR)/src/headers -I$(PARI_DIR)/src -I./libPARI',
++	       INC	     => '-I$(PREFIX)/include/pari -I$(PARI_DIR)/src',
+ 	       NAME	     => 'Math::Pari',
+ 	       ($common::parilib ? () :
+ 		 (MYEXTLIB   =>  'libPARI/libPARI$(LIB_EXT)')),
Index: files/patch-makefile
===================================================================
RCS file: files/patch-makefile
diff -N files/patch-makefile
--- files/patch-makefile	26 Aug 2003 05:30:07 -0000	1.4
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
---- libPARI/Makefile.PL.orig	Thu Apr 24 05:23:32 2003
-+++ libPARI/Makefile.PL	Thu Aug 21 14:51:06 2003
-@@ -137,11 +137,13 @@
-   $mycflags .= " -DASMINLINE";
- }
--$mycflags .= ' -DGCC_INLINE' if $Config{gccversion};
-+$mycflags .= ' -O -DGCC_INLINE' if $Config{gccversion};
-+$mycflags .= " $ENV{CFLAGS} " if $ENV{CFLAGS};
- 
- @obj_files = map { "$_\$(OBJ_EXT)" } keys(%cfiles), qw(kernel mp mpinl);
- push @obj_files, 'kernel2$(OBJ_EXT)' if $kernel{converted2};
- 
- $mycflags .= " -DDYNAMIC_PLOTTING";
-+$mycflags .= " -DDL_DFLT_NAME=\\\"libpari.2.1.3\\\"";
- # OMF build needs no underscores:
- $mycflags .= " -D__NO_AOUT" if $^O eq 'os2' and !$OS2::is_aout;
- 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mharo 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Sep 15 10:00:45 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103297 

From: Jonathan McKeown <jonathan@hst.org.za>
To: bug-followup@freebsd.org, skv@freebsd.org
Cc:  
Subject: Re: ports/103297: Unbreak & update port math/p5-Math-Pari
Date: Fri, 15 Sep 2006 15:35:45 +0200

 Before seeing this I successfully installed Math::Pari 2.010706 from CPAN, by 
 allowing it to fetch a version of PARI it liked (2.1.7) instead of installing 
 the port math/pari which is 2.3.0.
 
 However, I also had to apply the following patch to Pari.xs in the Math::Pari 
 source tree:
 
 --- Pari.xs     Wed May 31 13:25:06 2006
 +++ .cpan/build/Math-Pari-2.010706/Pari.xs      Fri Sep 15 15:03:40 2006
 @@ -658,13 +658,12 @@
  }
 
  #ifdef LONG_SHORTER_THAN_IV
 -#  error "LONG_SHORTER_THAN_IV not implemented"
  GEN
  my_UVtoi(UV uv)
  {
    long oldavma = avma;
    GEN a = my_ulongtoi((ulong)(uv>>(8*sizeof(ulong))));
 -  GEN b = my_ulongtoi((ulong)(uv & ((((UV)1)<<(8*sizeof(ulong))) - 1));
 +  GEN b = my_ulongtoi((ulong)(uv & ((((UV)1)<<(8*sizeof(ulong))) - 1)));
 
    a = gshift(a, (8*sizeof(ulong)));
    return gerepileupto(oldavma, gadd(a,b));
 
 Removing the # error at line 661 doesn't cause the module to fail its test 
 suite....
 
 Jonathan

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/103297: commit references a PR
Date: Fri, 10 Nov 2006 16:32:18 +0000 (UTC)

 skv         2006-11-10 16:32:07 UTC
 
   FreeBSD ports repository
 
   Modified files:
     math/p5-Math-Pari    Makefile distinfo pkg-plist 
   Added files:
     math/p5-Math-Pari/files patch-Makefile.PL 
   Removed files:
     math/p5-Math-Pari/files patch-makefile 
   Log:
   * update to 2.010709, use dynamic library instead of static [1]
   * take ownership (inactive maintainer)
   
   PR:             ports/103297 [1]
   Submitted by:   skv
   Approved by:    portmgr (krion) [2]
   
   Revision  Changes    Path
   1.9       +10 -17    ports/math/p5-Math-Pari/Makefile
   1.6       +3 -3      ports/math/p5-Math-Pari/distinfo
   1.1       +22 -0     ports/math/p5-Math-Pari/files/patch-Makefile.PL (new)
   1.5       +0 -17     ports/math/p5-Math-Pari/files/patch-makefile (dead)
   1.4       +0 -1      ports/math/p5-Math-Pari/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: skv 
State-Changed-When: Tue Nov 21 17:36:18 UTC 2006 
State-Changed-Why:  
Committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103297 
>Unformatted:
