From: Mike Pagano Date: Sun, 2 Feb 2020 19:28:51 +0000 (-0500) Subject: dev-util/idea-community: Check for dir before running patchelf X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0aa8735e280718890bc4b0cd4a3dccbfc177d639;p=gentoo.git dev-util/idea-community: Check for dir before running patchelf Reported-by: Matt Closes: https://bugs.gentoo.org/707748 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Mike Pagano --- 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 cf7b3629f82e..b33ce52f9b75 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"