From 4e1d9c53c815e18cba71d3301ae0e78ea4ae1954 Mon Sep 17 00:00:00 2001 From: Nikita Shubin Date: Thu, 2 Sep 2021 08:41:09 +0000 Subject: [PATCH] sys-devel/gcc: regression: fenv_t not declared https://gcc.gnu.org/bugzilla//show_bug.cgi?id=80196 Signed-off-by: Nikita Shubin --- sys-devel/gcc/files/gcc-fix-stdinc.patch | 26 ++++++++++++++++++++++++ sys-devel/gcc/gcc-11.2.0-r1.ebuild | 18 ++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 sys-devel/gcc/files/gcc-fix-stdinc.patch create mode 100644 sys-devel/gcc/gcc-11.2.0-r1.ebuild diff --git a/sys-devel/gcc/files/gcc-fix-stdinc.patch b/sys-devel/gcc/files/gcc-fix-stdinc.patch new file mode 100644 index 000000000..f1ec338e2 --- /dev/null +++ b/sys-devel/gcc/files/gcc-fix-stdinc.patch @@ -0,0 +1,26 @@ +diff --git a/configure b/configure +index 6157a8c87fb..2a4a05b4edf 100755 +--- a/configure ++++ b/configure +@@ -16653,7 +16653,7 @@ else + fi + + +-RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" ++RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET -nostdinc++" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 + $as_echo_n "checking where to find the target ar... " >&6; } +diff --git a/configure.ac b/configure.ac +index 2ff48941754..01ecc8c42d9 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3515,7 +3515,7 @@ ACX_CHECK_INSTALLED_TARGET_TOOL(STRIP_FOR_TARGET, strip) + ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres) + ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc) + +-RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" ++RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET -nostdinc++" + + GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar]) + GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new]) diff --git a/sys-devel/gcc/gcc-11.2.0-r1.ebuild b/sys-devel/gcc/gcc-11.2.0-r1.ebuild new file mode 100644 index 000000000..6c444b931 --- /dev/null +++ b/sys-devel/gcc/gcc-11.2.0-r1.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PATCH_VER="1" + +inherit toolchain + +src_prepare() { + toolchain_src_prepare + eapply "${FILESDIR}/${PN}-fix-stdinc.patch" +} + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND="" +BDEPEND="${CATEGORY}/binutils" -- 2.30.2