diff --git a/debian/changelog b/debian/changelog index 6166e748..43e75f22 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,15 @@ llvm-toolchain-snapshot (1:11~+20200119104557+84217ad6611-1~exp1) UNRELEASED; urgency=medium + [ Sylvestre Ledru ] * experimental New snapshot release - 11 * Merge recent 9 changes (python 3 and testsuite mostly) + [ Gianfranco Costamagna ] + * fix lldb-10 -P path print (Closes: #945445) + * Fix lldb python installation path and symlinks + * Drop version constraint from libffi-dev library, satisfied since + old-old-stable + -- Sylvestre Ledru Sat, 04 Jan 2020 10:56:15 +0100 llvm-toolchain-snapshot (1:10~++20191229111838+6991d5728f1-1~exp1) experimental; urgency=medium @@ -155,10 +162,11 @@ llvm-toolchain-snapshot (1:10~svn366440-1~exp1) experimental; urgency=medium -- Sylvestre Ledru Thu, 18 Jul 2019 18:58:32 +0200 -llvm-toolchain-9 (1:9.0.1-7) UNRELEASED; urgency=medium +llvm-toolchain-9 (1:9.0.1-7) unstable; urgency=medium * Add dependency on libclang-cpp-9 from llvm-9-dev (Closes: #946761) * fix lldb-9 -P path print (Closes: #945445) + * Fix lldb python installation path and symlinks -- Gianfranco Costamagna Tue, 21 Jan 2020 13:05:06 +0100 diff --git a/debian/control b/debian/control index def0a1f8..9e98b817 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Rules-Requires-Root: no Maintainer: LLVM Packaging Team Uploaders: Sylvestre Ledru Build-Depends: debhelper (>= 9.0), cmake, chrpath, texinfo, sharutils, - libffi-dev (>= 3.0.9), + libffi-dev, lsb-release, patchutils, diffstat, xz-utils, python3-dev, libedit-dev, libncurses5-dev, swig, python3-six, python3-sphinx (>= 1.3.6), binutils-dev, @@ -323,7 +323,7 @@ Description: Modular compiler and toolchain technologies, IR interpreter Package: llvm-10-dev Architecture: any -Depends: ${shlibs:Depends}, libffi-dev (>= 3.0.10), ${misc:Depends}, +Depends: ${shlibs:Depends}, libffi-dev, ${misc:Depends}, llvm-10 (= ${binary:Version}), libllvm10 (= ${binary:Version}), libtinfo-dev, llvm-10-tools (= ${binary:Version}), libclang-cpp10 (= ${binary:Version}), libz3-dev Description: Modular compiler and toolchain technologies, libraries and headers diff --git a/debian/patches/print-lldb-path.patch b/debian/patches/print-lldb-path.patch index ad36a871..6b43448b 100644 --- a/debian/patches/print-lldb-path.patch +++ b/debian/patches/print-lldb-path.patch @@ -1,18 +1,14 @@ Author: Gianfranco Costamagna Last-Update: 2020-01-21 -Index: llvm-toolchain-9-9.0.1/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp -=================================================================== ---- llvm-toolchain-9-9.0.1.orig/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp -+++ llvm-toolchain-9-9.0.1/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp -@@ -337,8 +337,8 @@ - llvm::sys::path::append(path, style, LLDB_PYTHON_RELATIVE_LIBDIR); - #else - llvm::sys::path::append(path, style, -- "python" + llvm::Twine(PY_MAJOR_VERSION) + "." + -- llvm::Twine(PY_MINOR_VERSION), -+ "python" /*+ llvm::Twine(PY_MAJOR_VERSION)*/ + "3" -+ /*llvm::Twine(PY_MINOR_VERSION)*/, - "site-packages"); - #endif - } +--- llvm-toolchain-snapshot-10~++20191229111838+6991d5728f1.orig/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp ++++ llvm-toolchain-snapshot-10~++20191229111838+6991d5728f1/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +@@ -353,6 +353,8 @@ void ScriptInterpreterPython::ComputePyt + // x86_64, or bin on Windows). + llvm::sys::path::remove_filename(path); + llvm::sys::path::append(path, LLDB_PYTHON_RELATIVE_LIBDIR); ++ // remove double "lib/lib" statement ++ std::replace(path.begin(), path.end(), '/lib/lib/', '/lib/'); + + #if defined(_WIN32) + // This will be injected directly through FileSpec.GetDirectory().SetString(), diff --git a/debian/python3-lldb-X.Y.links.in b/debian/python3-lldb-X.Y.links.in new file mode 100644 index 00000000..2639ac09 --- /dev/null +++ b/debian/python3-lldb-X.Y.links.in @@ -0,0 +1,4 @@ +usr/lib/@DEB_HOST_MULTIARCH@/libLLVM-@LLVM_VERSION_FULL@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/python3/dist-packages/lldb/libLLVM-@LLVM_VERSION_FULL@.so.1 +usr/lib/@DEB_HOST_MULTIARCH@/libLLVM-@LLVM_VERSION_FULL@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/python3/dist-packages/lldb/libLLVM-@LLVM_VERSION@.so.1 +usr/lib/@DEB_HOST_MULTIARCH@/liblldb-@LLVM_VERSION@.so.1 usr/lib/llvm-@LLVM_VERSION@/lib/python3/dist-packages/lldb/_lldb.so +usr/lib/llvm-@LLVM_VERSION@/lib/python3/dist-packages/lldb/ usr/lib/python3/dist-packages/lldb diff --git a/debian/rules b/debian/rules index e4dcd620..2b0725ed 100755 --- a/debian/rules +++ b/debian/rules @@ -597,7 +597,8 @@ endif cp $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/clang/$(LLVM_VERSION_FULL)/README.txt $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/clang/$(LLVM_VERSION_FULL)/share/README.txt # idem for the lldb python binding - mkdir -p $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/python3/dist-packages/lldb/ + mkdir -p $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/python3/dist-packages/ + mv $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/python3.*/site-packages/* $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/python3/dist-packages/ # Remove things that CMake install but which aren't packaged yet, # or are packaged from the source or build tree.