Source: pytsk
Version: 20190507-1.1
Severity: serious
Tags: patch ftbfs

https://buildd.debian.org/status/package.php?p=pytsk&suite=sid

...
   dh_auto_test -a -O--buildsystem=pybuild
I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build; python3.8 
-m unittest discover -v 
tests.test_lib (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: tests.test_lib (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_lib
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in 
_get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/tests/test_lib.py", line 
5, in <module>
    import pytsk3
ImportError: 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pytsk3.cpython-38-x86_64-linux-gnu.so:
 undefined symbol: libvmdk_handle_read_buffer_at_offset


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build; python3.8 -m unittest discover -v 
dh_auto_test: error: pybuild --test -i python{version} -p 3.8 returned exit 
code 13
make: *** [debian/rules:8: build-arch] Error 25


Fix:

--- 
pytsk-20200117/debian/patches/0001-Link-system-tsk-statically-talloc-dynamically-instea.patch
       2020-08-28 00:27:28.000000000 +0300
+++ 
pytsk-20200117/debian/patches/0001-Link-system-tsk-statically-talloc-dynamically-instea.patch
       2020-08-31 12:36:28.000000000 +0300
@@ -80,7 +80,7 @@
 +        "libraries": [ "talloc" ],
 +        "extra_link_args": [
 +          "-Wl,-Bstatic", "-ltsk", "-Wl,-Bdynamic",
-+          "-lafflib", "-lewf", "-lstdc++", "-lz",
++          "-lafflib", "-lewf", "-lstdc++", "-lz", "-lvmdk", "-lvhdi",
 +        ]}
  
      # The sources to build.

Reply via email to