pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/p5-Math-Pari Updated to version 2.010703.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7833fc597d50
branches:  trunk
changeset: 508103:7833fc597d50
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Tue Feb 14 22:52:15 2006 +0000

description:
Updated to version 2.010703.

This update fixes various segmentation faults during "make test" (using
pari 2.1.6).

Pkgsrc changes:
  - Removed files/Makefile.PL (not used anymore).

Relevant changes since version 2.010501:
========================================
  - various 64-bit fixes
  - extensive update ot test suite

diffstat:

 math/p5-Math-Pari/Makefile          |    5 +-
 math/p5-Math-Pari/distinfo          |   10 +-
 math/p5-Math-Pari/files/Makefile.PL |  328 ------------------------------------
 math/p5-Math-Pari/patches/patch-ab  |   32 +-
 4 files changed, 23 insertions(+), 352 deletions(-)

diffs (truncated from 408 to 300 lines):

diff -r d5389dbed616 -r 7833fc597d50 math/p5-Math-Pari/Makefile
--- a/math/p5-Math-Pari/Makefile        Tue Feb 14 22:31:42 2006 +0000
+++ b/math/p5-Math-Pari/Makefile        Tue Feb 14 22:52:15 2006 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.22 2006/01/11 21:24:09 joerg Exp $
+# $NetBSD: Makefile,v 1.23 2006/02/14 22:52:15 heinz Exp $
 #
 
-DISTNAME=              Math-Pari-2.010501
+DISTNAME=              Math-Pari-2.010703
 PKGNAME=               p5-${DISTNAME}
-PKGREVISION=           2
 SVR4_PKGNAME=          p5mpa
 CATEGORIES=            math perl5
 MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=Math/}
diff -r d5389dbed616 -r 7833fc597d50 math/p5-Math-Pari/distinfo
--- a/math/p5-Math-Pari/distinfo        Tue Feb 14 22:31:42 2006 +0000
+++ b/math/p5-Math-Pari/distinfo        Tue Feb 14 22:52:15 2006 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2005/12/03 01:46:26 joerg Exp $
+$NetBSD: distinfo,v 1.7 2006/02/14 22:52:15 heinz Exp $
 
-SHA1 (Math-Pari-2.010501.tar.gz) = 61ba9cde47a624dfae562360b4e16f34409f4024
-RMD160 (Math-Pari-2.010501.tar.gz) = fcb7414d15cba962ff23a8b3a0fd4276da0db6fc
-Size (Math-Pari-2.010501.tar.gz) = 96680 bytes
-SHA1 (patch-ab) = 6b13e3e9f58d33e11c702ac9d5fd12a479664089
+SHA1 (Math-Pari-2.010703.tar.gz) = 6634d36a7698957493f77ec5acb18c3091ae4c5f
+RMD160 (Math-Pari-2.010703.tar.gz) = cf9ca6c8b6b154ca8f56d1f341c8d76f2142cf9e
+Size (Math-Pari-2.010703.tar.gz) = 108591 bytes
+SHA1 (patch-ab) = 985b0c43128fc1f587bf25f7f2b57f6c8bf3793f
diff -r d5389dbed616 -r 7833fc597d50 math/p5-Math-Pari/files/Makefile.PL
--- a/math/p5-Math-Pari/files/Makefile.PL       Tue Feb 14 22:31:42 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,328 +0,0 @@
-# $Id: Makefile.PL,v 1.1 2001/10/02 01:34:23 mcr Exp $
-use ExtUtils::MakeMaker;
-use Config '%Config';
-use File::Copy 'copy';
-
-# Uncomment and change this line if I fail to find it
-$paridir = "../../../../math/pari/work/pari-2.1.1";
-
-unless (-t STDOUT) {           # Better reports if run with redirections
-    my $odef = select STDERR;
-    $| = 1;
-    select STDOUT;
-    $| = 1;
-    select $odef;  
-}
-
-$latmus = 'src/test/in/nfields';
-
-sub format_pari {
-  my $dir = shift;
-  $dir =~ s/(\d+)\.(\d+).(\d+)/sprintf('%03d%03d%03d',$1,$2,$3)/e;
-  $dir;
-}
-
-unless (defined $paridir) {
-  # Assume we are inside:
-  for $dir ('..', '../..') {
-    $paridir = $dir, last 
-      if -e "$dir/$latmus";
-  }
-  unless (defined $paridir) {
-    # Try to find alongside
-    for $dir ('.', '..', '../..') {
-      @dirs = <$dir/pari-[234].*>;
-      @dirs = grep -e "$_/$latmus", @dirs;
-      last if @dirs;
-    }
-    @gooddirs = grep !/alpha|beta/, @dirs;
-    @gooddirs = grep !/alpha/, @dirs unless @gooddirs;
-    @gooddirs = @dirs unless @gooddirs;
-    @gooddirs = sort {format_pari($a) cmp format_pari($b)} @gooddirs;
-    $paridir = $gooddirs[-1] if @gooddirs;
-  }
-}
-
-$paridir = get_pari() if !$paridir;  
-
-if ($paridir) {
-  $pari_version = format_pari($paridir);
-  print <<EOP;
-Found PARI build directory in $paridir 
-     (formatted $pari_version).
-EOP
-  $pari_version =~ s/.*pari-0+([0-9]*).*/$1/;
-  $common::pari_version = $pari_version;
-} else {
-  die "Could not find PARI build directory, please edit Makefile.PL.\n";
-}
-$common::main_paridir = $paridir;
-$os = $Config{osname};
-
-if (@ARGV and $ARGV[0] =~ /^machine=(.*)$/i) {
-  $common::machine = $1; shift;
-}
-
-#$define = "-Dshifts=pari_shifts -DDEBUG_PARI";
-$define = "-DPARI_VERSION_EXP=$pari_version -DDEBUG_PARI";
-#$libs = "-L$paridir -lpari -lgnuplot -lm";
-$libs = "-lgnuplot -lm";
-
-# Comment if your Pari is not c++, or your compiler is not gcc:
-# $cpp = "-x c++";
-
-$noexp2 = '';                  # Should be used for generation of paricfg.h
-
-if ($os eq "solaris") {
-  # 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/SC*>;
-  if (@sc_dirs) {
-    $libs .= " -L$sc_dirs[-1]/lib -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;
-}
-
-
-# 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.)
-
-$offset = index($Config{byteorder}, "1");
-$offset = 3 if $offset > 3;    # SvFLAGS is actually I32
-
-$define .= " -DLSB_in_U32=$offset";
-$parisrc = "$paridir/src";
-$paritests = "$parisrc/test/in";
-
-opendir TESTS, $paritests 
-  or die "Cannot find tests in $paritests: $!";
-@tests = readdir TESTS;
-closedir TESTS or die "Cannot find tests (close): $!";
-$sou = 'test_eng/ex.t';
-next if -e $targ and -M $targ <= -M $sou;
-#if (not -e "$sou-" or -M "$sou-" > -M $sou) {
-  system "$^X -pe 's,CHANGE_ME,$paridir,' $sou > $sou- "
-    and die "Could not run test converter: $! $?";
-#}
-$sou = "$sou-";
-for $test (@tests) {
-  next if $test =~ /^\.\.?$/;
-  next if $test =~ /compat/;
-  next if -d "$paritests/$test" and $test eq 'CVS';
-  next if $test =~ /(~|\.(bak|orig|rej))$/;
-  $targ = "t/$test.t";
-  if (-f $targ) {
-    chmod 0666, $targ;
-    unlink $targ;
-  }
-  copy $sou, $targ or die "Cannot create test $test.t: $1";
-}
-$targ = 'libPARI.pod';
-if (not -e $targ
-    or -M $targ > -M "$paridir/doc/usersch3.tex"
-    or -M $targ > -M "paridoc_to_pod") {
-  if (-f $targ) {
-    chmod 0666, $targ;
-    unlink $targ;
-  }
-  system "$^X paridoc_to_pod $paridir/doc/usersch3.tex > $targ "
-    and die "Errors when converting documentation: $! $?"
-}
-
-@paricfg = <$paridir/o.*/paricfg.h>;
-push @paricfg, <$paridir/O*/paricfg.h>;
-
-@paricfg = grep !/Odos/, @paricfg unless $^O =~ /dos|djgcc/i;
-
-if (@paricfg > 1) {
-  warn "Found multiple paricfg.h: @paricfg.\n";
-  @paricfg = sort { -M $a <=> -M $b} @paricfg;
-  warn "Choosing newest paricfg.h: $paricfg[0].\n";
-} 
-if (@paricfg == 0) {
-  warn <<EOW;
-Did not find paricfg.h.  You will need to manually copy it to libPARI
-    directory from the PARI build directory.
-EOW
-} else {
-  copy $paricfg[0], 'libPARI/paricfg.h' 
-    or die "Could not copy $paricfg[0] to paricfg.h: $!"
-      if not -e 'libPARI/paricfg.h' or -M $paricfg[0] < -M 'libPARI/paricfg.h';
-}
-
-$define .= ' -Derr=pari_err'; # On linux it can get a wrong dynamic loading
-
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile being created.
-&WriteMakefile(
-              LIBS          =>  $libs,
-              INC           => "-I$parisrc/headers -I$parisrc -I./libPARI",
-              NAME          => 'Math::Pari',
-              MYEXTLIB      => 'libPARI/libPARI$(LIB_EXT)',
-              VERSION_FROM  => 'Pari.pm',
-              DEFINE        => $define,
-              dist          => {COMPRESS=>'gzip -9f', SUFFIX=>'gz'},
-              clean         => { FILES => 'pari.ps' },
-             );
-
-
-sub MY::postamble {
-  '
-$(MYEXTLIB): libPARI/Makefile FORCE
-       cd libPARI && $(MAKE) $(PASTHRU)
-';
-}
-
-sub MY::const_config
-{
- my $self = shift;
- my $flags = $self->{'CCCDLFLAGS'}; # Tmp var needed with Perl4 !
- $flags =~ s/(-[fK]?\s*)pic\b/${1}PIC/; 
- $self->{'CCCDLFLAGS'} = $flags;
- if ($^O eq 'MSWin32' && $Config{'ccflags'} =~ /-DPERL_OBJECT/)
-  {
-   $self->{'LDFLAGS'} =~ s/-(debug|pdb:\w+)\s+//g;
-   $self->{'LDDLFLAGS'} =~ s/-(debug|pdb:\w+)\s+//g;
-  }
- return $self->MM::const_config;
-}
-
-sub get_pari {
-  $host = 'megrez.math.u-bordeaux.fr';
-  $dir  = '/pub/pari/unix/';
-
-  print "Did not find PARI build directory around.\n";
-
-  if (-t STDIN and (-t STDOUT or -p STDOUT)) { # Interactive
-    $| = 1;
-    $mess = <<EOP;
-Do you want to me to fetch PARI automatically?  
-Make sure you have a large scrollback buffer to see the messages.
-Fetch? (y/n, press Enter)
-EOP
-    chomp $mess;
-    print "$mess ";
-    $ans = <>;
-    if ($ans !~ /y/i) {
-      print "Well, as you wish...  I give up...\n";
-      return;
-    }
-  } else {
-    print "Non-interactive session, autofetching...\n"
-  }
-
-  print "Getting PARI from ftp://$host$dir\n";;
-
-  eval { require Net::FTP }
-    or die "You do not have Net::Ftp installed, cannot download, exiting...";
-
-  $ftp = Net::FTP->new($host) or die "Cannot create FTP object: $!";
-  $ftp->login("anonymous","Math::Pari@") or die "Cannot login anonymously: $!";
-  $ftp->cwd($dir) or die "Cannot cwd: $!";
-  $ftp->binary() or die "Cannot switch to binary: $!";
-  @lst = $ftp->ls() or die "Cannot list: $!";
-  #print "list = `@lst'\n";
-
-  $match = 'pari.*(\d+\.\d+\.\d+).*\.t(ar\.)?gz$';
-  $c = 0;
-  for $file (@lst) {
-    next unless $file =~ /$match/o;
-    $c++;
-    $version = $1;
-    if ($file =~ /alpha/) {
-      $alpha{$version} = $file;
-    } elsif ($file =~ /beta/) { 
-      $beta{$version} = $file;
-    } else {
-      $golden{$version} = $file;
-    }
-  }
-  die "Did not find any file matching /$match/ via FTP"
-    unless $c;
-
-  sub fmt_version {sprintf "%03d%03d%03d", split /\./, shift}
-
-  for $type (qw(alpha beta golden)) {
-    if (%$type) {
-      $have{$type}++;
-      $best = $type;
-      @files = keys %$type;
-      print "Available ${type} versions: `@files'\n";
-      $ {"latest_$type"} = (sort {fmt_version($a) cmp fmt_version($b)} 
-                           keys %$type)[-1];
-      $ {"latest_${type}_file"} = $$type{$ {"latest_$type"}};
-      print qq(Latest $type is ${"latest_${type}_file"}\n);
-    }
-  }
-



Home | Main Index | Thread Index | Old Index