diff options
author | Sam James <sam@gentoo.org> | 2022-10-04 02:23:32 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-11 20:15:00 +0100 |
commit | 6ce12231a50fd05970501f67adc916754a21fe60 (patch) | |
tree | 9cb3c8dc2f3b1e12b49e53b3f161949458751daf /eclass | |
parent | dev-libs/trio: Fix -Werror=strict-prototypes (diff) | |
download | gentoo-6ce12231a50fd05970501f67adc916754a21fe60.tar.gz gentoo-6ce12231a50fd05970501f67adc916754a21fe60.tar.bz2 gentoo-6ce12231a50fd05970501f67adc916754a21fe60.zip |
toolchain.eclass: allow fixincludes for >= GCC 13
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 756c15f0e17b..22177c58b8fa 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2014,16 +2014,20 @@ toolchain_src_install() { fi done - # We remove the generated fixincludes, as they can cause things to break - # (ncurses, openssl, etc). We do not prevent them from being built, as - # in the following commit which we revert: - # https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.647&r2=1.648 - # This is because bsd userland needs fixedincludes to build gcc, while - # linux does not. Both can dispose of them afterwards. - while read x ; do - grep -q 'It has been auto-edited by fixincludes from' "${x}" \ - && rm -f "${x}" - done < <(find gcc/include*/ -name '*.h') + # Re-enable fixincludes for >= GCC 13 + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107128 + if [[ ${GCCMAJOR} -lt 13 ]] ; then + # We remove the generated fixincludes, as they can cause things to break + # (ncurses, openssl, etc). We do not prevent them from being built, as + # in the following commit which we revert: + # https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.647&r2=1.648 + # This is because bsd userland needs fixedincludes to build gcc, while + # linux does not. Both can dispose of them afterwards. + while read x ; do + grep -q 'It has been auto-edited by fixincludes from' "${x}" \ + && rm -f "${x}" + done < <(find gcc/include*/ -name '*.h') + fi if is_jit ; then # See https://gcc.gnu.org/onlinedocs/gcc-11.3.0/jit/internals/index.html#packaging-notes |