Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
e8affce36f Make sure redhat-package-notes spec is skipped if _package_note_flags is undefined
... (rbhz#2184553)

The proposed fix was provided by Adam Williamson.

(cherry picked from commit f329e5dd44)
2023-05-20 20:49:42 +02:00

View file

@ -20,7 +20,8 @@
# Overall status: 1 if looks like we can insert the note, 0 otherwise # 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. # 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 # 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 # be created by the spec file, to avoid issues with quoting and escaping across