From nobody Fri May 06 13:03:17 2022 X-Original-To: dev-commits-ports-main@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 E59D81AC639F; Fri, 6 May 2022 13:03:17 +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 4KvrN567Wxz564N; Fri, 6 May 2022 13:03:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651842197; 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=/oY4U39Sv8TsEfpqtPtffvVZsPF3TPb77GWKcLjarPI=; b=xQAyGOcxx87dFcJzM7bVg7BfxyoxOwYRy29OUMhY2FpvYRC2ngRnklv5KGEhx1gn5El8B4 WDinSWvyyDp5HO6XKg3pyfwH6TzgDRONpgoI/fT+85QJC5jvgfBLo3V4JyrQkwpp3W+OxR Q8t/87YUFjKQYmwDpV3jMjjdKXgyyE4Jz5nVfvFXXol89hPxXU/kaLP58e7W3coD7sMEW4 uejPEnpz7cuPvRBCcaTT4egf75yezPr/gVYNDgKhLlFux7TbGFP7JiJmQ+GwvFoxhv9Ln7 Xw5nydYgpRzABRjm9QqX8GFhfCAWiFtkVIf5Jqv6cbW9nADmY1kXBFGUvIx3aA== 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 B24751C3D2; Fri, 6 May 2022 13:03:17 +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 246D3H5p034167; Fri, 6 May 2022 13:03:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246D3HIN034166; Fri, 6 May 2022 13:03:17 GMT (envelope-from git) Date: Fri, 6 May 2022 13:03:17 GMT Message-Id: <202205061303.246D3HIN034166@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Lorenzo Salvadore Subject: git: 76eabb91bc3b - main - science/elmerfem: Fix build with GCC 11 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 76eabb91bc3b4876351856d1f156d8611e6a4178 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651842197; 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=/oY4U39Sv8TsEfpqtPtffvVZsPF3TPb77GWKcLjarPI=; b=orUp5KQjqIcSj5yC+pjHklq+jDuz9gwQhWmWXEPSNuYZzRtNZa3EOH3LEVkeZauG4Qlikt OOK/8JRCDPAvt2JJp7jZDRvT09CJglyWFws5JY2lWcq4QeVMhKp6eO5PrzbjEgZNFgHdcs CxwZowFCO9k/jbwkMvDEl5csETdwrAg5mKc7EwjLWCg6qAyDpp90B46IwuFMxtCKSOVrLh 7hGBV8vjhr5e2RLgWXXyM+PDXJOB7FkVH1njgPgUfr/lQWOzknJnTlAIX6zP7uWCwkyiYF DpJhkAfJUQyAO3Jww+7NGfudcd54toc8Fy2gKx0bL7KHDRYEyLDCp5YHx6o80A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651842197; a=rsa-sha256; cv=none; b=PGyBZTof3oLbJwbxfy6vdbW/Hg63whHYZtJQl+pe0H7e5TYwNWU+CAQf19Wv7v78OEobry tNMCd70yY6gtfs+X9e+FmrjcSGuMHQqQ0fP4AxJKUQQxI7mUL4qUQ/qPJKFXDtvmF2VMU5 UVK25DFTVwACWfSUBivPBwDrhAgKZqGYF6OyIkF6DyxY86EIw5TwdPefaYL2JbpHLsrMtp DPbiJeFh37jaQmgQ0S2sgk/B2AZIHIKn4XoiWXxHQuFMwA12HhswIUUcge6PSgpi3vnVD3 s0LbhLg3r4OoEeguHwPD6CGuU4vASaClwF7SqEhwUTPE0MwR0p6gciKY1WSIJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=76eabb91bc3b4876351856d1f156d8611e6a4178 commit 76eabb91bc3b4876351856d1f156d8611e6a4178 Author: Henrik Gulbrandsen AuthorDate: 2022-05-05 00:46:53 +0000 Commit: Lorenzo Salvadore CommitDate: 2022-05-06 13:01:10 +0000 science/elmerfem: Fix build with GCC 11 PR: 263539 Reported by: exp-run (antoine@) Approved by: gerald (mentor) --- science/elmerfem/Makefile | 6 ++- .../patch-fem_src_modules_DCRComplexSolve.F90 | 58 ++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile index ca7a1c9c605f..7d42a1de33cd 100644 --- a/science/elmerfem/Makefile +++ b/science/elmerfem/Makefile @@ -3,7 +3,7 @@ PORTNAME= elmerfem DISTVERSIONPREFIX= release- DISTVERSION= 9.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MAINTAINER= henrik@gulbra.net @@ -12,17 +12,19 @@ COMMENT= Multiphysical simulation software LICENSE= GPLv2 LIB_DEPENDS= libblas.so:math/blas \ + libhdf5.so:science/hdf5 \ libmetis.so:math/metis \ libmpich.so:net/mpich \ + libnetcdf.so:science/netcdf \ libopenblas.so:math/openblas \ libparpack.so:math/arpack-ng USES= cmake compiler:c++11-lang fortran -USE_LDCONFIG= ${PREFIX}/lib/elmersolver USE_GITHUB= yes GH_ACCOUNT= ElmerCSC +USE_LDCONFIG= ${PREFIX}/lib/elmersolver CMAKE_ARGS= -DELMER_FEM_REVISION:STRING=${GH_TAGNAME} ALL_TARGET= # empty diff --git a/science/elmerfem/files/patch-fem_src_modules_DCRComplexSolve.F90 b/science/elmerfem/files/patch-fem_src_modules_DCRComplexSolve.F90 new file mode 100644 index 000000000000..515d7d578f3e --- /dev/null +++ b/science/elmerfem/files/patch-fem_src_modules_DCRComplexSolve.F90 @@ -0,0 +1,58 @@ +--- fem/src/modules/DCRComplexSolve.F90.orig 2020-11-10 19:52:44 UTC ++++ fem/src/modules/DCRComplexSolve.F90 +@@ -433,6 +433,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -485,6 +486,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1074,6 +1076,7 @@ contains + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1374,6 +1377,7 @@ contains + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1426,6 +1430,7 @@ contains + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1727,6 +1732,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1779,6 +1785,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------