diff --git a/math/linbox/Makefile b/math/linbox/Makefile index f39eebf7abae..145c65d57eff 100644 --- a/math/linbox/Makefile +++ b/math/linbox/Makefile @@ -1,73 +1,76 @@ PORTNAME= linbox PORTVERSION= 1.6.3 -PORTREVISION= 9 DISTVERSIONPREFIX= v +PORTREVISION= 10 CATEGORIES= math +PATCH_SITES= https://github.com/linbox-team/linbox/commit/ +PATCHFILES= b79fb13522fceef79e291922ca9c7af0a09b65ae.diff:-p1 + MAINTAINER= thierry@FreeBSD.org COMMENT= C++ library for exact, high-performance linear algebra LICENSE= GPLv2 LGPL21 LICENSE_COMB= dual BUILD_DEPENDS= fflas-ffpack-config:math/fflas-ffpack LIB_DEPENDS= libgmp.so:math/gmp \ libgivaro.so:math/givaro RUN_DEPENDS= bash:shells/bash USE_GITHUB= yes GH_ACCOUNT= linbox-team USES= autoreconf blaslapack:openblas compiler:c++11-lang gmake libtool localbase pkgconfig shebangfix SHEBANG_FILES= benchmarks/perfpublisher.sh examples/test.sh \ linbox-auto-install.sh linbox-config.in tests/jenkins-maker.sh \ tests/perfpublisher.sh tests/test_leak.sh OPTIONS_DEFINE= DOXYGEN OPTIONS_RADIO= SIZE OPTIONS_RADIO_SIZE= FULL MIN OPTIONS_DEFAULT= FULL OPTIONS_SUB= yes MIN_DESC= Lightweight package, with less dependencies MIN_CONFIGURE_ON= --without-saclib FULL_DESC= Complete package with all its dependencies FULL_BUILD_DEPENDS= gnuplot:math/gnuplot FULL_LIB_DEPENDS= libflint.so:math/flint2 \ libfplll.so:math/fplll \ libiml.so:math/iml \ libm4ri.so:math/m4ri \ libm4rie.so:math/m4rie \ libmpfr.so:math/mpfr \ libntl.so:math/ntl \ libtinyxml2.so:textproc/tinyxml2 FULL_RUN_DEPENDS= gnuplot:math/gnuplot FULL_USES= ghostscript FULL_CONFIGURE_WITH= flint fplll ghostscript gnuplot iml m4ri m4rie mpfr ntl DOXYGEN_VARS= BINARY_ALIAS=sed=${LOCALBASE}/bin/gsed DOXYGEN_CONFIGURE_ENABLE=doc DOXYGEN_CONFIGURE_WITH= docdir=${DOCSDIR} DOXYGEN_BUILD_DEPENDS= gsed:textproc/gsed \ dot:graphics/graphviz \ doxygen:devel/doxygen GNU_CONFIGURE= yes # ATM expat and drivers are broken CONFIGURE_ARGS= --without-expat USE_LDCONFIG= yes INSTALL_TARGET= install-strip TEST_TARGET= check .if defined(PACKAGE_BUILDING) CONFIGURE_ARGS+=--disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 \ --disable-sse41 --disable-sse42 --disable-fma --disable-fma4 \ --disable-avx --disable-avx2 .endif pre-configure: ${REINPLACE_CMD} -e 's|@LINBOXSAGE_LIBS@||' ${WRKSRC}/linbox.pc.in .include diff --git a/math/linbox/distinfo b/math/linbox/distinfo index 450b165b7199..b79454e5a150 100644 --- a/math/linbox/distinfo +++ b/math/linbox/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1588262204 +TIMESTAMP = 1658981912 SHA256 (linbox-team-linbox-v1.6.3_GH0.tar.gz) = ad3867b75b13c139ad30ccb9ade68a0a9c158ca99deb69d81cce1646f58e3b5e SIZE (linbox-team-linbox-v1.6.3_GH0.tar.gz) = 2311437 +SHA256 (b79fb13522fceef79e291922ca9c7af0a09b65ae.diff) = 12f65fda0d4dd6dde4c0b077719cd2596a3ce70a23f7754cbe26bde3847a4822 +SIZE (b79fb13522fceef79e291922ca9c7af0a09b65ae.diff) = 5144 diff --git a/math/linbox/files/patch-linbox_randiter_ntl-zz.h b/math/linbox/files/patch-linbox_randiter_ntl-zz.h new file mode 100644 index 000000000000..c227e957ad16 --- /dev/null +++ b/math/linbox/files/patch-linbox_randiter_ntl-zz.h @@ -0,0 +1,11 @@ +--- linbox/randiter/ntl-zz.h.orig 2022-07-28 02:25:12 UTC ++++ linbox/randiter/ntl-zz.h +@@ -44,7 +44,7 @@ namespace LinBox + + _size = NTL::to_ZZ(std::string(size).data()); + +- if (seed == integer(0)) NTL::SetSeed (NTL::to_ZZ(time(NULL))); ++ if (seed == integer(0)) NTL::SetSeed (NTL::to_ZZ(static_cast(time(NULL)))); + + else NTL::SetSeed(NTL::to_ZZ(std::string(seed).data())); + } diff --git a/math/linbox/files/patch-linbox_ring_ntl_ntl-gf2e.h b/math/linbox/files/patch-linbox_ring_ntl_ntl-gf2e.h new file mode 100644 index 000000000000..ecfc19a197e8 --- /dev/null +++ b/math/linbox/files/patch-linbox_ring_ntl_ntl-gf2e.h @@ -0,0 +1,20 @@ +--- linbox/ring/ntl/ntl-gf2e.h.orig 2022-07-28 02:52:14 UTC ++++ linbox/ring/ntl/ntl-gf2e.h +@@ -211,7 +211,7 @@ public : + _size(size), _seed(seed) + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } +@@ -221,7 +221,7 @@ public : + + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } diff --git a/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__pe.h b/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__pe.h new file mode 100644 index 000000000000..91f6f29cd477 --- /dev/null +++ b/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__pe.h @@ -0,0 +1,20 @@ +--- linbox/ring/ntl/ntl-lzz_pe.h.orig 2022-07-28 02:52:14 UTC ++++ linbox/ring/ntl/ntl-lzz_pe.h +@@ -400,7 +400,7 @@ namespace LinBox + _size(size), _seed(seed), _ring(F) + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } +@@ -411,7 +411,7 @@ namespace LinBox + + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } diff --git a/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__pex.h b/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__pex.h new file mode 100644 index 000000000000..b64c7cec7abc --- /dev/null +++ b/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__pex.h @@ -0,0 +1,20 @@ +--- linbox/ring/ntl/ntl-lzz_pex.h.orig 2022-07-28 02:52:14 UTC ++++ linbox/ring/ntl/ntl-lzz_pex.h +@@ -533,7 +533,7 @@ namespace LinBox + _size(size), _seed(seed), _ring(F) + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } +@@ -545,7 +545,7 @@ namespace LinBox + + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } diff --git a/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__px.h b/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__px.h new file mode 100644 index 000000000000..ce93d36215a9 --- /dev/null +++ b/math/linbox/files/patch-linbox_ring_ntl_ntl-lzz__px.h @@ -0,0 +1,20 @@ +--- linbox/ring/ntl/ntl-lzz_px.h.orig 2022-07-28 02:52:14 UTC ++++ linbox/ring/ntl/ntl-lzz_px.h +@@ -587,7 +587,7 @@ namespace LinBox + _size(size), _seed(seed), _ring(F) + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } +@@ -598,7 +598,7 @@ namespace LinBox + + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ(static_cast(_seed))); + } diff --git a/math/linbox/files/patch-linbox_ring_ntl_ntl-zz__pe.h b/math/linbox/files/patch-linbox_ring_ntl_ntl-zz__pe.h new file mode 100644 index 000000000000..fc97a4905b07 --- /dev/null +++ b/math/linbox/files/patch-linbox_ring_ntl_ntl-zz__pe.h @@ -0,0 +1,20 @@ +--- linbox/ring/ntl/ntl-zz_pe.h.orig 2022-07-28 02:52:14 UTC ++++ linbox/ring/ntl/ntl-zz_pe.h +@@ -385,7 +385,7 @@ namespace LinBox + _size(size), _seed(seed), _ring(F) + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ(static_cast(time(0)))); + else { + NTL::ZZ x; + std::stringstream s; +@@ -414,7 +414,7 @@ namespace LinBox + + { + if(_seed == 0) +- NTL::SetSeed(NTL::to_ZZ(time(0))); ++ NTL::SetSeed(NTL::to_ZZ( static_cast(time(0)))); + else + NTL::SetSeed(NTL::to_ZZ( static_cast(_seed)) ); + }