[packages/llvm] - pretrans for libclc to replace dir by symlink

qboosh qboosh at pld-linux.org
Sat May 23 06:57:27 CEST 2026


commit 5746710bbfc83cb14bf061a357b420eb8a277dcc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 23 06:57:27 2026 +0200

    - pretrans for libclc to replace dir by symlink

 llvm.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/llvm.spec b/llvm.spec
index 2312e75..70bb536 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1178,6 +1178,12 @@ rm -rf $RPM_BUILD_ROOT
 %post	-n lldb -p /sbin/ldconfig
 %postun	-n lldb -p /sbin/ldconfig
 
+%pretrans libclc
+# used to be dir in llvm-libclc.spec, to be replaced by symlink
+if [ -d %{_datadir}/clc ]; then
+	rm -rf %{_datadir}/clc
+fi
+
 %post	libcxx -p /sbin/ldconfig
 %postun	libcxx -p /sbin/ldconfig
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/5746710bbfc83cb14bf061a357b420eb8a277dcc



More information about the pld-cvs-commit mailing list