commit: 76a03786adbf398191760dee58a4a06e44ebc584 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jan 7 19:59:29 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jan 7 19:59:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76a03786
dev-lang/gnat-gpl: strip unsupported flags as we do in ada-bootstrap The binhost apparently tried to build gnat-gpl instead of ada-bootstrap (why?) and failed with: ``` checking whether the GNU Fortran compiler is working... no configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /var/tmp/portage/dev-lang/gnat-gpl-2021-r5/work/build/x86_64-pc-linux-gnu/libgfortran/config.log ``` Let's try use the same stripping-unsupported-flags approach as we do in ada-bootstrap until we remove gnat-gpl entirely. Bug: https://bugs.gentoo.org/938150 Bug: https://bugs.gentoo.org/940601 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild index 0b3ec6d0b5d2..24781590d295 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -149,8 +149,12 @@ src_configure() { # conservative, we just want it to build for bootstrapping proper # sys-devel/gcc[ada]. We don't need it to be fast. strip-flags + CC="${WORKDIR}"/${BTSTRP}/bin/gcc strip-unsupported-flags + CC="${WORKDIR}"/${GNATDIR}/bin/gcc strip-unsupported-flags strip-unsupported-flags filter-lto + append-flags -O2 + append-flags -fno-strict-aliasing downgrade_arch_flags "$(gcc-version)" toolchain_src_configure