From nobody Sun Jul 31 20:34:35 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LwtK7555Wz4X4hN; Sun, 31 Jul 2022 20:34:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LwtK74QxVz3VL0; Sun, 31 Jul 2022 20:34:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659299675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6y2ni0WYT40Ds6pvakcgLx5F5soUh+AnOZgmHlfr3Wc=; b=aCVOu8/GtnoUKMHItM6yQCkO2iJkPo2Oz/egtdfeX7iAPVmSYjrc8WR7Q5gx+cZfiISuD4 3ysIHRJNKCCCZse/ebNn2EOguLgLzaq2Dck2yAQy3DprYynMiTvGlVezDnGcXShsjuHIBK +251eyq1VjUHhUe58l/Gl3tP5vzdhLcjsN5Qr5KjOjgZNMWSAI9oLvEnxBgFdjEOrUU7Ix XlEDxdV/g9Hega6O5iS5VJb7NAv3uftDClIh1wRBCLB04f4HUJMDWgvuY9q9Wk/+DMQZfG 4OK+HUYc6/lHy3k2enovMPKhDm4NHqRceYeVkLGiCsWlOzhXxBh2y5vC61UeCA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LwtK73FFKz168x; Sun, 31 Jul 2022 20:34:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26VKYZgj088499; Sun, 31 Jul 2022 20:34:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26VKYZvc088498; Sun, 31 Jul 2022 20:34:35 GMT (envelope-from git) Date: Sun, 31 Jul 2022 20:34:35 GMT Message-Id: <202207312034.26VKYZvc088498@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Thierry Thomas Subject: git: bc2786a965bb - 2022Q3 - math/linbox: fix build on armv7 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/2022Q3 X-Git-Reftype: branch X-Git-Commit: bc2786a965bbbbff92768279845f322dc6f2677a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659299675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6y2ni0WYT40Ds6pvakcgLx5F5soUh+AnOZgmHlfr3Wc=; b=db3xhePVVvzKKP6hWZmEqYVCMrLELm79HMNuBNzB6ct51t1XyiN3pmIhVcOh1Ov0KMbJSt RMO2kZ2WQEQH7ASkBWgqrwxy730ij6QZVYC9bq2gQiO2Rv69DXB+AB1qz+3D8TR+Q4ymEX ry5pfCbPh5mL2Ubkdc9fFi4zKwUwsEq/nfmdHnCBa4LFw4DoV2YvIxLpDpkhvLGLQjTcCv +NnaQmgAt+F43St++nnZJx3XEBg5AxBBuy7zbu4zGuEmpz251ZOkmWQiHMyJYgkYcjAXeA /FZnuyR5hWI9Qi3JL69+OD5VgeQ5SkKniYaYSn86pSpT+pJtujsIHe2cW+7RgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659299675; a=rsa-sha256; cv=none; b=nZmV4VeVczB7CCtOwuZxpWFijX3pYospMziX8xhjKfmCKcjnQ4QLam5oSOdMkeothPRvbi y+DCBBymvIwx/4EylMXbSwRPM6ychvi7cujRNqk/Evm21dLlBWuvemjQOhiEIzQxqiqEth h4Q32y27OQ9BTmoaHMvB0FF5BrvGjVHgyuJmjeSWAoZn2lyBadW+W+26x60dkHcSYsq3/l rjp++HbCq3ah97VHexZWLenw0ttNqnjb/CsTQH4x49iCehwemUnx8p36JBCyBRkta2vkxW CtWfCxSJoXUjwF2vpXe3Qhc90RZ/1EsnBToItcWnl0Ezyk0d/3NR6T+jAxOJHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch 2022Q3 has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc2786a965bbbbff92768279845f322dc6f2677a commit bc2786a965bbbbff92768279845f322dc6f2677a Author: Robert Clausecker AuthorDate: 2022-07-31 15:26:50 +0000 Commit: Thierry Thomas CommitDate: 2022-07-31 20:34:01 +0000 math/linbox: fix build on armv7 - add missing casts in RNG initialisation - import an upstream patch to avoid unaligned memory access PR: 265483 Reported by: Robert Clausecker (cherry picked from commit 5ce6a5a14720989cb67a86be605d174db4308dfb) --- math/linbox/Makefile | 5 ++++- math/linbox/distinfo | 4 +++- math/linbox/files/patch-linbox_randiter_ntl-zz.h | 11 +++++++++++ math/linbox/files/patch-linbox_ring_ntl_ntl-gf2e.h | 20 ++++++++++++++++++++ .../linbox/files/patch-linbox_ring_ntl_ntl-lzz__pe.h | 20 ++++++++++++++++++++ .../files/patch-linbox_ring_ntl_ntl-lzz__pex.h | 20 ++++++++++++++++++++ .../linbox/files/patch-linbox_ring_ntl_ntl-lzz__px.h | 20 ++++++++++++++++++++ math/linbox/files/patch-linbox_ring_ntl_ntl-zz__pe.h | 20 ++++++++++++++++++++ 8 files changed, 118 insertions(+), 2 deletions(-) diff --git a/math/linbox/Makefile b/math/linbox/Makefile index db1a5b688afd..65bf65910144 100644 --- a/math/linbox/Makefile +++ b/math/linbox/Makefile @@ -2,10 +2,13 @@ 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 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)) ); + }