commit: 0aa8735e280718890bc4b0cd4a3dccbfc177d639 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Sun Feb 2 19:28:51 2020 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Sun Feb 2 19:28:51 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aa8735e
dev-util/idea-community: Check for dir before running patchelf Reported-by: Matt <matt <AT> offtopica.uk> Closes: https://bugs.gentoo.org/707748 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> .../idea-community/idea-community-2019.3.2.193.6015.39.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dev-util/idea-community/idea-community-2019.3.2.193.6015.39.ebuild b/dev-util/idea-community/idea-community-2019.3.2.193.6015.39.ebuild index cf7b3629f82..b33ce52f9b7 100644 --- a/dev-util/idea-community/idea-community-2019.3.2.193.6015.39.ebuild +++ b/dev-util/idea-community/idea-community-2019.3.2.193.6015.39.ebuild @@ -89,10 +89,12 @@ src_prepare() { rm -vrf "${S}"/lib/pty4j-native/linux/ppc64le || die rm -vf "${S}"/bin/libdbm64* || die - for file in "${S}"/"${JRE_DIR}"/lib/amd64/{libfxplugins.so,libjfxmedia.so} - do - patchelf --set-rpath '$ORIGIN' $file || die - done + if [[ -f "${JRE_DIR}" ]]; then + for file in "${S}"/"${JRE_DIR}"/lib/amd64/{libfxplugins.so,libjfxmedia.so} + do + patchelf --set-rpath '$ORIGIN' $file || die + done + fi patchelf --replace-needed liblldb.so liblldb.so.9 "${S}"/plugins/Kotlin/bin/linux/LLDBFrontend || die "Unable to patch LLDBFrontend for lldb"
