From 67dca78b6c74d29b35443232665cfe5ea97b56d4 Mon Sep 17 00:00:00 2001 From: Christopher Byrne Date: Tue, 7 Jul 2026 18:39:51 -0500 Subject: [PATCH] app-crypt/tpm2-openssl: Remove forced -Werror Closes: https://bugs.gentoo.org/976265 Signed-off-by: Christopher Byrne Part-of: https://github.com/gentoo/gentoo/pull/46527 Closes: https://github.com/gentoo/gentoo/pull/46527 Signed-off-by: Sam James --- .../files/tpm2-openssl-1.3.0-no-Werror.patch | 13 +++++++++++++ app-crypt/tpm2-openssl/tpm2-openssl-1.3.0.ebuild | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app-crypt/tpm2-openssl/files/tpm2-openssl-1.3.0-no-Werror.patch diff --git a/app-crypt/tpm2-openssl/files/tpm2-openssl-1.3.0-no-Werror.patch b/app-crypt/tpm2-openssl/files/tpm2-openssl-1.3.0-no-Werror.patch new file mode 100644 index 0000000000000..dca5fcb34e72d --- /dev/null +++ b/app-crypt/tpm2-openssl/files/tpm2-openssl-1.3.0-no-Werror.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index c531141..786ee22 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -42,7 +42,7 @@ else + @CODE_COVERAGE_RULES@ + endif + +-COMMON_CFLAGS = -Werror -Wall $(CRYPTO_CFLAGS) ++COMMON_CFLAGS = -Wall $(CRYPTO_CFLAGS) + COMMON_LDFLAGS = + if WITH_ASAN + COMMON_CFLAGS += -O1 -g -fsanitize=address -fno-omit-frame-pointer diff --git a/app-crypt/tpm2-openssl/tpm2-openssl-1.3.0.ebuild b/app-crypt/tpm2-openssl/tpm2-openssl-1.3.0.ebuild index a8b8ade64d07f..65b8e29b75f62 100644 --- a/app-crypt/tpm2-openssl/tpm2-openssl-1.3.0.ebuild +++ b/app-crypt/tpm2-openssl/tpm2-openssl-1.3.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,6 +31,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${PN}-1.1.1-build-Fix-undefined-references-when-using-slibtool.patch" "${FILESDIR}/${PN}-1.3.0-tests-remove-systemd-ism.patch" + "${FILESDIR}/${PN}-1.3.0-no-Werror.patch" ) src_prepare() {