diff --git a/sci-libs/hdf5/hdf5-1.12.2-r4.ebuild b/sci-libs/hdf5/hdf5-1.12.2-r4.ebuild index dc668a1d721d6..7cb1b87160254 100644 --- a/sci-libs/hdf5/hdf5-1.12.2-r4.ebuild +++ b/sci-libs/hdf5/hdf5-1.12.2-r4.ebuild @@ -109,5 +109,5 @@ src_install() { # Remove "perf" executable due to file collisions with dev-util/perf. # Previously with the CMake build system we only installed h5perf, so # let's simply remove the file for now. - rm "${ED}"/usr/bin/perf || die "rm failed" + use mpi && { rm "${ED}"/usr/bin/perf || die "rm failed" ; } }