From 43b5ca7f2bb9459e3c7cd55fffbf94ab68027a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Tue, 5 May 2020 00:17:40 +0200 Subject: [PATCH] Add symlink to %%{_libdir}/clang/%%{maj_ver} This is required for packages like ccls that hardcode the link to clang's resource directory to not require rebuilds on minor version bumps --- clang.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/clang.spec b/clang.spec index 37a2f90..c950914 100644 --- a/clang.spec +++ b/clang.spec @@ -4,7 +4,7 @@ %global min_ver 0 %global patch_ver 0 #%%global rc_ver 6 -%global baserelease 3 +%global baserelease 4 %global clang_tools_binaries \ %{_bindir}/clang-apply-replacements \ @@ -386,6 +386,15 @@ ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver} # Fix permission chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1* +# create a link to clang's resource directory that is "constant" across minor +# version bumps +# this is required for packages like ccls that hardcode the link to clang's +# resource directory to not require rebuilds on minor version bumps +# Fix for bugs like rhbz#1807574 +pushd %{buildroot}%{_libdir}/clang/ +ln -s %{version} %{maj_ver} +popd + %endif %check @@ -471,6 +480,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \ %endif %changelog +* Wed Jun 3 2020 Dan Čermák - 10.0.0-4 +- Add symlink to %%{_libdir}/clang/%%{maj_ver} for persistent access to the resource directory accross minor version bumps + * Mon May 25 2020 Miro Hrončok - 10.0.0-3 - Rebuilt for Python 3.9