• Bug#1061277: abinit: FTBFS with Python 3.12

    From Aaron Rainbolt@21:1/5 to All on Mon Jan 22 01:40:01 2024
    Source: abinit
    Version: 9.10.4-2
    Severity: serious
    Tags: ftbfs upstream
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: arraybolt3@ubuntu.com

    When building the abinit package on a system with Python 3.12 installed,
    the build fails with a "ModuleNotFoundError: No module named 'imp'" in fkiss/project.py. This file is used by abisrc.py, which is used as a
    critical part of the build configuration process, thus when this script
    fails, it takes down the whole build.

    This bug is being tracked upstream at https://github.com/abinit/abinit/issues/69.

    Steps to reproduce:

    1. Configure your builder to enable `experimental` and pin
    python3-defaults to be installed from it. I'm doing this with a script
    as follows:

    ```
    #!/bin/bash
    echo "deb https://deb.debian.org/debian experimental main" >> /etc/apt/sources.list;
    echo "deb-src https://deb.debian.org/debian experimental main" >> /etc/apt/sources.list;
    echo "Package: src:python3-defaults" > /etc/apt/preferences.d/99proposed
    echo "Pin: release a=experimental" >> /etc/apt/preferences.d/99proposed
    echo "Pin-Priority: 950" >> /etc/apt/preferences.d/99proposed
    ```

    This is then called in my .sbuildrc with the following config:

    ```
    $external_commands = {
    "chroot-setup-commands" => [
    ['/repo/enableProposed.sh'],
    ],
    };
    ```

    2. Attempt to build abinit from source with this builder. The build will
    fail and display failure output similar to the output in the upstream
    bug report. You should be able to find the abisrc.stderr file inside the
    build directory within your builder (find it with `find | grep stderr`)
    and see that it has output similar to the output shown in the first
    comment of the upstream bug report.

    (My system information has Ubuntu information on it because I am
    reporting the bug from an Ubuntu system, however the FTBFS occurs within
    a Debian Sid schroot being used via sbuild.)


    -- System Information:
    Debian Release: bookworm/sid
    APT prefers jammy-updates
    APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.5.0-14-generic (SMP w/8 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Jan 22 03:50:01 2024
    Processing control commands:

    tags -1 patch
    Bug #1061277 [src:abinit] abinit: FTBFS with Python 3.12
    Added tag(s) patch.

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

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

    Your message dated Sun, 04 Feb 2024 21:01:51 +0000
    with message-id <E1rWjcd-006ec2-QR@fasolo.debian.org>
    and subject line Bug#1061277: fixed in abinit 9.10.4-3
    has caused the Debian Bug report #1061277,
    regarding abinit: FTBFS with Python 3.12
    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.)


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

    Received: (at submit) by bugs.debian.org; 22 Jan 2024 00:26:36 +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=-7.1 required=4.0 tests=BAYES_00,FOURLA,RDNS_NONE,
    SPF_PASS,T_SCC_BODY_TEXT_LINE,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, 34; hammy, 150; neutral, 155; spammy,
    0. spammytokens: hammytokens:0.000-+--bookworm, 0.000-+--X-Debbugs-Cc,
    0.000-+--XDebbugsCc, 0.000-+--H*F:D*ubuntu.com, 0.000-+--sk:taint_o Return-path: <arraybolt3@ubuntu.com>
    Received: from [2607:fb91:1193:47c8:b62e:2b2c:59a5:35ce] (port=58770 helo=[127.0.1.1])
    by buxtehude.debian.org with esmtp (Exim 4.94.2)
    (envelope-from <arraybolt3@ubuntu.com>)
    id 1rRi95-00H0YA-M4
    for submit@bug