Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710986 - sci-libs/hdf5 please allow both mpi and cxx USE under an "unsupported" USE
Summary: sci-libs/hdf5 please allow both mpi and cxx USE under an "unsupported" USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-02-27 18:50 UTC by Alessandro Barbieri
Modified: 2020-03-08 06:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2020-02-27 18:50:22 UTC
from:++
https://support.hdfgroup.org/HDF5/hdf5-quest.html#p5thread

Can you run Parallel HDF5 and the thread-safe feature together ? What about Parallel HDF5 and C++?

    By default, you cannot build either Parallel HDF5 with C++ or Parallel HDF5 with the thread-safe feature. You will receive a configure error if you try either of these combinations.

    Checks were added to the configure to disallow these combinations, as they are not tested and may fail.

    However, the --enable-unsupported configure option enables users to get around these checks at their own risk. (You can actually view the configure file to see where the checks are made.) If the build completes properly and the tests pass, then the installation should be okay.



ROS forces me to have the CXX useflag (see https://bugs.gentoo.org/392683)
Adding an unsupported useflag will allow hdf5 to have both MPI and C++ support
better would be also having tests to do after the build
Comment 1 Benda Xu gentoo-dev 2020-03-02 03:56:05 UTC
Thank you Alessandro.  Patches welcome.
Comment 2 Larry the Git Cow gentoo-dev 2020-03-08 06:49:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27d655b364e26cfb971d655a691f0ffaef96e8f8

commit 27d655b364e26cfb971d655a691f0ffaef96e8f8
Author:     Alessandro Barbieri <lssndrbarbieri@gmail.com>
AuthorDate: 2020-03-02 07:50:25 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2020-03-08 06:49:08 +0000

    sci-libs/hdf5: add unsupported useflag
    
      this will allow unsupported combinations of useflags such as MPI +
      CXX.
    
      link mpi when using mpi.
    
    Closes: https://bugs.gentoo.org/710986
    Closes: https://github.com/gentoo/gentoo/pull/14821
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 sci-libs/hdf5/hdf5-1.10.5-r1.ebuild | 106 ++++++++++++++++++++++++++++++++++++
 sci-libs/hdf5/metadata.xml          |   1 +
 2 files changed, 107 insertions(+)