Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package llvm15 for openSUSE:Factory checked 
in at 2024-11-18 20:01:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm15 (Old)
 and      /work/SRC/openSUSE:Factory/.llvm15.new.2017 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm15"

Mon Nov 18 20:01:19 2024 rev:16 rq:1224728 version:15.0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm15/llvm15.changes    2024-08-25 
12:10:11.155507133 +0200
+++ /work/SRC/openSUSE:Factory/.llvm15.new.2017/llvm15.changes  2024-11-18 
20:02:08.527470323 +0100
@@ -1,0 +2,8 @@
+Sat Nov 16 22:38:02 UTC 2024 - Aaron Puchert <aaronpuch...@alice-dsl.net>
+
+- Apply clang-shlib-symbol-versioning.patch to add symbol versions
+  to libclang-cpp.so similar to libLLVM.so. This is required when
+  multiple versions of the library are loaded into the same
+  process. (boo#1219405, boo#1221183, boo#1233220)
+
+-------------------------------------------------------------------

New:
----
  clang-shlib-symbol-versioning.patch

BETA DEBUG BEGIN:
  New:
- Apply clang-shlib-symbol-versioning.patch to add symbol versions
  to libclang-cpp.so similar to libLLVM.so. This is required when
BETA DEBUG END:

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

Other differences:
------------------
++++++ llvm15.spec ++++++
--- /var/tmp/diff_new_pack.XoTYXM/_old  2024-11-18 20:02:10.323545445 +0100
+++ /var/tmp/diff_new_pack.XoTYXM/_new  2024-11-18 20:02:10.327545613 +0100
@@ -394,6 +394,8 @@
 Patch36:        clang-test-xfail-gnuless-triple.patch
 # Fix lowering of "icmp uge <4 x i32> zeroinitializer, ..." on armv7. 
(https://reviews.llvm.org/D136447?id=469567, boo#1204267, 
gh#llvm/llvm-project#58514)
 Patch37:        llvm-armv7-fix-vector-compare-with-zero-lowering.patch
+# PATCH-FIX-UPSTREAM: Use symbol versioning also for libclang-cpp.so.
+Patch38:        clang-shlib-symbol-versioning.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  cmake >= 3.13.4
 BuildRequires:  fdupes
@@ -840,6 +842,7 @@
 %patch -P 9 -p2
 %patch -P 18 -p2
 %patch -P 36 -p2
+%patch -P 38 -p2
 
 # We hardcode openSUSE
 rm unittests/Driver/DistroTest.cpp

++++++ clang-shlib-symbol-versioning.patch ++++++
diff --git a/clang/tools/clang-shlib/CMakeLists.txt 
b/clang/tools/clang-shlib/CMakeLists.txt
index aa7fcd1efed4..054c7d59ec34 100644
--- a/clang/tools/clang-shlib/CMakeLists.txt
+++ b/clang/tools/clang-shlib/CMakeLists.txt
@@ -48,6 +48,14 @@ add_clang_library(clang-cpp
                   ${_OBJECTS}
                   LINK_LIBS
                   ${_DEPS})
+
+configure_file(simple_version_script.map.in simple_version_script.map)
+
+if (NOT LLVM_LINKER_IS_SOLARISLD AND NOT MINGW)
+  # Solaris ld does not accept global: *; so there is no way to version *all* 
global symbols
+  target_link_options(clang-cpp PRIVATE 
LINKER:--version-script,${CMAKE_CURRENT_BINARY_DIR}/simple_version_script.map)
+endif()
+
 # Optimize function calls for default visibility definitions to avoid PLT and
 # reduce dynamic relocations.
 if (NOT APPLE AND NOT MINGW)
diff --git a/clang/tools/clang-shlib/simple_version_script.map.in 
b/clang/tools/clang-shlib/simple_version_script.map.in
new file mode 100644
index 000000000000..cb2306d1f596
--- /dev/null
+++ b/clang/tools/clang-shlib/simple_version_script.map.in
@@ -0,0 +1 @@
+@LLVM_SHLIB_SYMBOL_VERSION@ { global: *; };

Reply via email to