From 3ab7b31fc788cb0d0c4bab3e116d4c55ef957a70 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 2 Apr 2024 00:31:38 +0000 Subject: [PATCH] Install clang config file on f38 --- clang.cfg | 2 +- install.spec.inc | 5 +++++ sources.spec.inc | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/clang.cfg b/clang.cfg index bee5a7a..08bf8e0 100644 --- a/clang.cfg +++ b/clang.cfg @@ -1,3 +1,3 @@ # Drop the following option after debugedit adds support to DWARF-5: # https://sourceware.org/bugzilla/show_bug.cgi?id=28728 --gdwarf-4 +-gdwarf-4 -g0 diff --git a/install.spec.inc b/install.spec.inc index 7a96b0e..2ac3d00 100644 --- a/install.spec.inc +++ b/install.spec.inc @@ -180,6 +180,11 @@ chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1* # populated by other packages mkdir -p %{buildroot}%{install_libdir}/clang/%{maj_ver}/{include,lib,share}/ +%if 0%{?fedora} == 38 +# Install config file +mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ +mv %{SOURCE2006} %{buildroot}%{_sysconfdir}/%{name}/%{_target_platform}.cfg +%endif %if %{without compat_build} # Add a symlink in /usr/bin to clang-format-diff diff --git a/sources.spec.inc b/sources.spec.inc index b409398..8354718 100644 --- a/sources.spec.inc +++ b/sources.spec.inc @@ -9,6 +9,7 @@ Source1006: release-keys.asc %if %{without compat_build} Source2005: macros.%{pkg_name_clang} %endif +Source2006: clang.cfg Source2006: clang.cfg