File project.diff of Package llvm21
--- llvm-do-not-install-static-libraries.patch.orig
+++ llvm-do-not-install-static-libraries.patch
@@ -2,10 +2,10 @@ This has similar effect as simply deleti
want after installation. By not copying them in the first place we reduce the
disk usage during installation.
-Index: clang-21.1.5.src/cmake/modules/AddClang.cmake
+Index: clang-21.1.6.src/cmake/modules/AddClang.cmake
===================================================================
---- a/clang-21.1.5.src/cmake/modules/AddClang.cmake
-+++ b/clang-21.1.5.src/cmake/modules/AddClang.cmake
+--- a/clang-21.1.6.src/cmake/modules/AddClang.cmake
++++ b/clang-21.1.6.src/cmake/modules/AddClang.cmake
@@ -106,12 +106,15 @@ macro(add_clang_library name)
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN)
@@ -73,10 +73,10 @@ Index: cmake/modules/AddLLVM.cmake
endif()
get_subproject_title(subproject_title)
-Index: lld-21.1.5.src/cmake/modules/AddLLD.cmake
+Index: lld-21.1.6.src/cmake/modules/AddLLD.cmake
===================================================================
---- a/lld-21.1.5.src/cmake/modules/AddLLD.cmake
-+++ b/lld-21.1.5.src/cmake/modules/AddLLD.cmake
+--- a/lld-21.1.6.src/cmake/modules/AddLLD.cmake
++++ b/lld-21.1.6.src/cmake/modules/AddLLD.cmake
@@ -14,13 +14,6 @@ macro(add_lld_library name)
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
@@ -91,10 +91,10 @@ Index: lld-21.1.5.src/cmake/modules/AddL
if (NOT CMAKE_CONFIGURATION_TYPES)
add_llvm_install_targets(install-${name}
DEPENDS ${name}
-Index: polly-21.1.5.src/cmake/polly_macros.cmake
+Index: polly-21.1.6.src/cmake/polly_macros.cmake
===================================================================
---- a/polly-21.1.5.src/cmake/polly_macros.cmake
-+++ b/polly-21.1.5.src/cmake/polly_macros.cmake
+--- a/polly-21.1.6.src/cmake/polly_macros.cmake
++++ b/polly-21.1.6.src/cmake/polly_macros.cmake
@@ -43,16 +43,18 @@
if (LLVM_POLLY_LINK_INTO_TOOLS)
set(exports EXPORT LLVMExports)
@@ -125,10 +125,10 @@ Index: polly-21.1.5.src/cmake/polly_macr
endmacro(add_polly_library)
macro(add_polly_loadable_module name)
-Index: polly-21.1.5.src/lib/CMakeLists.txt
+Index: polly-21.1.6.src/lib/CMakeLists.txt
===================================================================
---- a/polly-21.1.5.src/lib/CMakeLists.txt
-+++ b/polly-21.1.5.src/lib/CMakeLists.txt
+--- a/polly-21.1.6.src/lib/CMakeLists.txt
++++ b/polly-21.1.6.src/lib/CMakeLists.txt
@@ -109,7 +109,7 @@ set_target_properties(PollyCore PROPERTI
# It depends on all library it needs, such that with
# LLVM_POLLY_LINK_INTO_TOOLS=ON, its dependencies like PollyISL are linked as
--- llvm21.changes.orig
+++ llvm21.changes
@@ -1,4 +1,21 @@
-------------------------------------------------------------------
+Fri Nov 21 22:34:38 UTC 2025 - Aaron Puchert <aaronpuchert@alice-dsl.net>
+
+- Update to version 21.1.6.
+ * This release contains bug-fixes for the LLVM 21.1.0 release.
+ This release is API and ABI compatible with 21.1.0.
+- Require gcc and glibc-devel for clang. Clang has its own runtime,
+ but defaults to using the GCC runtime (and glibc). (boo#1253321)
+- Rebase llvm-do-not-install-static-libraries.patch.
+
+-------------------------------------------------------------------
+Mon Nov 17 11:58:44 UTC 2025 - Andreas Schwab <schwab@suse.de>
+
+- Add clang-getdistro-android.patch: Don't run distro detection
+ for Android target.
+- Don't XFAIL tools/clang/test/Driver/linux-ld.c.
+
+-------------------------------------------------------------------
Sat Nov 8 22:18:43 UTC 2025 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Update to version 21.1.5.
--- llvm21.spec.orig
+++ llvm21.spec
@@ -19,7 +19,7 @@
%global _sonum 21
%global _minor %{_sonum}.1
%global _soname %{_minor}%{?_rc:-rc%_rc}
-%global _patch_level 5
+%global _patch_level 6
%global _relver %{_minor}.%{_patch_level}
%global _version %_relver%{?_rc:-rc%_rc}
%global _itsme21 1
@@ -447,6 +447,8 @@ Patch25: check-no-llvm-exegesis.p
Patch27: clang-fix-openmp-test.patch
# PATCH-FIX-UPSTREAM: Fix test with x87 floating-point.
Patch28: llvm-fix-cov-test-i586.patch
+# PATCH-FIX-UPSTREAM Don't run distro detection for Android target
+Patch29: clang-getdistro-android.patch
BuildRequires: %{python_pkg}-base >= 3.8
BuildRequires: binutils-devel >= 2.21.90
BuildRequires: cmake >= 3.13.4
@@ -551,12 +553,12 @@ This package contains documentation for
Summary: CLANG frontend for LLVM
Group: Development/Languages/C and C++
URL: https://clang.llvm.org/
+Requires: gcc
+Requires: glibc-devel
Requires: libclang_rt%{_sonum}
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: clang-tools
-Recommends: gcc
-Recommends: glibc-devel
Recommends: libstdc++-devel
Suggests: clang%{_sonum}-doc
Suggests: libc++-devel
@@ -896,6 +898,7 @@ pushd clang-%{_version}.src
%patch -P 6 -p1
%patch -P 9 -p2
%patch -P 27 -p2
+%patch -P 29 -p1
# We hardcode openSUSE
rm unittests/Driver/DistroTest.cpp
@@ -1454,8 +1457,6 @@ rm ../test/tools/llvm-cov/{multithreaded
%endif
%{python_bin} bin/llvm-lit -sv test/
-# TODO: investigate!
-sed -i '1i// XFAIL: *' ../tools/clang/test/Driver/linux-ld.c
# On ppc, these tests fails with "fatal error: error in backend: Relocation type not implemented yet!"
sed -i '1i// XFAIL: target=powerpc-{{.*}}' ../tools/clang/test/Interpreter/{code-undo,execute{,-stmts,-weak},fail,global-dtor,lambda,simple-exception}.cpp
# Tests hang on armv6l.