Summary: | games-util/lutris-0.5.9_beta1: data_path can't be found at : /usr/lib/python3.9/site-packages/share/lutris | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Augustin <hossie> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andrewammerlaan, dev |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/22754 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Daniel Augustin
2021-08-31 19:06:08 UTC
The issue is here: /usr/lib/python3.9/site-packages/lutris/util/datapath.py launch_path = os.path.realpath("/var/tmp/portage/games-util/lutris-0.5.9_beta1/work/lutris-0.5.9-beta1/share") if launch_path.startswith("/usr/local"): data_path = "/usr/local/share/lutris" elif launch_path.startswith("/usr"): data_path = "/usr/share/lutris" elif system.path_exists(os.path.normpath(os.path.join("/var/tmp/portage/games-util/lutris-0.5.9_beta1/work/lutris-0.5.9-beta1/share", "share"))): data_path = os.path.normpath(os.path.join("/var/tmp/portage/games-util/lutris-0.5.9_beta1/work/lutris-0.5.9-beta1/share", "share/lutris")) elif system.path_exists(os.path.normpath(os.path.join(launch_path, "../../share/lutris"))): data_path = os.path.normpath(os.path.join(launch_path, "../../share/lutris")) Our launch_path starts with /var/ and therefore we skip the elif that would lead to the correct data_path: /usr/share/lutris. Changing launch_path to /usr/share fixes the issue. This sed line in the ebuild is responsible: sed -i -e "s:sys.path\[0\]:\"${S}/share\":" lutris/util/datapath.py The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe47523e8c564aac696c97eee7ebc3f0d7b52119 commit fe47523e8c564aac696c97eee7ebc3f0d7b52119 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2021-10-29 18:36:12 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2021-10-29 19:04:11 +0000 games-util/lutris: remove 0.5.9_beta1 Closes: https://bugs.gentoo.org/811285 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/22754 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> games-util/lutris/Manifest | 1 - games-util/lutris/lutris-0.5.9_beta1.ebuild | 87 ----------------------------- 2 files changed, 88 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c89bc502532518bf7fc83351b833f066e8065030 commit c89bc502532518bf7fc83351b833f066e8065030 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2021-10-29 18:35:26 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2021-10-29 19:04:10 +0000 games-util/lutris: add version 0.5.9.1 - We add a patch that avoids: importError (Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded) - And we remove the sed line that makes the application fail to find data_path during runtime, the test that this claims to fix works (for me) without this sed line anyway. Bug: https://bugs.gentoo.org/811285 - Bumped to EAPI 8 - Also update 9999 accordingly Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> games-util/lutris/Manifest | 1 + ....1-avoid-gtk-4.0-already-loaded-testerror.patch | 13 ++++ games-util/lutris/lutris-0.5.9.1.ebuild | 80 ++++++++++++++++++++++ games-util/lutris/lutris-9999.ebuild | 21 ++---- 4 files changed, 100 insertions(+), 15 deletions(-) |