commit: 01f352b1649fc560c6cea09b91e72e56b49f6f68 Author: Alexander Golubev <fatzer2 <AT> gmail <DOT> com> AuthorDate: Wed Feb 16 22:13:25 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Feb 18 03:05:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01f352b1
sci-libs/flann: fix RUNPATH with MPI Bug: https://bugs.gentoo.org/795828 Signed-off-by: Alexander Golubev <fatzer2 <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24221 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/flann/flann-1.9.1-r5.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sci-libs/flann/flann-1.9.1-r5.ebuild b/sci-libs/flann/flann-1.9.1-r5.ebuild index 716c7a4fec72..788c2733be10 100644 --- a/sci-libs/flann/flann-1.9.1-r5.ebuild +++ b/sci-libs/flann/flann-1.9.1-r5.ebuild @@ -17,6 +17,7 @@ IUSE="cuda doc examples mpi octave openmp" BDEPEND=" app-arch/unzip doc? ( dev-tex/latex2html ) + mpi? ( app-admin/chrpath ) " DEPEND=" app-arch/lz4:= @@ -85,4 +86,9 @@ src_configure() { src_install() { cmake_src_install find "${D}" -name 'lib*.a' -delete || die + + # bug 795828; mpicc volunterely adds some runpaths + if use mpi; then + chrpath -d "${ED}"/usr/bin/flann_mpi_{client,server} || die + fi }
