• Bug#1066837: mpi4py: FTBFS: Unable to generate documentation

    From Zixing Liu@21:1/5 to All on Thu Mar 14 07:10:02 2024
    This is a multi-part MIME message sent by reportbug.


    Package: mpi4py
    Severity: serious
    Tags: patch
    User: zixing.liu@canonical.com
    Usertags: origin-ubuntu noble ubuntu-patch

    Dear Maintainer,

    mpi4py failed to build from source after Python 3.12 and Sphinx upgrade.
    Please find the patch attached that fixes the Sphinx documentation generation issue and also a partial fix to the InterSphinx online requirements.

    Due to a packaging issue in numpy, the InterSphinx of numpy isn't included
    in the package, so linking the documentation from numpy is not possible
    at the moment.

    * Un-break Sphinx documentation generation by removing PYTHONPATH overrides.
    * Add a patch to make Intersphinx read the cross-documentation index
    from local filesystem. (LP: #2057848)


    Thanks for considering the patch.


    -- System Information:
    Debian Release: bookworm/sid
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

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

    diff -Nru mpi4py-3.1.5/debian/control mpi4py-3.1.5/debian/control
    --- mpi4py-3.1.5/debian/control 2024-03-13 12:30:07.000000000 -0600
    +++ mpi4py-3.1.5/debian/control 2024-03-13 15:33:29.000000000 -0600
    @@ -17,7 +16,8 @@
    python3-setuptools
    Build-Depends-Indep: texinfo, texlive,
    latexmk, tex-gyre,
    - texlive-latex-extra
    + texlive-latex-extra,
    + python3-doc
    Standards-Version: 4.6.2
    Vcs-Browser: https://salsa.debian.org/science-team/mpi4py
    Vcs-Git: https://salsa.debian.org/science-team/mpi4py.git
    diff -Nru mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch
    --- mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch 1969-12-31 17:00:00.000000000 -0700
    +++ mpi4py-3.1.5/debian/patches/intersphinx_use_local_inventory.patch 2024-03-13 15:33:29.000000000 -0600
    @@ -0,0 +1,18 @@
    +Description: Use local InterSphinx inventory data
    +Author: Zixing Liu <zixing.liu@canonical.com>
    +Forwarded: not-needed
    +Last-Update: 2024-03-13
    +
    +Index: mpi4py/docs/source/usrm