Disable openmpi and mpich for Flatpak-bundled builds

The Fedora OpenMPI and MPICH Flatpaks pose considerable challenges for
rebuilding to use in Flaptaks with prefix=/app - in particular because
of their use of environment-modules. An analysis of all graphical
applications in Fedora that we might want to create Flatpak containers
of shows no apps that use the OpenMPI and MPICH subpackages of boost,
though many other boost packages are used. So simply disabling openmpi
and mpich for Flatpak rebuilds is the simplest approach.
This commit is contained in:
Owen W. Taylor 2018-09-27 12:05:10 -04:00
parent 166218aed3
commit 811a3a3329
1 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,12 @@
%global boost_docdir __tmp_docdir
%global boost_examplesdir __tmp_examplesdir
%if 0%{?flatpak}
# For bundling in Flatpak, currently build without mpich and openmpi,
# which aren't needed and cause prefix=/app errors.
%bcond_with mpich
%bcond_with openmpi
%else
# All arches have mpich
%bcond_without mpich
@ -16,6 +22,7 @@
%else
%bcond_without openmpi
%endif
%endif
%ifnarch %{ix86} x86_64 %{arm} ppc64 ppc64le aarch64
%bcond_with context
@ -36,7 +43,7 @@ Name: boost
Summary: The free peer-reviewed portable C++ source libraries
Version: 1.66.0
%global version_enc 1_66_0
Release: 14%{?dist}
Release: 15%{?dist}
License: Boost and MIT and Python
%global toplev_dirname %{name}_%{version_enc}
@ -1488,6 +1495,9 @@ fi
%{_mandir}/man1/bjam.1*
%changelog
* Thu Sep 27 2018 Owen Taylor <otaylor@redhat.com> - 1.66.0-15
- Disable openmpi and mpich for Flatpak-bundled builds
* Thu Aug 23 2018 Jonathan Wakely <jwakely@redhat.com> - 1.66.0-14
- Fix permissions and python shebang of Boost.Build files