From 5d9e2b66ed78a0c0abf24beb36949fd419509385 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Fri, 28 Jan 2022 11:41:01 +0100 Subject: [PATCH] Fix rpm build warning/error: absolute symlink I noticed that warnings and errors show up in the `RPM build errors:` output. When I produced an error I did see this warning about absolute symlink showing up: ``` absolute symlink: /usr/lib64/bfd-plugins/LLVMgold.so -> /usr/lib64/LLVMgold.so ``` The upstream RPM fix to log warnings and errors separately is here: https://github.com/rpm-software-management/rpm/pull/1590 Thanks to @sergesanspaille for the help. --- llvm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 81d9497..1a9316b 100644 --- a/llvm.spec +++ b/llvm.spec @@ -350,7 +350,7 @@ cp -R utils/UpdateTestChecks %{install_srcdir}/utils/ %if %{with gold} # Add symlink to lto plugin in the binutils plugin directory. %{__mkdir_p} %{buildroot}%{_libdir}/bfd-plugins/ -ln -s %{_libdir}/LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/ +ln -s -t %{buildroot}%{_libdir}/bfd-plugins/ ../LLVMgold.so %endif %else