head 1.9; access; symbols pkgsrc-2022Q2:1.8.0.50 pkgsrc-2022Q2-base:1.8 pkgsrc-2022Q1:1.8.0.48 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.8.0.46 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.8.0.44 pkgsrc-2021Q3-base:1.8 pkgsrc-2021Q2:1.8.0.42 pkgsrc-2021Q2-base:1.8 pkgsrc-2021Q1:1.8.0.40 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.8.0.38 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.36 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.32 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.12 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.34 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.30 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.28 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.26 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.24 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.22 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.20 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.8.0.18 pkgsrc-2018Q1-base:1.8 pkgsrc-2017Q4:1.8.0.16 pkgsrc-2017Q4-base:1.8 pkgsrc-2017Q3:1.8.0.14 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.10 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.8 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.6 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.4 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.2 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.7.0.2 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.6.0.4 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.2 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.5.0.44 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.42 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.40 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.38 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.36 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.34 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.32 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.30 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.28 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.26 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.24 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.22 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.20 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.18 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.16 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.14 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.12 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.10 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.8 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.6 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.4 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.2 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.3.0.8 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.6 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.4 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.2 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.2.0.42 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.40 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.38 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.36 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.34 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.32 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.30 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.28 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.26 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.24 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.22 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.20 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.18 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.16 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.14 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.12 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.10 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.1.0.2 pkgsrc-2003Q4-base:1.1; locks; strict; comment @# @; 1.9 date 2022.08.02.07.22.00; author ast; state dead; branches; next 1.8; commitid 7tWzyVsgxPlqZgOD; 1.8 date 2016.05.22.17.50.57; author wiz; state Exp; branches; next 1.7; commitid 1eodk9ozm5Czjv7z; 1.7 date 2015.12.29.23.21.11; author wiz; state Exp; branches; next 1.6; commitid bcf3q2J58fWMNTOy; 1.6 date 2015.08.10.08.23.49; author dholland; state Exp; branches; next 1.5; commitid 7SFQLH3yBrfSmHwy; 1.5 date 2010.03.10.09.24.52; author sno; state Exp; branches; next 1.4; 1.4 date 2010.02.06.10.52.37; author sno; state Exp; branches; next 1.3; 1.3 date 2009.03.05.23.12.51; author seb; state Exp; branches; next 1.2; 1.2 date 2004.02.22.22.04.54; author heinz; state dead; branches; next 1.1; 1.1 date 2003.07.07.22.07.45; author jtb; state Exp; branches; next ; desc @@ 1.9 log @math/p5-Math-Pari: Update to 2.030523 (from 2.01080900) Way too many changes since 2.01080900 to re-mention here, for details see https://metacpan.org/release/ILYAZ/Math-Pari-2.030523/changes That said, a lot of work seems to have been into the modules own patch handling and fixing/adding tests. In fact, for 2.030523 we have now: All tests PASS: Files=7, Tests=591 Up from Files=5, Tests=564 for 2.01080900 albeit with the exact same five Binary and Hexadecimal "non-portable number" warnings in test t/00_Pari.t By skipping GNUPlot and Math::PariBuild by re-using the earlier Makefile.PL we can avoid a lot of the apparent grief the build would otherwise encounter. @ text @$NetBSD: patch-aa,v 1.8 2016/05/22 17:50:57 wiz Exp $ --- Makefile.PL.orig 2016-05-07 03:14:29.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 = ".."; @@@@ -18,151 +15,16 @@@@ unless (-t STDOUT) { # Better reports i chmod 0400, 'typemap' if $^O =~ /cygwin/ and -f 'typemap' and not -r 'typemap'; # bug in some installations of cygwin??? -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\.(?:[4-9]|\d\d+)\.' : '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 < '$Config{cccdlflags}', optimize -> '$Config{optimize}'. +my $pariprefix; +my $addlibs; +my $libpari = "pari"; + +grep {/^pariprefix=(.*)$/i and $pariprefix = $1} @@ARGV; +grep {/^addlibs=(.*)$/i and $addlibs = $1} @@ARGV; +grep {/^libpari=(.*)$/i and $libpari = $1} @@ARGV; -EOP -} - -if ($common::parilib) { - $pari_version = '2001007'; # XXXX How to get a correct one? - $define = '-DNO_HIGHLEVEL_PARI'; - print <= 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 = 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; +my $define = "-DPARI_VERSION_EXP=" . get_pari_formatted_version(); # We want to find the offset of the least significant byte # of SV.flags inside an SV. @@@@ -180,74 +42,36 @@@@ my $perl_int_size = $Config{'ivsize'} || $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"; # 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 ') : ()), 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, - }, ); -if (not $common::patches_run or @@common::patches_fail) { - my @@patches_needed = patches_for($pari_version); - my $msg = $common::patches_run ? "failed when applied" : "were not applied"; - push @@common::patches_fail, @@patches_needed unless $common::patches_run; - warn "\nThe following patches were judged to be beneficial, but $msg:\n\t@@common::patches_fail\n"; -} - - -# 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; } # Rewrite pic option to PIC in CCCDLFLAGS, @@@@ -257,7 +81,8 @@@@ sub MY::const_config my $self = shift; my $flags = $self->{'CCCDLFLAGS'}; # Tmp var needed with Perl4 ! $flags =~ s/(-[fK]?\s*)pic\b/${1}PIC/; - $flags =~ s/-KPIC/-K PIC/; # Apparently (was?) needed on Solaris... + # Nowadays breaks build; see PR 45271 + #$flags =~ s/-KPIC/-K PIC/; # Apparently (was?) needed on Solaris... $self->{'CCCDLFLAGS'} = $flags; if ($^O eq 'MSWin32' && $Config{'ccflags'} =~ /-DPERL_OBJECT/) { @ 1.8 log @Updated p5-Math-Pari to 2.010809.00. 2.010809 MakeMaker of 5.22 (and, maybe, 5.20) started to call test_dynamic target in the daughter Makefile. Correct "{" in RExes of libPARI/gphelp. Attempt to workaround a broken config of gcc on vendor's Perl on Solaris. 2.01080900 Repackage as zip @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2015/12/29 23:21:11 wiz Exp $ @ 1.7 log @Update p5-Math-Pari to 2.010808: 2.01080606a cygwin's tar generated 0-permissions for the distribution (no auto-workaround...). Document workarounds for isprime() with version 2.1.7 (in the BUGS section). 2.01080607 Correct the documention about fraction of witnesses from >=0.25 to >=0.75. Define HAS_STAT and HAS_OPENDIR basing on $Config{i_sysstat} and $Config{i_dirent}. Correct spelling errors in POD and comments in Pari.pm (thanks to dsteinbrunner!). On AIX, do merge_822 separately in subdirectories (exceeds command line length otherwise). On >=2.3.0, reset had-newline-on-output to 1 at startup. (Saves one spurious NL) New patch: diff_2.3.5_stderr_clobber New test: 01_no_extra_newlines.t Allow download not only via FTP, but also through HTTP. In presence of PERL5_CPAN_IS_RUNNING, assume that NO ANSWER on prompt is agreement. (It looks like cygwin and MSWin32 automated-testing environment do not have AUTOMATED_TESTING and PERL_MM_USE_DEFAULT set...) Do not auto-download on 64-bit builds of MSWin32. 2.010807 Too long version name was a misprint. Pay attention to PERL_EXTUTILS_AUTOINSTALL when interpreting empty answers to prompt (probably an overkill). (disable this abomination by PERL_MATHPARI_TRUST_MANUAL) (to see why this may be needed: http://www.cpantesters.org/cpan/report/a5d65ec6-6bf3-1014-87a8-67ba45601f20) Report bytes in the answer for prompt. Separate into separate subroutines inspecting versions available for download from the actual download. Change the logic of fallback Net::FTP --> LWP: before, if Net::FTP fails in retrieving the directory listing; now: if this happens, or if it fails to retrieve the file (how can it happen?! see http://www.cpantesters.org/cpan/report/e7f9d5a7-6bfa-1014-9d0f-1948c9c86cae) __wrap_PARI_macro: new function (not exported) parse_as_gp: new function (exported by default) More verbose error message for "Cannot load a Pari macro". 2.010808 A night of sleep fixed problems of parse_of_gp with the operator \ and empty lines. (test suite updated) Actually, mingw was not ready for HAVE_OPENDIR. Store which patches were applied in $dir/.perl.patches. Report which patches were not applied. Export patches_for() from BuildPari. pari_tgz build option was broken (by LWP-after-NFTP support code — which, apparently, did not help with timeouts). Ignore 0-size "downloaded" files. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 2015/08/10 08:23:49 dholland Exp $ d3 1 a3 1 --- Makefile.PL.orig 2014-06-01 19:12:16.000000000 +0000 d15 1 a15 1 @@@@ -18,137 +15,16 @@@@ unless (-t STDOUT) { # Better reports i d53 21 d121 1 a121 8 +my $pariprefix; +my $addlibs; +my $libpari = "pari"; + +grep {/^pariprefix=(.*)$/i and $pariprefix = $1} @@ARGV; +grep {/^addlibs=(.*)$/i and $addlibs = $1} @@ARGV; +grep {/^libpari=(.*)$/i and $libpari = $1} @@ARGV; d176 1 a176 1 @@@@ -166,74 +42,36 @@@@ my $perl_int_size = $Config{'ivsize'} || d266 1 a266 1 @@@@ -243,7 +81,8 @@@@ sub MY::const_config @ 1.6 log @PR 45271 Joern Clausen: remove old Solaris PIC-related substitution that nowadays breaks the build. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2010/03/10 09:24:52 sno Exp $ d3 1 a3 1 --- Makefile.PL.orig 2010-03-03 21:26:10.000000000 +0000 d15 3 a17 3 @@@@ -16,137 +13,16 @@@@ unless (-t STDOUT) { # Better reports i select $odef; } d29 1 a29 1 -$common::skip_versions = $ok23 ? '(?!)' : '2\.(?:[3-9]|\d\d+)\.'; d54 1 a54 1 - $pari_version = '2001004'; # XXXX How to get a correct one? d100 8 a107 1 - d134 1 a134 8 +my $pariprefix; +my $addlibs; +my $libpari = "pari"; + +grep {/^pariprefix=(.*)$/i and $pariprefix = $1} @@ARGV; +grep {/^addlibs=(.*)$/i and $addlibs = $1} @@ARGV; +grep {/^libpari=(.*)$/i and $libpari = $1} @@ARGV; d162 1 a162 1 @@@@ -164,67 +40,40 @@@@ my $perl_int_size = $Config{'ivsize'} || d175 1 a175 1 - d178 1 a178 1 a201 4 +# clean => { FILES => 'pari.ps test_eng/ex.t- libPARI.dumb.pod libPARI.pod t/55_*.t ftp-cmd' }, +# macro => { %patchrc, +# PARI_DIR => $paridir, +# }, d204 7 d244 2 a245 2 + next unless ( $line =~ m/^#define\s+PARIVERSION.*(\d+)\.(\d+)\.(\d+)/ ); + $formatted_version = sprintf( "%d%03d%03d", $1, $2, $3 ); d252 1 a252 1 @@@@ -234,7 +83,8 @@@@ sub MY::const_config @ 1.5 log @Updating math/p5-Math-Pari from 2.010806.03 to 2.010806.04 pkgsrc changes: - Adjust patch which allows to use math/pari Upstream changes: 2.01080604 Add (missing in 2.1.*) declaration for pari_init(). Minor miscount in docs. Math::PariBuild: detecting `patch --binary' missed -p1; same for inc_h.diff Work around bug in XSUB.h (at least up to 5.11.2) with puts. Get GPDATADIR from gp, if present. Make self-documentation for switching to 2.3.* more explicit. kmx patch for mingw 32-bit Win-build: include windows.h (early!) in Pari.xs and highlvl.c enable assembler for this build x86_64 assembler detection after 2.2.7; thanks to Alexander Haeckel @ text @d1 1 a1 1 $NetBSD$ d249 10 @ 1.4 log @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. @ text @d3 1 a3 1 --- Makefile.PL.orig 2009-12-11 01:28:42.000000000 +0000 d15 1 a15 1 @@@@ -16,208 +13,54 @@@@ unless (-t STDOUT) { # Better reports i d84 7 d98 1 a98 4 +my $pariprefix; +my $addlibs; +my $libpari = "pari"; d100 1 a100 4 +grep {/^pariprefix=(.*)$/i and $pariprefix = $1} @@ARGV; +grep {/^addlibs=(.*)$/i and $addlibs = $1} @@ARGV; +grep {/^libpari=(.*)$/i and $libpari = $1} @@ARGV; d127 8 a134 1 - a157 5 -# 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.) d160 4 a163 3 $offset = index($Config{byteorder}, "1"); $offset = 3 if $offset > 3; # SvFLAGS is actually I32 $define .= " -DLSB_in_U32=$offset"; d165 1 a165 7 -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 d167 1 a167 1 -$define .= ' -DGCC_INLINE' if $Config{gccversion} and not $Config{optimize} =~ /-g\b/; d178 1 a178 1 - @ 1.3 log @Fix shared library loading on Darwin. Bump PKGREVISION to 1. @ text @d3 5 a7 12 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 #else -ulong overflow; -ulong hiremainder; +extern ulong overflow; +extern ulong hiremainder; d9 242 a250 2 INLINE long addll(ulong x, ulong y) @ 1.2 log @Update to 2.010501 (in line with math/pari 2.1.5) Changes since 2.001804: Too many to list here, see file "Changes". @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2003/07/07 22:07:45 jtb Exp $ d3 5 a7 9 --- libPARI/Makefile.PL.orig +++ libPARI/Makefile.PL @@@@ -284,7 +284,7 @@@@ #closedir DIR or die "Cannot closedir . : $!"; @@cfiles = <$main_paridir/src/*/*.c>; -@@cfiles = grep !/\/(plot|ix86|version|mpin|dummy|gp_rl|gp\.)/, @@cfiles; +@@cfiles = grep !/\/(kerntest|plot|ix86|version|mpin|dummy|gp_rl|gp\.)/, @@cfiles; %cfiles = map {m,/([^/.]*)\.c,i; ($1,$_)} @@cfiles; d9 1 d11 4 a14 6 @@@@ -340,7 +340,6 @@@@ $mp_cflags = '\$(CPlPl) \$(NOASM)'; # NOASM seems to be empty } elsif ($machine eq 'port') { push @@portfiles, 'mp.c'; - $mycflags .= " -D__HAS_NO_ASM__"; } d16 2 a17 15 $cfiles{plotgnuplot} = "$main_paridir/src/graph/plotgnuplot.c"; @@@@ -390,7 +389,7 @@@@ ASFLAGS => $assflags{$machine} || '', }, DEFINE => $mycflags, - INC => "-I$main_paridir/src/headers -I$main_paridir/src/graph -I.", + INC => "-I$main_paridir/src/headers -I$main_paridir/src/graph -I$main_paridir/src/language -I.", C => \@@cfiles, SKIP => [qw( distclean test dist makeaperl xs_o static)], clean => {'FILES' => @@@@ -460,4 +459,3 @@@@ } return $self->MM::const_config; } - @ 1.1 log @Allow this to work with latest pari. @ text @d1 1 a1 1 $NetBSD$ @