File assume-opensuse.patch of Package llvm22

Index: clang/lib/Driver/Distro.cpp
===================================================================
--- clang/lib/Driver/Distro.cpp
+++ clang/lib/Driver/Distro.cpp
@@ -93,6 +93,8 @@ static Distro::DistroType DetectLsbRelease...
 }
 
 static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
+    return Distro::OpenSUSE;
+/*
   Distro::DistroType Version = Distro::UnknownDistro;

   // Newer freedesktop.org's compilant systemd-based systems
@@ -200,7 +202,7 @@ static Distro::DistroType DetectDistro(l
   if (VFS.exists("/etc/gentoo-release"))
     return Distro::Gentoo;
 
-  return Distro::UnknownDistro;
+  return Distro::UnknownDistro;*/
 }
 
 static Distro::DistroType GetDistro(llvm::vfs::FileSystem &VFS,
Index: clang/unittests/Driver/CMakeLists.txt
===================================================================
--- clang/unittests/Driver/CMakeLists.txt
+++ clang/unittests/Driver/CMakeLists.txt
@@ -1,5 +1,4 @@ set(LLVM_LINK_COMPONENTS
 add_clang_unittest(ClangDriverTests
-  DistroTest.cpp
   DXCModeTest.cpp
   GCCVersionTest.cpp
   ToolChainTest.cpp
openSUSE Build Service is sponsored by