commit:     da3ff483ea34dfe106f8b2184802d5e07386c684
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 14 04:21:25 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 14 04:21:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da3ff483

net-libs/nodejs: pass -Wno-template-id-cdtor

The -Wtemplate-id-cdtor warnings are incredibly noisy and make the build.log
far larger than it needs to be.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/nodejs/nodejs-22.12.0-r1.ebuild | 2 ++
 net-libs/nodejs/nodejs-99999999.ebuild   | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/net-libs/nodejs/nodejs-22.12.0-r1.ebuild 
b/net-libs/nodejs/nodejs-22.12.0-r1.ebuild
index 31ac08005b1e..d306c76b0603 100644
--- a/net-libs/nodejs/nodejs-22.12.0-r1.ebuild
+++ b/net-libs/nodejs/nodejs-22.12.0-r1.ebuild
@@ -119,6 +119,8 @@ src_configure() {
 
        # LTO compiler flags are handled by configure.py itself
        filter-lto
+       # The warnings are *so* noisy and make build.logs massive
+       append-cxxflags $(test-flags-CXX -Wno-template-id-cdtor)
        # GCC with -ftree-vectorize miscompiles node's exception handling code
        # causing it to fail to catch exceptions sometimes
        # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116057

diff --git a/net-libs/nodejs/nodejs-99999999.ebuild 
b/net-libs/nodejs/nodejs-99999999.ebuild
index e1343e263acb..6b0ec506c0a3 100644
--- a/net-libs/nodejs/nodejs-99999999.ebuild
+++ b/net-libs/nodejs/nodejs-99999999.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
@@ -119,6 +119,8 @@ src_configure() {
 
        # LTO compiler flags are handled by configure.py itself
        filter-lto
+       # The warnings are *so* noisy and make build.logs massive
+       append-cxxflags $(test-flags-CXX -Wno-template-id-cdtor)
        # GCC with -ftree-vectorize miscompiles node's exception handling code
        # causing it to fail to catch exceptions sometimes
        # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116057

Reply via email to