Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package llvm21 for openSUSE:Factory checked 
in at 2026-03-26 21:07:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm21 (Old)
 and      /work/SRC/openSUSE:Factory/.llvm21.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm21"

Thu Mar 26 21:07:31 2026 rev:12 rq:1342292 version:21.1.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm21/llvm21.changes    2026-03-12 
22:22:16.346273215 +0100
+++ /work/SRC/openSUSE:Factory/.llvm21.new.8177/llvm21.changes  2026-03-27 
06:43:41.611580103 +0100
@@ -1,0 +2,5 @@
+Wed Mar 11 15:54:29 UTC 2026 - Andreas Schwab <[email protected]>
+
+- clang-riscv-triple.patch: Add riscv64-suse-linux to RISCV64Triples
+
+-------------------------------------------------------------------

New:
----
  clang-riscv-triple.patch

----------(New B)----------
  New:
- clang-riscv-triple.patch: Add riscv64-suse-linux to RISCV64Triples
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ llvm21.spec ++++++
--- /var/tmp/diff_new_pack.15XEbW/_old  2026-03-27 06:43:43.559660590 +0100
+++ /var/tmp/diff_new_pack.15XEbW/_new  2026-03-27 06:43:43.563660755 +0100
@@ -459,6 +459,8 @@
 Patch29:        clang-getdistro-android.patch
 # PATCH-FIX-UPSTREAM (?) Link bolt with libLLVM.so
 Patch30:        bolt-link-shared-library.patch
+# PATCH-FIX-UPSTREAM Add missing triple to RISCV64Triples 
(gh#llvm/llvm-project#164228)
+Patch31:        clang-riscv-triple.patch
 BuildRequires:  %{python_pkg}-base >= 3.8
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  cmake >= 3.13.4
@@ -925,6 +927,7 @@
 %patch -P 9 -p2
 %patch -P 27 -p2
 %patch -P 29 -p1
+%patch -P 31 -p2
 
 # We hardcode openSUSE
 rm unittests/Driver/DistroTest.cpp



++++++ clang-riscv-triple.patch ++++++
>From b8f0a54020fc65ed47e88ed9d949fd8fcf0fe149 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <[email protected]>
Date: Mon, 20 Oct 2025 14:20:19 +0200
Subject: [PATCH] [Driver] Add missing triple to RISCV64Triples

Fixes #164228
---
 clang/lib/Driver/ToolChains/Gnu.cpp | 4 ++--
 clang/test/Driver/linux-ld.c        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp 
b/clang/lib/Driver/ToolChains/Gnu.cpp
index f5e265585743..a3c4fb823018 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2436,8 +2436,8 @@ void 
Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
   static const char *const RISCV32Triples[] = {"riscv32-unknown-linux-gnu",
                                                "riscv32-unknown-elf"};
   static const char *const RISCV64LibDirs[] = {"/lib64", "/lib"};
-  static const char *const RISCV64Triples[] = {"riscv64-unknown-linux-gnu",
-                                               "riscv64-unknown-elf"};
+  static const char *const RISCV64Triples[] = {
+      "riscv64-unknown-linux-gnu", "riscv64-suse-linux", 
"riscv64-unknown-elf"};
 
   static const char *const SPARCv8LibDirs[] = {"/lib32", "/lib"};
   static const char *const SPARCv8Triples[] = {"sparc-linux-gnu",
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c
index be3293cdc253..9da0b79aa587 100644
--- a/clang/test/Driver/linux-ld.c
+++ b/clang/test/Driver/linux-ld.c
@@ -711,7 +711,7 @@
 // RUN:     --sysroot=%S/Inputs/opensuse_tumbleweed_riscv64_tree \
 // RUN:   | FileCheck --check-prefix=CHECK-OPENSUSE-TW-RISCV64 %s
 // RUN: %clang -### %s -no-pie 2>&1 \
-// RUN:     --target=riscv64-suse-linux -rtlib=platform --unwindlib=platform \
+// RUN:     --target=riscv64-unknown-linux-gnu -rtlib=platform 
--unwindlib=platform \
 // RUN:     --sysroot=%S/Inputs/opensuse_tumbleweed_riscv64_tree \
 // RUN:   | FileCheck --check-prefix=CHECK-OPENSUSE-TW-RISCV64 %s
 // CHECK-OPENSUSE-TW-RISCV64: "{{.*}}ld{{(.exe)?}}" 
"--sysroot=[[SYSROOT:[^"]+]]"
-- 
2.52.0

Reply via email to