[Debichem-devel] Bug#1061277: abinit: FTBFS with Python 3.12
Aaron Rainbolt
arraybolt3 at ubuntu.com
Mon Jan 22 00:26:33 GMT 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 at 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
More information about the Debichem-devel
mailing list