ping ? This latest patch keep full compatibility, and have been tested with math/p5-Math-Pari (all tests are ok).
Thanks. -- Sébastien Marie On Thu, Sep 11, 2014 at 09:27:34AM +0200, Sébastien Marie wrote: > Hi, > > There were several problems with math/pari. > > Short version: > - upgrade to the latest 2.1.x version (2.1.7) to keep Math::Pari > compatibility, and correct all problems > - test target ok for math/pari (on amd64) > - test target ok for math/p5-Math-Pari (on amd64) > > > Long version: > > 1. readline support was broken > > With 2.1.6, the readline support is broken. 2.1.7 correct that. > "gcc-3.4 breaks PARI compatibility code for old readline" (from > Changelog). > > > 2. test target was broken > > I also patch the test script to 'exit 1' on error, instead of 'exit 0', > so new breakage should be noticed. > > As side problem corrected by 2.1.7, pari on amd64 pass the test (was not > the case before) > > > 3. emacs is automatically picked if present > > I disable to search of emacs in configure script. > > > 4. update the MASTER_SITES to found the old versions > > > Thanks. > -- > Sébastien Marie > > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/math/pari/Makefile,v > retrieving revision 1.12 > diff -u -p -r1.12 Makefile > --- Makefile 11 Mar 2013 11:23:56 -0000 1.12 > +++ Makefile 11 Sep 2014 07:18:58 -0000 > @@ -2,18 +2,17 @@ > > COMMENT= number theory-oriented computer algebra system > > -DISTNAME= pari-2.1.6 > -REVISION= 2 > +DISTNAME= pari-2.1.7 > EXTRACT_SUFX= .tgz > CATEGORIES= math > > HOMEPAGE= http://pari.math.u-bordeaux.fr/ > > -# GPL > +# GPLv2 > PERMIT_PACKAGE_CDROM= Yes > WANTLIB= X11 c m ncurses readline > > -MASTER_SITES= ${HOMEPAGE}/pub/pari/unix/ > +MASTER_SITES= > http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/2.1/ > > BUILD_DEPENDS= print/texlive/base > > Index: distinfo > =================================================================== > RCS file: /cvs/ports/math/pari/distinfo,v > retrieving revision 1.2 > diff -u -p -r1.2 distinfo > --- distinfo 5 Apr 2007 16:20:06 -0000 1.2 > +++ distinfo 11 Sep 2014 07:18:58 -0000 > @@ -1,5 +1,2 @@ > -MD5 (pari-2.1.6.tgz) = UGoGHI3N7DPRiHbzxVHpUQ== > -RMD160 (pari-2.1.6.tgz) = a3noS2OdGGLfFIslMTberNc79PA= > -SHA1 (pari-2.1.6.tgz) = VL1A+nCgLnbXjQ6hnA9W99pi3o4= > -SHA256 (pari-2.1.6.tgz) = YVBwBDLiy9CFZ66qYrL3+S81C4PyysjnR7HVgYg6Qic= > -SIZE (pari-2.1.6.tgz) = 1541464 > +SHA256 (pari-2.1.7.tgz) = kULyza8wg8iWLxpcK7Dp/okV99lJDAMxKsI2HH6hVfo= > +SIZE (pari-2.1.7.tgz) = 1542137 > Index: patches/patch-Configure > =================================================================== > RCS file: /cvs/ports/math/pari/patches/patch-Configure,v > retrieving revision 1.2 > diff -u -p -r1.2 patch-Configure > --- patches/patch-Configure 30 Apr 2008 19:42:07 -0000 1.2 > +++ patches/patch-Configure 11 Sep 2014 07:18:58 -0000 > @@ -1,6 +1,15 @@ > $OpenBSD: patch-Configure,v 1.2 2008/04/30 19:42:07 naddy Exp $ > ---- Configure.orig Thu Nov 25 16:58:25 2004 > -+++ Configure Mon Apr 28 20:14:36 2008 > +--- Configure.orig Wed Sep 14 13:26:40 2005 > ++++ Configure Thu Sep 11 09:10:43 2014 > +@@ -246,7 +246,7 @@ fi > + # We might need the following : > + # > + echo Looking for some tools first ... > +-list='ld zcat gzip ranlib perl emacs' > ++list='ld zcat gzip ranlib perl' > + pathspace=`echo $PATH | sed -e "s/$dir_sep/ /g" | sed -e 's,\\\\,/,g'` > + > + for file in $list; do > @@ -844,7 +844,7 @@ if test -n "$__gnuc__"; then > esac > ;; > @@ -10,7 +19,7 @@ $OpenBSD: patch-Configure,v 1.2 2008/04/ > DBGFLAGS="-g $warn" > # Some architectures need -fPIC for building dynamic lib > case "$osname-$arch" in hpux-*) DLCFLAGS=-fPIC;; esac > -@@ -1006,7 +1006,7 @@ if test "$optimization" = profiling; then DLLD=; else > +@@ -1009,7 +1009,7 @@ if test "$optimization" = profiling; then DLLD=; else > # aix-*) DLSUFFIX=a ;; dynamic linking does not work! > sunos-*) sodest=$VersionMajor$VersionMinor.$patch > soname=$sodest;; > @@ -19,7 +28,7 @@ $OpenBSD: patch-Configure,v 1.2 2008/04/ > case $libpari_base in > pari) sodest=$version.$patch;; # released versions > *) sodest=$patch.0.0;; # unstable versions > -@@ -1044,10 +1044,6 @@ if test -n "$DLLD"; then > +@@ -1047,10 +1047,6 @@ if test -n "$DLLD"; then > freebsd-*) DLLDFLAGS="-Bshareable -x" ;; > gnu-*|linux-*) DLLDFLAGS="-shared -soname \$(LIBPARI_SONAME)" ;; > irix-*) DLLDFLAGS="-shared -elf -no_unresolved -all" ;; > @@ -30,7 +39,7 @@ $OpenBSD: patch-Configure,v 1.2 2008/04/ > sunos-*) DLLDFLAGS="-assert nodefinitions" ;; > solaris-*) DLLDFLAGS="-G -h \$(LIBPARI_SONAME)" ;; > *) DLLD=;; > -@@ -1159,7 +1155,6 @@ extra_flags= > +@@ -1162,7 +1158,6 @@ extra_flags= > list=exp2; . ./look > list=strftime; . ./look > case "$arch" in > Index: patches/patch-src_test_dotest > =================================================================== > RCS file: patches/patch-src_test_dotest > diff -N patches/patch-src_test_dotest > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_test_dotest 11 Sep 2014 07:18:58 -0000 > @@ -0,0 +1,8 @@ > +$OpenBSD$ > +--- src/test/dotest.orig Thu Sep 11 06:39:25 2014 > ++++ src/test/dotest Thu Sep 11 06:39:37 2014 > +@@ -180,3 +180,4 @@ can safely ignore the above warning. > + EOT > + fi > + fi > ++exit 1 > Index: pkg/PLIST > =================================================================== > RCS file: /cvs/ports/math/pari/pkg/PLIST,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 PLIST > --- pkg/PLIST 8 Feb 2005 02:36:12 -0000 1.1.1.1 > +++ pkg/PLIST 11 Sep 2014 07:18:58 -0000 > @@ -1,6 +1,6 @@ > @comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/08 02:36:12 msf Exp $ > bin/gp > -bin/gp-2.1 > +@bin bin/gp-2.1 > bin/gphelp > bin/tex2mail > include/pari/