Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2019-02-08 12:11:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm5 (Old)
 and      /work/SRC/openSUSE:Factory/.llvm5.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm5"

Fri Feb  8 12:11:22 2019 rev:15 rq:672114 version:5.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes      2018-12-21 
08:22:20.673518005 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new.28833/llvm5.changes   2019-02-08 
12:11:36.525509622 +0100
@@ -1,0 +2,6 @@
+Wed Feb  6 10:27:50 UTC 2019 - [email protected]
+
+- Add lldb-fix-build-with-python-3.7.patch
+  * Fix build with python 3.7
+
+-------------------------------------------------------------------

New:
----
  lldb-fix-build-with-python-3.7.patch

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

Other differences:
------------------
++++++ llvm5.spec ++++++
--- /var/tmp/diff_new_pack.tQbwM2/_old  2019-02-08 12:11:38.577508853 +0100
+++ /var/tmp/diff_new_pack.tQbwM2/_new  2019-02-08 12:11:38.577508853 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package llvm5
 #
-# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -100,6 +100,7 @@
 Patch16:        n_clang_allow_BUILD_SHARED_LIBRARY.patch
 Patch17:        llvm-build-tests-with-rtti.patch
 Patch18:        llvm_build_tablegen_component_as_shared_library.patch
+Patch19:        lldb-fix-build-with-python-3.7.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -518,6 +519,7 @@
 pushd lldb-%{version}.src
 %patch11 -p1
 %patch12 -p1
+%patch19 -p1
 # Set LLDB revision
 sed -i s,LLDB_REVISION,\"%{_llvm_revision}\",g source/lldb.cpp #"
 popd

++++++ lldb-fix-build-with-python-3.7.patch ++++++
>From acbe5dc5cf0cf6852f02794987178595051a3a4e Mon Sep 17 00:00:00 2001
From: Michal Srb <[email protected]>
Date: Wed, 25 Jul 2018 10:08:58 +0200
Subject: [PATCH] Fix build with python 3.7.

The PyUnicode_AsUTF8AndSize now returns const char*, so we can not cast
it to char*. However, the PyString_AsStringAndSize from python 2 still
needs char**.
---
 source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp 
b/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index 6a9d57d5a..3382813a5 100644
--- a/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -399,11 +399,11 @@ llvm::StringRef PythonString::GetString() const {
     return llvm::StringRef();
 
   Py_ssize_t size;
-  char *c;
 
 #if PY_MAJOR_VERSION >= 3
-  c = PyUnicode_AsUTF8AndSize(m_py_obj, &size);
+  const char *c = PyUnicode_AsUTF8AndSize(m_py_obj, &size);
 #else
+  char *c;
   PyString_AsStringAndSize(m_py_obj, &c, &size);
 #endif
   return llvm::StringRef(c, size);
-- 
2.16.4


Reply via email to