• Bug#1064403: python-cassandra-driver FTBFS on big endian

    From Adrian Bunk@21:1/5 to All on Wed Feb 21 16:00:01 2024
    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:

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Feb 22 21:50:01 2024
    This is a multi-part message in MIME format...

    Your message dated Thu, 22 Feb 2024 20:45:01 +0000
    with message-id <E1rdFwD-00C3Lb-KT@fasolo.debian.org>
    and subject line Bug#1064403: fixed in python-cassandra-driver 3.29.0-3
    has caused the Debian Bug report #1064403,
    regarding python-cassandra-driver FTBFS on big endian
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1064403: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064403
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 21 Feb 2024 14:48:34 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-109.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,
    UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,
    XMAILER_REPORTBUG autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 150; neutral, 118; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <bunk@debian.org>
    Received: from stravins