summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2010-02-06 10:52:37 +0000
committersno <sno@pkgsrc.org>2010-02-06 10:52:37 +0000
commite31bcc15e8c321e38aa1dc4c462ebd673d25def2 (patch)
tree8db20b8639e1b6292c6d3d560b384ec3131d24a7 /math
parent0667ea52034f94a018bfe5a85bf0740a2ac4691c (diff)
downloadpkgsrc-e31bcc15e8c321e38aa1dc4c462ebd673d25def2.tar.gz
Updating math/p5-Math-Pari from 2.010801nb2 to 2.010806.03
pkgsrc changes: - Avoid private compile of pari-library, use pkgsrc provided instead - Add license definition - Disabled support for plotting from perl (missing upstream support) Upstream changes: 2.01080601+ Add 5.005-new keywords to Makefile.PL. Consistently put space after -I in C include paths (needed???). Nicer output when debugging faulty LWP and Net::FTP. Make test engine look in */32/* directory too on 64-bit builds. Remove POD ornaments to make ABSTRACT_FROM work. 2.01080601++ Reword warning about slow intnum: only 75% longer than on PARI/GP. (overhead of the internal sub call in subtest 30 looks like 10x overhead of an empty subroutine call). New advice that upgrade to 2.3.* may fix `overflow' and `highremainder'. Exchange order of initialization of PARI and of `functions_highlevel' with >= 2.3.0; allows installation of highlevel functions (in particular, install() and PostScript printing). New function have_graphics() (not exported). The test engine takes into account have_graphics(). 2.01080602 If AUTOMATED_TESTING, delete (bogus?) environment variable DISPLAY. If AUTOMATED_TESTING, report results of failing tests on STDERR. Make test suite report rough run times for successful subtests. 2.01080603 Fix misprint and change die() to warn() on failure of $ftp->quit... Add some void's in Pari.xs. UNDONE (wrong): Protect init_graph() by NO_GRAPHICS_PARI (in restart code); include rect.h instead... sv2pari(),sv2parimat(): a stupid compiler might guess we don't return value... when patching, use && instead of ; in the shell command New function Math::PariBuild::patch_args() Math::PariBuild::patch_pari() supports option --binary, \ as directory separator in command processor. Make uname parser recognize i686-pc as ix86. Generator of function descriptors could try to regenerate existing file. nok_print() in Testout.pm was defined too late.
Diffstat (limited to 'math')
-rw-r--r--math/p5-Math-Pari/Makefile34
-rw-r--r--math/p5-Math-Pari/distinfo18
-rw-r--r--math/p5-Math-Pari/patches/patch-aa259
-rw-r--r--math/p5-Math-Pari/patches/patch-ab59
-rw-r--r--math/p5-Math-Pari/patches/patch-ac13
-rw-r--r--math/p5-Math-Pari/patches/patch-ad16
-rw-r--r--math/p5-Math-Pari/patches/patch-ae13
7 files changed, 293 insertions, 119 deletions
diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile
index f1968459afd..4321062627a 100644
--- a/math/p5-Math-Pari/Makefile
+++ b/math/p5-Math-Pari/Makefile
@@ -1,32 +1,42 @@
-# $NetBSD: Makefile,v 1.35 2009/08/16 13:33:07 he Exp $
+# $NetBSD: Makefile,v 1.36 2010/02/06 10:52:37 sno Exp $
#
-DISTNAME= Math-Pari-2.010801
-PKGREVISION= 2
-PKGNAME= p5-${DISTNAME}
+DISTNAME= Math-Pari-2.01080603
+PKGNAME= p5-${DISTNAME:S/01080603/010806.03/}
+#PKGREVISION= 2
SVR4_PKGNAME= p5mpa
-CATEGORIES= math perl5
+CATEGORIES+= perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/}
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
- pari-2.1.6.tgz
+#DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${PARI_DISTNAME}${PARI_SUFX}
-#SITES.pari-2.1.6.tgz= http://pari.math.u-bordeaux.fr/pub/pari/unix/
+#SITES.${PARI_DISTNAME}${PARI_SUFX}= ${PARI_SITES}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://search.cpan.org/dist/Math-Pari/
COMMENT= Perl5 interface to the pari math library
+LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
-
-USE_TOOLS+= perl
+#MAKE_PARAMS+= paridir=${WRKDIR}/${PARI_DISTNAME}
# XXX: to use or not to use...
#DEPENDS+= gnuplot-[0-9]*:../../graphics/gnuplot
-GCC_REQD+= 2.95
-MAKE_ENV+= MP_NOGNUPLOT=1
+#GCC_REQD+= 2.95
+#MAKE_ENV+= MP_NOGNUPLOT=1
+MAKE_PARAMS+= pariprefix=${PREFIX:Q}
PERL5_PACKLIST= auto/Math/Pari/.packlist
+post-extract:
+ ${RM} ${WRKSRC}/libPARI/Makefile.PL
+
+.include "../../math/pari/buildlink3.mk"
+MAKE_PARAMS+= libpari=${PARI_LIB}
+.if !empty(PKG_BUILD_OPTIONS.pari:Mgmp)
+MAKE_PARAMS+= addlibs="-lgmp"
+.endif
+
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/p5-Math-Pari/distinfo b/math/p5-Math-Pari/distinfo
index ff8f798b66f..9ad317ea394 100644
--- a/math/p5-Math-Pari/distinfo
+++ b/math/p5-Math-Pari/distinfo
@@ -1,13 +1,7 @@
-$NetBSD: distinfo,v 1.15 2009/09/16 02:32:00 schmonz Exp $
+$NetBSD: distinfo,v 1.16 2010/02/06 10:52:37 sno Exp $
-SHA1 (Math-Pari-2.010801.tar.gz) = 9becc6cbbb80983408de7b3f33e7f19a8015cc34
-RMD160 (Math-Pari-2.010801.tar.gz) = 72af931cd38b3d2e7bb158bbbe6221292dfe07e1
-Size (Math-Pari-2.010801.tar.gz) = 115860 bytes
-SHA1 (pari-2.1.6.tgz) = 54bd40fa70a02e76d78d0ea19c0f56f7da62de8e
-RMD160 (pari-2.1.6.tgz) = 6b79e84b639d1862df148b253136deacd73bf4f0
-Size (pari-2.1.6.tgz) = 1541464 bytes
-SHA1 (patch-aa) = 0260c0c980ccb11bcad7c744a37de990ffcb70cd
-SHA1 (patch-ab) = 2a8fa083962782dd498a72fbd7901636592bfc1b
-SHA1 (patch-ac) = 92e72613058ffa248f2428dea5de368a39186040
-SHA1 (patch-ad) = 6e7ff863f35d9c4c877c180a22935fb9852939b9
-SHA1 (patch-ae) = 2bd3bc8841fb646a478be10f4014bba2442500cb
+SHA1 (Math-Pari-2.01080603.tar.gz) = f8d8a85428886cd682c7672740421d6803dea0fa
+RMD160 (Math-Pari-2.01080603.tar.gz) = 93641a51a2dd1a2f0d9af691da28e7579511bb3b
+Size (Math-Pari-2.01080603.tar.gz) = 121370 bytes
+SHA1 (patch-aa) = c1b4540c29699d99f8f21fcda84a790c1b84bc95
+SHA1 (patch-ab) = b1e66e636eb823b45dd0c53ab0fa0bdf6472cfff
diff --git a/math/p5-Math-Pari/patches/patch-aa b/math/p5-Math-Pari/patches/patch-aa
index 09cf386239a..a09e32bfb01 100644
--- a/math/p5-Math-Pari/patches/patch-aa
+++ b/math/p5-Math-Pari/patches/patch-aa
@@ -1,17 +1,250 @@
-$NetBSD: patch-aa,v 1.3 2009/03/05 23:12:51 seb Exp $
+$NetBSD: patch-aa,v 1.4 2010/02/06 10:52:37 sno Exp $
-Darwin runtime linking fix
-
---- ../pari-2.1.6/src/kernel/none/level0.h.orig 2000-11-03 22:00:26.000000000 +0100
-+++ ../pari-2.1.6/src/kernel/none/level0.h
-@@ -50,8 +50,8 @@ ENDEXTERN
+--- Makefile.PL.orig 2009-12-11 01:28:42.000000000 +0000
++++ Makefile.PL
+@@ -2,9 +2,6 @@
+ use ExtUtils::MakeMaker;
+ use Config '%Config';
+
+-BEGIN {unshift @INC, 'utils'}
+-use Math::PariBuild;
+-
+ # Uncomment and change this line if I fail to find it
+ # $paridir = "..";
+
+@@ -16,208 +13,54 @@ unless (-t STDOUT) { # Better reports i
+ select $odef;
+ }
+
+-my $ok23 = 0;
+-grep {/^machine=(.*)$/i and $common::machine = $1} @ARGV;
+-grep {/^configure$/i and $common::do_configure = 1} @ARGV;
+-grep {/^paridir=(.*?)[\/\\]?$/i and $paridir = $1} @ARGV;
+-grep {/^pari_tgz=(.*?)[\/\\]?$/i and $parisrc = $1} @ARGV;
+-grep {/^force_download$/i and $force_download = 1} @ARGV;
+-grep {/^parilib=(.*)$/i and $common::parilib = $1} @ARGV;
+-grep {/^version23_ok=(.*)$/i and $ok23 = $1} @ARGV;
+-
+-# The REx should anchored-match versions to skip
+-$common::skip_versions = $ok23 ? '(?!)' : '2\.(?:[3-9]|\d\d+)\.';
+-
+-@ARGV = grep !/^((machine|paridir|pari_tgz|parilib|version23_ok)=.*|configure|force_download)$/i, @ARGV;
+-
+-$paridir = find_pari_dir() unless defined $paridir or $parisrc or $force_download;
+-($paridir, my @patch_rc) = download_and_patch_pari($parisrc, $force_download)
+- if !$paridir or $force_download;
+-my %patchrc = (patchrc => $patch_rc[0]) if @patch_rc;
+-
+-die <<EOD unless $paridir;
+-Could not find GP/PARI build directory, please run Makefile.PL
+-with paridir=/directory option.
+-EOD
+-
+-my $gcc_version
+- = defined($Config{gccversion}) ? ", gccversion=$Config{gccversion}" : "";
+-print <<EOP;
+-Setting up Math::Pari with Perl $] on $^O version $Config{osvers};
+- cc=$Config{cc}$gcc_version, cccdlflags='$Config{cccdlflags}',
+- ccflags='$Config{ccflags}',
+- optimize='$Config{optimize}',
+- ld=$Config{ld}, ldflags='$Config{ldflags}'.
+-EOP
+-
+-if ($common::parilib) {
+- $pari_version = '2001004'; # XXXX How to get a correct one?
+- $define = '-DNO_HIGHLEVEL_PARI';
+- print <<EOP;
+-Trying to use existing PARI library (at $common::parilib)
+- (FAKE integer-formatted version $pari_version).
+-EOP
+-} else {
+- $define = '';
+- $pari_version = pari_formatted_version($paridir);
+- print <<EOP;
+-Found GP/PARI build directory in $paridir
+- (integer-formatted version $pari_version).
+-EOP
+- print <<EOP if $pari_version =~ /^2003/;
+-
+- ### Math::Pari support of GP/PARI library version 2.3.* is not fully
+- ### finished. For non-PS plotting functions, one must downgrade to 2.1.7.
+-
+- ### Moreover, the test t/55_intnum.t takes significant time to complete.
+-
+-EOP
+- print <<EOP if $pari_version =~ /^2001/;
+-
+- ### GP/PARI library version 2.1.* has many problems fixed in versions 2.3.*.
+-
+- ### Especially important are the problems with symbols `hiremainder' and
+- ### `overflow' - if your build fails and error messages contain these
+- ### words, updating to 2.3.* might allow your use of fast processor-specific
+- ### assembler code.)
+-
+- ### However, keep in mind: v.2.3.* supports only plotting to PostScript.
+-
+-EOP
+- $common::pari_version = $pari_version;
+- $common::main_paridir = $paridir;
+- *MY::postamble = \&xMY::postamble;
+-}
++my $pariprefix;
++my $addlibs;
++my $libpari = "pari";
+
+-$os = $Config{osname};
++grep {/^pariprefix=(.*)$/i and $pariprefix = $1} @ARGV;
++grep {/^addlibs=(.*)$/i and $addlibs = $1} @ARGV;
++grep {/^libpari=(.*)$/i and $libpari = $1} @ARGV;
+
+-$define .= " -DPARI_VERSION_EXP=$pari_version -DDEBUG_PARI";
+-$define .= " -DUSE_SLOW_ARRAY_ACCESS -DUSE_SLOW_NARGS_ACCESS" if $] >= 5.009;
+-$libs = "-lm";
+-$libs .= " $common::parilib" if $common::parilib;
+-$noexp2 = ''; # Should be used for generation of paricfg.h
+-
+-if ($os eq "solaris") {
+- # Some older versions needed -lsunmath to import exp2(). This is
+- # probably not needed anymore (though can speed things up).
+-
+- # Below -R specifies the path to search for this file when the
+- # program will run, -L the path to search when the program is linked
+-# @sc_dirs = '/opt/SUNWspro/lib' if -d '/opt/SUNWspro/lib';
+-# @sc_dirs = </opt/SUNWspro/SC*/lib> unless @sc_dirs;
+-# if (@sc_dirs) {
+-# $libs .= " -R$sc_dirs[-1] -L$sc_dirs[-1] -lsunmath -lm";
+-# } else {
+-# #warn "Cannot find SUNWspro dirs, needed for -lsunmath, using NOEXP2.\n";
+- $noexp2 = 1;
+-# }
+-} elsif ($os eq "os2") {
+- $noexp2 = 1;
+- $define .= " -DMALLOC_PROCS";
+-} elsif ($os eq 'linux') {
+- $noexp2 = 1;
+-}
+-
+-my %opts;
+-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;
+- # ... and paricfg.h
+- %opts = build_paricfg($paridir, $common::do_configure, $pari_version);
+-
+- if ($ENV{MATH_PARI_REPORT_CODES}) {
+- # Check the correspondence between string interfaces and numeric interfaces
+- my %codes;
+- my %names;
+- ep_in_version($pari_version);
+- ep_codes_from_file("$paridir/src/language/init.c", %codes, %names);
+- ep_codes_from_file("$paridir/src/gp/highlvl.c", %codes, %names);
+- # EpValence reworked in 2.2.7; when exactly was it redone??? XXXX
+- unless ($pari_version > 2002006 or ep_hash_report(%codes)) {
+- print STDERR "Problems with numeric interface codes noted:\n";
+- ep_hash_report(%codes, %names, \*STDERR);
+- }
+- }
+-}
++@ARGV = grep !/^((pariprefix|addlibs|libpari)=.*)$/i, @ARGV;
+
+-# We want to find the offset of the least significant byte
+-# of SV.flags inside an SV.
+-# It is enough to find the offset of the least significant byte inside a U32.
+-# (Needed for recognizing Perl code supplied to lisseq and lisexpr.)
++my $define = "-DPARI_VERSION_EXP=" . get_pari_formatted_version();
+
+ $offset = index($Config{byteorder}, "1");
+ $offset = 3 if $offset > 3; # SvFLAGS is actually I32
+ $define .= " -DLSB_in_U32=$offset";
+
+-my $longsize = length(eval { pack 'l!', 1 } or pack 'l', 1);
+-my $perl_int_size = $Config{'ivsize'} || $Config{'intsize'}
+- or die "Can't deduce Perl int size";
+-
+-$define .= ' -DLONG_SHORTER_THAN_IV' if $perl_int_size > $longsize;
+-
+-$define .= ' -Derr=pari_err'; # On linux it can get a wrong dynamic loading
+-$define .= ' -DHAVE_LADD' if $opts{have_ladd};
+-$define .= ' -DGCC_INLINE' if $Config{gccversion} and not $Config{optimize} =~ /-g\b/;
+-$define .= ' -DHAVE_PARIPRIV' if -f "$paridir/src/headers/paripriv.h";
+-#$define .= ' -DNO_GRAPHICS_PARI' unless -f "$paridir/src/graph/plotgnuplot.c";
+-
+-# XXXX otherwise segfaults trying to install highlevel functions???
+-# XXXX because functions_hash = NULL???
+-# $define .= ' -DNO_HIGHLEVEL_PARI' if $pari_version >= 2003000;
+-$define .= ' -DNO_GRAPHICS_PARI' if $pari_version >= 2003000;
+-
+-# This is done in Makefile in GP/PARI, and in paricfg.h without do_configure
+-$define .= ' -DDL_DFLT_NAME=NULL' if $common::do_configure;
+-
+-my $extra_inc = extra_includes($paridir);
++$define .= " -DNO_HIGHLEVEL_PARI";
- #else
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
+ # the contents of the Makefile being created.
+ &WriteMakefile(
+- LIBS => $libs,
+- INC => $extra_inc . ' -I $(PARI_DIR)/src/headers -I $(PARI_DIR)/src -I ./libPARI',
++ LIBS => join( " ", "-L${pariprefix}/lib -l${libpari}", $addlibs ),
++ INC => $extra_inc . " -I ${pariprefix}/include -I ${pariprefix}/src",
+ NAME => 'Math::Pari',
+- ($common::parilib ? () :
+- (MYEXTLIB => 'libPARI/libPARI$(LIB_EXT)')),
+ VERSION_FROM => 'Pari.pm',
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
+ (ABSTRACT_FROM => 'Pari.pm', # retrieve abstract from module
+ AUTHOR => 'Ilya Zakharevich <ilyaz@cpan.org>') : ()),
+ DEFINE => $define,
+ dist => {COMPRESS=>'gzip -9f', SUFFIX=>'gz'},
+- clean => { FILES => 'pari.ps test_eng/ex.t- libPARI.dumb.pod libPARI.pod t/55_*.t ftp-cmd' },
+- macro => { %patchrc,
+- PARI_DIR => $paridir,
+- },
++# clean => { FILES => 'pari.ps test_eng/ex.t- libPARI.dumb.pod libPARI.pod t/55_*.t ftp-cmd' },
++# macro => { %patchrc,
++# PARI_DIR => $paridir,
++# },
+ );
--ulong overflow;
--ulong hiremainder;
-+extern ulong overflow;
-+extern ulong hiremainder;
+-
+-# Remake POD if the source changed.
+-# Go to a subdirectory to build the headers and the library.
+-# XXX With -j4 goes twice to a subdir in parallel, both times without -j4...
+-sub xMY::postamble {
+- '
+-AUTOGEN_HEADERS = libPARI/pariinl.h
+-
+-Pari$(OBJ_EXT) : $(AUTOGEN_HEADERS)
+-
+-$(AUTOGEN_HEADERS): $(MYEXTLIB)
+-
+-$(MYEXTLIB): libPARI/Makefile FORCE
+- cd libPARI && $(MAKE) $(PASTHRU)
+-
+-libPARI.pod: $(PARI_DIR)/doc/usersch3.tex libPARI/gphelp
+- $(PERL) libPARI/gphelp -to_pod $(PARI_DIR)/doc/usersch3.tex > pod_tmp && mv pod_tmp $@
+-
+-libPARI.dumb.pod: $(PARI_DIR)/doc/usersch3.tex libPARI/gphelp
+- $(PERL) libPARI/gphelp -to_dumb_pod $(PARI_DIR)/doc/usersch3.tex > pod_tmp && mv pod_tmp $@
+-
+-build_tests:
+- -$(RM_F) test_eng/ex.t-
+- $(FULLPERL) -Iutils -MMath::PariBuild -e "build_tests shift" $(PARI_DIR)
+-
+-';
++sub get_pari_formatted_version()
++{
++ my $fh;
++ my $formatted_version;
++ open( $fh, "<", "${pariprefix}/include/pari/paricfg.h" ) or die $!;
++ while( my $line = <$fh> )
++ {
++ next unless ( $line =~ m/^#define\s+PARIVERSION.*(\d+)\.(\d+)\.(\d+)/ );
++ $formatted_version = sprintf( "%d%03d%03d", $1, $2, $3 );
++ }
++ close($fh);
++ return $formatted_version;
+ }
- INLINE long
- addll(ulong x, ulong y)
+ # Rewrite pic option to PIC in CCCDLFLAGS,
diff --git a/math/p5-Math-Pari/patches/patch-ab b/math/p5-Math-Pari/patches/patch-ab
index 15559865665..5f2e0b616c8 100644
--- a/math/p5-Math-Pari/patches/patch-ab
+++ b/math/p5-Math-Pari/patches/patch-ab
@@ -1,41 +1,20 @@
-$NetBSD: patch-ab,v 1.7 2009/08/16 13:33:07 he Exp $
+$NetBSD: patch-ab,v 1.8 2010/02/06 10:52:37 sno Exp $
-Improve detection of various processor types on netbsd.
-Treat DragonFly the same as FreeBSD.
-
---- ./utils/Math/PariBuild.pm.orig 2009-02-11 02:40:56.000000000 +0100
-+++ ./utils/Math/PariBuild.pm
-@@ -779,7 +779,7 @@ sub find_machine_architecture () {
- } elsif ($machine ne 'ia64') {
- $machine = 'hppa';
- }
-- } elsif ($os eq 'os2' or $os eq 'netbsd'
-+ } elsif ($os eq 'os2' or $os eq 'dragonfly'
- or $os eq 'freebsd' or $os =~ /^cygwin/) {
- chomp($machine = `uname -m`);
- $machine ||= 'ix86';
-@@ -808,6 +808,24 @@ sub find_machine_architecture () {
- close IN or die "close /proc/cpuinfo: $!";
- $machine = process_sparc $info, $machine;
- }
-+ } elsif ($os eq 'netbsd') {
-+ chomp($machine = `uname -p`);
-+ if ($machine =~ 'arm.*') {
-+ $machine='arm';
-+ } elsif ($machine eq 'i386') {
-+ $machine='ix86';
-+ } elsif ($machine =~ 'mips.*') {
-+ $machine='mips';
-+ } elsif ($machine eq 'powerpc') {
-+ $machine='ppc';
-+ } elsif ($machine =~ 'sh3.*') {
-+ $machine='sh3';
-+ } elsif ($machine =~ 'sh5.*') {
-+ $machine='sh5';
-+ } elsif ($machine eq 'sparc64') {
-+ $machine='sparcv9';
-+ }
-+ # these can be used verbatim: alpha amd64 m68k sparc vax
- } elsif ($os eq 'sunos') {
- my $type = (split ' ', $Config{myuname})[4];
- # format: SunOS name 5.9 Generic_118558-26 sun4u sparc SUNW,Ultra-5_10
+--- Pari.xs.orig 2009-12-11 02:18:24.000000000 +0000
++++ Pari.xs
+@@ -1,4 +1,6 @@
+-# include <pari.h>
++# include <pari/pari.h>
++# include <pari/paripriv.h>
++#if 0
+ # include <graph/rect.h>
+ # include <language/anal.h>
+
+@@ -7,6 +9,7 @@
+ #endif
+
+ # include <gp/gp.h> /* init_opts */
++#endif
+
+ /* On some systems /usr/include/sys/dl.h attempts to declare
+ ladd which pari.h already defined with a different meaning.
diff --git a/math/p5-Math-Pari/patches/patch-ac b/math/p5-Math-Pari/patches/patch-ac
deleted file mode 100644
index d79d7206178..00000000000
--- a/math/p5-Math-Pari/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2007/10/14 08:08:53 obache Exp $
-
---- ../pari-2.1.6/src/kernel/ix86/l0asm.c.orig 2002-04-06 12:14:02.000000000 +0000
-+++ ../pari-2.1.6/src/kernel/ix86/l0asm.c
-@@ -36,7 +36,7 @@ Foundation, Inc., 59 Temple Place - Suit
- global variable `hiremainder'. */
-
- /* This should ideally be determined at configure time. */
--#if defined(__EMX__) || defined(__DJGCC__) || defined(__GO32__) || (defined(linux) && !defined(__ELF__)) || defined(__386BSD__) || defined(__NetBSD__) || (defined(__FreeBSD__) && !defined(__ELF__)) || defined(NeXT) || defined(__CYGWIN32__) || defined(__MINGW32__)
-+#if defined(__EMX__) || defined(__DJGCC__) || defined(__GO32__) || (defined(linux) && !defined(__ELF__)) || defined(__386BSD__) || (defined(__NetBSD__) && !defined(__ELF__)) || (defined(__FreeBSD__) && !defined(__ELF__)) || defined(NeXT) || defined(__CYGWIN32__) || defined(__MINGW32__)
- # define ASM_UNDERSCORE
- #endif
-
diff --git a/math/p5-Math-Pari/patches/patch-ad b/math/p5-Math-Pari/patches/patch-ad
deleted file mode 100644
index 40f6374e5ec..00000000000
--- a/math/p5-Math-Pari/patches/patch-ad
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2009/03/05 23:12:51 seb Exp $
-
-Darwin runtime linking fix
-
---- ../pari-2.1.6/src/kernel/none/mp.c.orig 2002-01-29 14:46:23.000000000 +0100
-+++ ../pari-2.1.6/src/kernel/none/mp.c
-@@ -22,6 +22,9 @@ Foundation, Inc., 59 Temple Place - Suit
- /* version (#ifdef __M68K__) since they are defined in mp.s */
- #include "pari.h"
-
-+ulong overflow;
-+ulong hiremainder;
-+
- /* NOTE: arguments of "spec" routines (muliispec, addiispec, etc.) aren't
- * GENs but pairs (long *a, long na) representing a list of digits (in basis
- * BITS_IN_LONG) : a[0], ..., a[na-1]. [ In ordre to facilitate splitting: no
diff --git a/math/p5-Math-Pari/patches/patch-ae b/math/p5-Math-Pari/patches/patch-ae
deleted file mode 100644
index 2a70aa9b650..00000000000
--- a/math/p5-Math-Pari/patches/patch-ae
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2009/09/16 02:32:00 schmonz Exp $
-
---- ../pari-2.1.6/src/headers/parisys.h.orig 2001-11-04 06:30:48.000000000 -0800
-+++ ../pari-2.1.6/src/headers/parisys.h
-@@ -48,7 +48,7 @@ Foundation, Inc., 59 Temple Place - Suit
- # ifdef __GNUC__
- # define VOLATILE __volatile__
- # ifdef GCC_INLINE
--# ifndef __OPTIMIZE__
-+# ifdef __OPTIMIZE__NONE
- # error "no inlining without -O. Put back -O or remove -DGCC_INLINE"
- # else
- # define INLINE __inline__ static