[packages/mbedtls] - disable -Werror=stringop-overflow (build failed with gcc 11)

qboosh qboosh at pld-linux.org
Sun Jun 13 18:16:05 CEST 2021


commit 9735fbf40ee5210fd97d30491a82bb5e511e266b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 13 18:18:48 2021 +0200

    - disable -Werror=stringop-overflow (build failed with gcc 11)

 mbedtls.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/mbedtls.spec b/mbedtls.spec
index f72571a..2de020d 100644
--- a/mbedtls.spec
+++ b/mbedtls.spec
@@ -20,8 +20,9 @@ BuildRequires:	rpmbuild(macros) >= 1.605
 %{?with_zlib:BuildRequires:	zlib-devel}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# some false positives(?)
-%define		specflags -Wno-error=format-truncation
+# some false positives for format-truncation(?)
+# for stringop-overflow see library/ssl_tls.c /stringop-overflow (workaround no longer works with gcc 11)
+%define		specflags -Wno-error=format-truncation -Wno-error=stringop-overflow
 
 %description
 mbedTLS is a light-weight open source cryptographic and SSL/TLS
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mbedtls.git/commitdiff/9735fbf40ee5210fd97d30491a82bb5e511e266b



More information about the pld-cvs-commit mailing list