From dd952e12e2347c07325a46c535463a29c03fdf5b Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Wed, 25 May 2022 14:11:24 +0200 Subject: [PATCH] sys-cluster/Graph500: conditional chrpath Closes: https://bugs.gentoo.org/847340 Signed-off-by: Alessandro Barbieri --- sys-cluster/Graph500/Graph500-1.2.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys-cluster/Graph500/Graph500-1.2.ebuild b/sys-cluster/Graph500/Graph500-1.2.ebuild index dae92c7d67..36601d979f 100644 --- a/sys-cluster/Graph500/Graph500-1.2.ebuild +++ b/sys-cluster/Graph500/Graph500-1.2.ebuild @@ -51,7 +51,10 @@ src_install() { doins *.html insinto "/usr/share/octave/site/m/${PN}" doins -r octave/* - chrpath -d "${ED}/usr/bin/graph500_mpi_one_sided" || die - chrpath -d "${ED}/usr/bin/graph500_mpi_simple" || die - chrpath -d "${ED}/usr/bin/generator_test_mpi" || die + + if use mpi ; then + chrpath -d "${ED}/usr/bin/graph500_mpi_one_sided" || die + chrpath -d "${ED}/usr/bin/graph500_mpi_simple" || die + chrpath -d "${ED}/usr/bin/generator_test_mpi" || die + fi }