Your message dated Fri, 29 Aug 2025 15:43:16 +0000
with message-id <[email protected]>
and subject line Bug#1107591: fixed in openmpi 5.0.8-5
has caused the Debian Bug report #1107591,
regarding openmpi: unsatisfiable cross Build-Depends
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 [email protected]
immediately.)
--
1107591: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107591
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openmpi
Version: 5.0.7-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability
openmpi cannot be cross built from source, because three of its
Build-Depends are not installable. The sphinx-related dependencies are
relatively easiy. sphinx really is needed for an arch-only build as it
is used for generating manual pages. Hence, we cannot move them to
B-D-I. Whilst sphinx can be used in architecture-dependent ways and
therefore is not flagged Multi-Arch: foreign, that's not its most common
use. As a result, sphinx-related dependencies often need to be annotated
:native and that's also the case here.
Nextup is the gfortran dependency. It is requesting a native compiler
for the host architecture. If that were installable, you couldn't expect
to be able to run it. What is needed here is gfortran-for-host, but it
comes with a catch. Once you depend on it, you are no longer entitled to
use the bare gfortran command. Instead, the toolchain must now be
prefixed with the architecture (even for native builds). Fortunately,
dpkg's buildtools.mk knows a suitable value (not being f77) and can
export it as FC. And then we may satisfy cross build-depends.
Please be aware that exporting triplet-prefixed build tools affects
binary packages as OpenMPI embeds the compiler names in tons of files
including headers and shared libraries. Having triplet-prefixed values
there generally is beneficial, but keep in mind that this change does
affect binary packages.
Also note that this does not make openmpi cross buildable. It merely
means that cross building can be attempted. OpenMPI has a lot of sizeof
checks for Fortran that are not implemented using compiler bisection.
Those readily fail. The typical workaround here is supplying cached
values, but I don't think it scales well for Debian's openmpi package.
Instead, implementing bisection at the upstream side would likely be
more useful.
In any case, I'm attaching a patch with the changes necessary to satisfy
cross Build-Depends. It's meant for forky.
Helmut
diff --minimal -Nru openmpi-5.0.7/debian/changelog
openmpi-5.0.7/debian/changelog
--- openmpi-5.0.7/debian/changelog 2025-02-17 14:09:46.000000000 +0100
+++ openmpi-5.0.7/debian/changelog 2025-06-10 11:43:09.000000000 +0200
@@ -1,3 +1,10 @@
+openmpi (5.0.7-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Make Build-Depends compatible with cross building. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Tue, 10 Jun 2025 11:43:09 +0200
+
openmpi (5.0.7-1) unstable; urgency=medium
* New upstream release
diff --minimal -Nru openmpi-5.0.7/debian/control openmpi-5.0.7/debian/control
--- openmpi-5.0.7/debian/control 2025-02-17 14:09:46.000000000 +0100
+++ openmpi-5.0.7/debian/control 2025-06-10 11:43:09.000000000 +0200
@@ -12,7 +12,7 @@
libpmix-dev (>= 5.0.6-2),
libucx-dev [amd64 arm64 ppc64el riscv64],
zlib1g-dev,
- gfortran,
+ gfortran-for-host,
libhwloc-dev,
pkgconf,
libibverbs-dev (>= 1.1.7) [!hurd-any],
@@ -20,8 +20,8 @@
libnuma-dev [!hurd-any],
libpsm-infinipath1-dev [amd64],
libpsm2-dev [amd64],
- python3-sphinx-rtd-theme,
- python3-recommonmark,
+ python3-sphinx-rtd-theme:native,
+ python3-recommonmark:native,
default-jdk [!hurd-any !alpha !ppc64 !sparc64] <!nojava>,
chrpath,
flex
diff --minimal -Nru openmpi-5.0.7/debian/rules openmpi-5.0.7/debian/rules
--- openmpi-5.0.7/debian/rules 2025-02-17 14:09:46.000000000 +0100
+++ openmpi-5.0.7/debian/rules 2025-06-10 11:43:09.000000000 +0200
@@ -4,6 +4,8 @@
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
+DPKG_EXPORT_BUILDTOOLS = 1
+include /usr/share/dpkg/buildtools.mk
DESTDIR:=$(CURDIR)/debian/tmp/
BUILDDIR_FLANG=debian/build-flang
@@ -51,11 +53,6 @@
FMODDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)/fortran/$(GFORTRAN_MOD_VERSION)
# arch-neutral version we can put in openmpi-common configs
FMODDIR_STRING:="\${libdir}/fortran/$(GFORTRAN_MOD_VERSION)"
-# FC set to f77 by default in make
-# Read default compiler name unless FC is actually set
-ifeq ($(FC),f77)
- FC:=$(shell basename $(shell readlink /etc/alternatives/f95))
-endif
# Drop '-g' flag with flang. Known failure with 2018122 version
ifneq ($(filter flang,$(FC)),)
--- End Message ---
--- Begin Message ---
Source: openmpi
Source-Version: 5.0.8-5
Done: Alastair McKinstry <[email protected]>
We believe that the bug you reported is fixed in the latest version of
openmpi, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alastair McKinstry <[email protected]> (supplier of updated openmpi package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 29 Aug 2025 13:25:06 +0100
Source: openmpi
Architecture: source
Version: 5.0.8-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers
<[email protected]>
Changed-By: Alastair McKinstry <[email protected]>
Closes: 1107591 1112049
Changes:
openmpi (5.0.8-5) unstable; urgency=medium
.
[ Alastair McKinstry ]
* Ship pmix_zlib.so plugin. Closes: #1112291
* Close bug fixed in pmix. Closes: #1112049
.
[ Helmut Grohe ]
* Make Build-Depends compatible with cross building. Closes: #1107591
Checksums-Sha1:
86eed168f00bbc332f7b9f62a7ed4fa35ff5738c 2775 openmpi_5.0.8-5.dsc
020b504129128b62bffdbca1b8039038e1b468ea 69176 openmpi_5.0.8-5.debian.tar.xz
Checksums-Sha256:
0ac70c324aeb71905507f0af322b125e247cdb0e3185997bfde9e548f24c82f2 2775
openmpi_5.0.8-5.dsc
9b740bbe35b4bc5c506de2ac57b368b39e5596a4404bde36c3e6ff5e033cbbfb 69176
openmpi_5.0.8-5.debian.tar.xz
Files:
fbbc0f77159bfe7e8dc50fb2ae4223c1 2775 net optional openmpi_5.0.8-5.dsc
e617f044625c7a9bc31c654834bd1608 69176 net optional
openmpi_5.0.8-5.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmixofoACgkQy+a7Tl2a
06XEaA/+IFY31neRr2FU3EzMEhVcCzS6w7CorFEch3yMt57aasNOF/o/o4QY4Z56
MOV/gLDZ3Z9Qcil9FBdGOyH1wfiaAF7Koj/aE4XgSn65qZRirB2+BWfjKYpO41On
DqOSeRMufc+B6f5fXx//N+IN4o+n/kRrUJkbv37TAt8RelN12QFqK9bhN6m4+Z/L
1ORTDJWp6BEKE707BXpEoaZZ8FOHxBZZUtayPVOuFJh+YRNIiVmM9owRqKQD1eTK
JUUP20fwqZgc/VM3Q5zE9SGBWr2rTYzbA6leVdVgDsNlNKSqhFbguH1ekzFoigy3
URLzAdL1suX91lRvwwQAERI1bQlBWkYKtuuBZ1tzHgtqhTjX6SXJz8WS3w04UbiT
sn4U/YFarvOTRXbjYZhK+K5O6jf3jXd5DdwrniOigFWx3Ktz3a6JcM40AGUtIjj9
5q7Lf6dzRpef4zFVyPKj/cNzdY8LEi9gnZ7Z4tFCTSkGfk1kCV1Yh2xFf72EvD6Z
X5CjdhPBNVrIDFM0Umoum9eRy39K76ani9FkcSprR56GJVBlSOKJ+XBqV103Q51F
KfvgCdr69Tz9CK/Ypmug5XBq6BHSzRDcxSPOortbsHCi3P1HY4A6LLvr7/XyGxv5
pUjJsfu0QYX2uANxrerXG9r2X/W3le0PR/48az99VIvSC8Bg8y0=
=ipRl
-----END PGP SIGNATURE-----
pgpXUifHapK6d.pgp
Description: PGP signature
--- End Message ---