commit:     cbf8f467f4d321163fe941fe7b5bc186c968ae40
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Thu May 29 09:02:04 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  8 04:56:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbf8f467

sys-devel/m4: avoid build failures with -Werror=format-security

While gettext made a fix for building with -Werror=format-security
combined with USE=-nls, it only works with gcc.
Backporting this change would be more trouble than it is worth and
still require conditional filter-flags for clang.
Instead of trying to accommodate different compilers and USE flag
combinations just ignore -Werror=format-security unconditionally.

Closes: https://bugs.gentoo.org/955947
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/42320
Closes: https://github.com/gentoo/gentoo/pull/42320
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/m4/m4-1.4.20.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-devel/m4/m4-1.4.20.ebuild b/sys-devel/m4/m4-1.4.20.ebuild
index 169c273e59e9..377ed7eda7fd 100644
--- a/sys-devel/m4/m4-1.4.20.ebuild
+++ b/sys-devel/m4/m4-1.4.20.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/m4.asc
-inherit verify-sig
+inherit flag-o-matic verify-sig
 
 DESCRIPTION="GNU macro processor"
 HOMEPAGE="https://www.gnu.org/software/m4/m4.html";
@@ -57,6 +57,9 @@ src_prepare() {
 }
 
 src_configure() {
+       # see https://bugs.gentoo.org/955947
+       append-flags -Wno-error=format-security
+
        local -a myeconfargs=(
                --enable-changeword
 

Reply via email to