Source: python-cassandra-driver
Version: 3.29.0-2
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/logs.php?pkg=python-cassandra-driver&ver=3.29.0-2

...
===============================================================================
The optional C extensions are not supported on big-endian systems.
===============================================================================
...
======================================================================
ERROR: Failure: DependencyException (The C extension needed to use libev was 
not found.  This probably means that you didn't have the required build 
dependencies when installing the driver.  See 
http://datastax.github.io/python-driver/installation.html#c-extensions for 
instructions on installing build dependencies and building the C extension.)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_cassandra/build/cassandra/io/libevreactor.py",
 line 28, in <module>
    import cassandra.io.libevwrapper as libev
ModuleNotFoundError: No module named 'cassandra.io.libevwrapper'
...
FAILED (SKIP=60, errors=1)
E: pybuild pybuild:391: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_cassandra/build; python3.11 -m nose -v 
tests
dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" returned 
exit code 13
make[1]: *** [debian/rules:38: override_dh_auto_test] Error 25




The proper upstream fix would be to disable such a test when the C extensions
have been disabled.

A short-term workaround would be to ignore buildtime test failures on big 
endian:

--- debian/rules.old    2024-02-21 14:38:24.180538878 +0000
+++ debian/rules        2024-02-21 14:38:36.920528797 +0000
@@ -35,7 +35,11 @@
 ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
        rm tests/integration -rf
        rm tests/stress_tests/test_multi_inserts.py 
tests/stress_tests/test_load.py tests/unit/io/test_eventletreactor.py 
tests/unit/cython/test_utils.py tests/unit/cython/test_bytesio.py
+ifeq ($(DEB_HOST_ARCH_ENDIAN),little)
        dh_auto_test
+else
+       -dh_auto_test
+endif
 endif
 
 override_dh_auto_install:

Reply via email to