From 2638a1181b39da5df436d33ac17799ab62f4368f Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Mon, 14 Feb 2022 22:29:12 +0000 Subject: [PATCH] Disable -fanalyzer since it's broken and pragmas don't work See-also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104370 Signed-off-by: Robbie Harwood --- 0006-Disable-analyzer-until-it-works.patch | 26 ++++++++++++++++++++++ pesign.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0006-Disable-analyzer-until-it-works.patch diff --git a/0006-Disable-analyzer-until-it-works.patch b/0006-Disable-analyzer-until-it-works.patch new file mode 100644 index 0000000..4ed8cbf --- /dev/null +++ b/0006-Disable-analyzer-until-it-works.patch @@ -0,0 +1,26 @@ +From 288b05dcd5a3b48836c4904e38b14e38a0cdfa07 Mon Sep 17 00:00:00 2001 +From: Robbie Harwood +Date: Mon, 14 Feb 2022 17:26:19 -0500 +Subject: [PATCH] Disable analyzer until it works + +See-also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104370 +Signed-off-by: Robbie Harwood +--- + Make.defaults | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Make.defaults b/Make.defaults +index 130c1ee..5e56a76 100644 +--- a/Make.defaults ++++ b/Make.defaults +@@ -36,7 +36,6 @@ DIAGFLAGS ?= -fmessage-length=0 \ + -fdiagnostics-color=always \ + -fdiagnostics-format=text \ + -fdiagnostics-show-cwe \ +- -fanalyzer \ + $(call enabled,ENABLE_LEAK_CHECKER,-Wno-analyzer-malloc-leak,) + AS ?= $(CROSS_COMPILE)as + AR ?= $(CROSS_COMPILE)$(if $(filter $(CC),clang),llvm-ar,$(notdir $(CC))-ar) +-- +2.34.1 + diff --git a/pesign.spec b/pesign.spec index 4905201..583c18b 100644 --- a/pesign.spec +++ b/pesign.spec @@ -3,7 +3,7 @@ Name: pesign Summary: Signing utility for UEFI binaries Version: 114 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL-2.0-only URL: https://github.com/rhboot/pesign @@ -160,6 +160,10 @@ certutil -d %{_sysconfdir}/pki/pesign/ -X -L > /dev/null %{python3_sitelib}/mockbuild/plugins/pesign.* %changelog +* Mon Feb 14 2022 Robbie Harwood - 114-4 +- Disable -fanalyzer since it's broken and pragmas don't work +- See-also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104370 + * Mon Feb 14 2022 Robbie Harwood - 114-3 - Fix explicit NULL deref when daemonizing