From f329e5dd448b8e618ae53167f1237e5c35fc31c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 20 May 2023 20:47:16 +0200 Subject: [PATCH] Make sure redhat-package-notes spec is skipped if _package_note_flags is undefined ... (rbhz#2184553) The proposed fix was provided by Adam Williamson. --- macros.package-notes-srpm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macros.package-notes-srpm b/macros.package-notes-srpm index 83583a1..3724897 100644 --- a/macros.package-notes-srpm +++ b/macros.package-notes-srpm @@ -20,7 +20,8 @@ # Overall status: 1 if looks like we can insert the note, 0 otherwise # Unfortunately "clang" does not support specs files so the note insertion is disabled when using it. -%_package_note_status %[0%{?_package_note_file:1} && 0%{?name:1} && "%_target_cpu" != "noarch" && "%{toolchain}" != "clang" ? 1 : 0] +%_package_note_status %{!?_package_note_flags:0}%{?_package_note_flags:%[0%{?_package_note_file:1} && 0%{?name:1} && "%_target_cpu" != "noarch" && "%{toolchain}" != "clang" ? 1 : 0]} + # The linker flags to be passed to the compiler to insert the notes section will # be created by the spec file, to avoid issues with quoting and escaping across