diff --git a/anaconda.spec b/anaconda.spec index 968ac39137cf18cca88ef5b7aa7d5f3b27edb8b0..18907ad32cef7d371230fa351da2fb2b5d4f9636 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,7 +1,7 @@ %define _empty_manifest_terminate_build 0 Name: anaconda Version: 36.16.5 -Release: 26 +Release: 27 Summary: Graphical system installer License: GPLv2+ and MIT URL: http://fedoraproject.org/wiki/Anaconda @@ -57,6 +57,7 @@ Patch6009: backport-Fix-the-systemd-generator-for-systemd-253-2165433.patch Patch9023: bugfix-change-root-and-storage-interface-shows.patch Patch9024: bugfix-revert-Set-default-entry-to-the-BLS-id-instead-of-the-entry-index.patch +Patch9025: remove-fanalyzer-option-for-clang.patch %define dasbusver 1.3 %define dbusver 1.2.3 @@ -311,6 +312,12 @@ update-desktop-database &> /dev/null || : %{_prefix}/libexec/anaconda/dd_* %changelog +* Sun Feb 18 2024 liyunfei - 36.16.5-27 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: remove unsupported option -fanalyzer for clang build. + * Sat Dec 23 2023 sunhai - 36.16.5-26 - Type:bugfix - ID:NA diff --git a/remove-fanalyzer-option-for-clang.patch b/remove-fanalyzer-option-for-clang.patch new file mode 100644 index 0000000000000000000000000000000000000000..195b792d27dfee18bcb6343f1ed4234ccafee68b --- /dev/null +++ b/remove-fanalyzer-option-for-clang.patch @@ -0,0 +1,47 @@ +From db50c52a267b5939e23224e47b09496209716327 Mon Sep 17 00:00:00 2001 +From: liyunfei +Date: Thu, 22 Feb 2024 16:34:26 +0800 +Subject: [PATCH] remove fanalyzer option for clang + +--- + configure | 5 ++++- + configure.ac | 5 ++++- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index 05e4a1d..b5361f6 100644 +--- a/configure ++++ b/configure +@@ -15536,8 +15536,11 @@ fi + SHUT_UP_GCC="-Wno-unused-result" + + # Add remaining compiler flags we want to use +-CFLAGS="$CFLAGS -Wall -Werror $SHUT_UP_GCC -fanalyzer" ++CFLAGS="$CFLAGS -Wall -Werror $SHUT_UP_GCC" + ++if [[ "$CC" != "clang" ]]; then ++ CFLAGS="$CFLAGS -fanalyzer" ++fi + + # Perform arch related tests + +diff --git a/configure.ac b/configure.ac +index 42cdae6..3eda58b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -97,8 +97,11 @@ ANACONDA_PKG_CHECK_MODULES([LIBARCHIVE], [libarchive >= 3.0.4]) + SHUT_UP_GCC="-Wno-unused-result" + + # Add remaining compiler flags we want to use +-CFLAGS="$CFLAGS -Wall -Werror $SHUT_UP_GCC -fanalyzer" ++CFLAGS="$CFLAGS -Wall -Werror $SHUT_UP_GCC" + ++if [[ "$CC" != "clang" ]]; then ++ CFLAGS="$CFLAGS -fanalyzer" ++fi + + # Perform arch related tests + AC_CANONICAL_BUILD +-- +2.42.0.windows.2 +