Summary: | dev-util/pycharm-community-2020.3 exits after " GPU process isn't usable. Goodbye." | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Healy <lmiphay> |
Component: | Current packages | Assignee: | Mikle Kolyada (RETIRED) <zlogene> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | java, jstein, public, web |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | https://youtrack.jetbrains.com/issue/IDEA-248140#focus=Comments-27-4622080.0-0 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
proposed patch to dev-util/pycharm ebuilds
proposed patch to dev-util/pycharm ebuilds with patchelf |
Description
Paul Healy
2021-01-05 13:23:23 UTC
Additional way to test this: 1. Create a project 2. Ensure Markdown plugin is enabled in File > Settings 3. Create a markdown file inside the project By default IDE should try to open it and crash. Created attachment 683098 [details, diff]
proposed patch to dev-util/pycharm ebuilds
If bundled-jdk is used, toggles +x flag on certain binaries in /opt/pycharm-professional/jbr/lib.
Comment on attachment 683098 [details, diff] proposed patch to dev-util/pycharm ebuilds >diff --git a/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild b/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild >index c3b7f5777..f35407c71 100644 >--- a/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild >+++ b/dev-util/pycharm-professional/pycharm-professional-2020.3.ebuild >@@ -30,6 +30,9 @@ src_install() { > doins -r * > > if use bundled-jdk; then >+ for filename in jcef_helper chrome-sandbox jexec jspawnhelper; do >+ fperms a+x /opt/pycharm-professional/jbr/lib/"${filename}" >+ done > fperms -R a+x /opt/pycharm-professional/jbr/bin/ > else > rm -r "${D}"/opt/pycharm-professional/jbr/ || die Created attachment 683113 [details, diff]
proposed patch to dev-util/pycharm ebuilds with patchelf
After the original patch, scanelf started complaining:
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.:$ORIGIN' in /var/tmp/portage/dev-util/pycharm-professional-2020.3/image/opt/pycharm-professional/jbr/lib/libjcef.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.:$ORIGIN' in /var/tmp/portage/dev-util/pycharm-professional-2020.3/image/opt/pycharm-professional/jbr/lib/jcef_helper
This patch adds DEPEND for patchelf (EAPI is 6, so no BDEPEND) and uses patchelf to replace DT_RPATH with just "$ORIGIN". The IDE seems to work fine afterwards, but I am not sure if it's up to the ebuild to patch this.
PullRequest https://github.com/gentoo/gentoo/pull/21499 to fix this problem The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b68efb6ec1f063f6451c24b21af0abfc165f3f5e commit b68efb6ec1f063f6451c24b21af0abfc165f3f5e Author: INODE64 <ffelix@inode64.com> AuthorDate: 2021-07-01 13:47:55 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2021-07-17 13:51:35 +0000 Massive update for dev-util/pycharm-professional and dev-util/pycharm-community * Fix rpath_security_checks * Fix crash when opening a markdown * Remove files from other architectures * Include missing deps * Use wrapper * Include recommended fs.inotify.max_user_watches Closes: https://bugs.gentoo.org/798765 https://bugs.gentoo.org/798762 https://bugs.gentoo.org/795258 https://bugs.gentoo.org/792516 https://bugs.gentoo.org/792459 https://bugs.gentoo.org/792393 https://bugs.gentoo.org/787536 https://bugs.gentoo.org/763879 https://bugs.gentoo.org/733058 https://bugs.gentoo.org/733042 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: INODE64 <ffelix@inode64.com> Closes: https://github.com/gentoo/gentoo/pull/21499 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> .../pycharm-community-2021.1.2.ebuild | 101 ++++++++++++++++---- .../pycharm-professional-2021.1.2.ebuild | 103 +++++++++++++++++---- 2 files changed, 167 insertions(+), 37 deletions(-) |