commit: d7bd3f9525291e25cbae8c6f107227d6a14a4c4f Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Mon Apr 1 01:46:11 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Apr 1 05:29:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7bd3f95
sci-libs/netcdf-fortran: mark as LTO-unsafe Closes: https://bugs.gentoo.org/927588 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/netcdf-fortran/netcdf-fortran-4.5.4-r1.ebuild | 7 ++++++- sci-libs/netcdf-fortran/netcdf-fortran-4.5.4.ebuild | 7 ++++++- sci-libs/netcdf-fortran/netcdf-fortran-4.6.1.ebuild | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4-r1.ebuild b/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4-r1.ebuild index 2677655adbea..011dff676f10 100644 --- a/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4-r1.ebuild +++ b/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 FORTRAN_STANDARD="77 90" -inherit fortran-2 +inherit flag-o-matic fortran-2 DESCRIPTION="Scientific library and interface for array oriented data access" HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/" @@ -25,6 +25,11 @@ DEPEND=" BDEPEND="doc? ( app-text/doxygen )" src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/927588 + # https://github.com/Unidata/netcdf-fortran/issues/437 + filter-lto + econf \ --disable-valgrind \ --with-temp-large="${T}" \ diff --git a/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4.ebuild b/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4.ebuild index d89617045f7d..fc08cfb95414 100644 --- a/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4.ebuild +++ b/sci-libs/netcdf-fortran/netcdf-fortran-4.5.4.ebuild @@ -5,7 +5,7 @@ EAPI=8 FORTRAN_STANDARD="77 90" -inherit autotools fortran-2 +inherit autotools flag-o-matic fortran-2 DESCRIPTION="Scientific library and interface for array oriented data access" HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/" @@ -28,6 +28,11 @@ src_prepare() { } src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/927588 + # https://github.com/Unidata/netcdf-fortran/issues/437 + filter-lto + econf \ --disable-valgrind \ --with-temp-large="${T}" \ diff --git a/sci-libs/netcdf-fortran/netcdf-fortran-4.6.1.ebuild b/sci-libs/netcdf-fortran/netcdf-fortran-4.6.1.ebuild index f9c020fa3521..9b44a0997205 100644 --- a/sci-libs/netcdf-fortran/netcdf-fortran-4.6.1.ebuild +++ b/sci-libs/netcdf-fortran/netcdf-fortran-4.6.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 FORTRAN_STANDARD="77 90" -inherit cmake fortran-2 +inherit cmake flag-o-matic fortran-2 DESCRIPTION="Scientific library and interface for array oriented data access" HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/" @@ -25,6 +25,11 @@ DEPEND=" BDEPEND="doc? ( app-text/doxygen[dot] )" src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/927588 + # https://github.com/Unidata/netcdf-fortran/issues/437 + filter-lto + local mycmakeargs=( -DDISABLE_ZSTANDARD_PLUGIN=$(usex !zstd) -DBUILD_EXAMPLES=$(usex examples)
