Bug#813798: llvm-toolchain-3.8: LLDB testsuite does not run correctly

Pablo Oliveira pablo at sifflez.org
Sat May 7 22:29:01 UTC 2016


Hi,

On Fri, 05 Feb 2016 12:18:02 +0100 Sylvestre Ledru
<sylvestre at debian.org> wrote:
> Package: llvm-toolchain-3.8
> Severity: normal
> 
> Running lldb testsuite is mostly failing with:
> [...]
> ImportError: No module named _lldb
> 
> Probably caused by a missing symlink
> 
> Full log:
> https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.8&arch=i386&ver=1%3A3.8~%2Brc2-1~exp1&stamp=1454632881
> 
> S

Attached a patch against the current svn revision that fixes this
bug. The problem is that lldb/scripts/Python/finishSwigPythonLLDB.py
does not know about the -3.8.so.1 suffix we use and cannot link to the
correct liblldb.

Regards,

Pablo

PS: What is the pkg-llvm-team policy regarding patches: is it better to
submit them through the BTS or to apply them directly on the svn ?

-------------- next part --------------
Index: patches/lldb-soname.diff
===================================================================
--- patches/lldb-soname.diff	(revision 1915)
+++ patches/lldb-soname.diff	(working copy)
@@ -54,3 +54,16 @@
  endif()
  
  if (LLDB_WRAP_PYTHON)
+
+--- a/lldb/scripts/Python/finishSwigPythonLLDB.py
++++ b/lldb/scripts/Python/finishSwigPythonLLDB.py
+@@ -378,7 +378,7 @@
+             if eOSType == utilsOsType.EnumOsType.Darwin:
+                 strLibFileExtn = ".dylib"
+             else:
+-                strLibFileExtn = "so"
++                strLibFileExtn = "-3.8.so.1"
+             strSrc = os.path.join("lib", "liblldb" + strLibFileExtn)
+ 
+     bOk, strErrMsg = make_symlink(vDictArgs, vstrFrameworkPythonDir, strSrc, strTarget)
+
Index: prepare-new-release.sh
===================================================================
--- prepare-new-release.sh	(revision 1915)
+++ prepare-new-release.sh	(working copy)
@@ -9,7 +9,7 @@
     TARGET=`echo $F|sed -e "s|$ORIG_VERSION|$TARGET_VERSION|g"`
     svn mv $F $TARGET
 done
-LIST=`ls debian/*$TARGET_VERSION* debian/control debian/*.install debian/*.links debian/orig-tar.sh debian/rules debian/patches/clang-analyzer-force-version.diff debian/patches/clang-format-version.diff debian/patches/python-clangpath.diff debian/patches/scan-build-clang-path.diff`
+LIST=`ls debian/*$TARGET_VERSION* debian/control debian/*.install debian/*.links debian/orig-tar.sh debian/rules debian/patches/clang-analyzer-force-version.diff debian/patches/clang-format-version.diff debian/patches/lldb-soname.diff debian/patches/python-clangpath.diff debian/patches/scan-build-clang-path.diff`
 for F in $LIST; do
     sed -i -e "s|$ORIG_VERSION_2|$TARGET_VERSION_2|g" $F
     sed -i -e "s|$ORIG_VERSION|$TARGET_VERSION|g" $F


More information about the Pkg-llvm-team mailing list