commit: 68c54ac9d7d002bdfdb9e3eb87feeed6c809e851 Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Fri Jun 6 15:58:29 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jun 8 04:53:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68c54ac9
net-misc/smbc: force gcc too many nested functions to be fixed, it's not necessary to fix them unless absolutely needed, since current version is released in 2005. Closes: https://bugs.gentoo.org/871594 Closes: https://bugs.gentoo.org/885881 Closes: https://bugs.gentoo.org/913559 Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42478 Closes: https://github.com/gentoo/gentoo/pull/42478 Signed-off-by: Sam James <sam <AT> gentoo.org> net-misc/smbc/smbc-1.2.2-r4.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net-misc/smbc/smbc-1.2.2-r4.ebuild b/net-misc/smbc/smbc-1.2.2-r4.ebuild index 6799dc8a4a58..d66f051da50a 100644 --- a/net-misc/smbc/smbc-1.2.2-r4.ebuild +++ b/net-misc/smbc/smbc-1.2.2-r4.ebuild @@ -34,6 +34,12 @@ PATCHES=( ) src_prepare() { + if ! tc-is-gcc; then + ewarn "force gcc because too many nested functions which is unsupported by clang" + export CC=${CHOST}-gcc + tc-is-gcc || die "tc-is-gcc failed in spite of CC=${CC}" + fi + default mv configure.{in,ac} || die # for some reason some build 32bit x86 objects are bundled
