Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897622 - games-util/minigalaxy: [guru] needs upgrade to Python 3.11 (PythonCompatUpdate)
Summary: games-util/minigalaxy: [guru] needs upgrade to Python 3.11 (PythonCompatUpdate)
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All All
: Normal normal
Assignee: Andreas Zuber
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-25 10:46 UTC by Nowa Ammerlaan
Modified: 2024-04-14 02:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nowa Ammerlaan gentoo-dev 2023-02-25 10:46:43 UTC
This package does not support Python 3.11.  Please test it with Python 3.11 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/abb5788ea81c7bbf4d40a2995b682eb9.  Please check the information provided in the tracker.  Ask in #gentoo-python on IRC if need any help.

$ pkgcheck scan -k PythonCompatUpdate games-util/minigalaxy
games-util/minigalaxy
  PythonCompatUpdate: version 1.0.2: PYTHON_COMPAT updates available: python3_10, python3_11
  PythonCompatUpdate: version 1.1.0: PYTHON_COMPAT update available: python3_11
Comment 1 Dale Pontius 2024-01-03 20:52:55 UTC
I did the obvious - simply copied the ebuild to a local overlay and changed the Python requirements to 3.11.

It took a few other tweaks to get it to build, here's an excerpt from package.use:
#20231217 - minigalaxy hack for GOG populous
games-util/minigalaxy      system-dosbox system-scummvm
x11-libs/wxGTK             webkit
media-libs/libcanberra     gtk3
media-libs/opencv         -gtk3

This gets it to install, but it does not run, complaining about "WebKit2".  That's actually what the wxGTK USE flag was attempting to fix.  It may have changed the error messages some, but did not fix it.  Here is the latest:
$ minigalaxy
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/minigalaxy", line 66, in <module>
    main()
  File "/usr/lib/python-exec/python3.11/minigalaxy", line 57, in main
    from minigalaxy.ui import Window
  File "/usr/lib/python3.11/site-packages/minigalaxy/ui/__init__.py", line 2, in <module>
    from minigalaxy.ui.window import Window
  File "/usr/lib/python3.11/site-packages/minigalaxy/ui/window.py", line 6, in <module>
    from minigalaxy.ui.login import Login
  File "/usr/lib/python3.11/site-packages/minigalaxy/ui/login.py", line 5, in <module>
    gi.require_version('WebKit2', '4.0')
  File "/usr/lib/python3.11/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace WebKit2 not available
Comment 2 Dale Pontius 2024-01-06 20:50:17 UTC
I've made additional changes in /etc/portage/package.use and have it working - almost.  Now the GUI comes up, I was able to login, and get the messages:
Failed to retrieve library.
Couldn't connect to GOG servers.

Here are my entries that made it work:
#20231217 - minigalaxy hack for GOG populous
games-util/minigalaxy      system-dosbox system-scummvm
x11-libs/wxGTK             webkit
media-libs/libcanberra     gtk3
media-libs/opencv         -gtk3
net-libs/webkit-gtk        introspection
x11-libs/gtk+              introspection
gui-libs/gtk               introspection
media-libs/graphene        introspection
media-libs/clutter-gtk     introspection
net-libs/libproxy          introspection
dev-libs/json-glib         introspection
media-libs/mesa            gles2
media-libs/cogl            gles2 introspection
media-libs/clutter         egl   introspection

I tried adding "introspection" across the board to my system, but that does not fix the above error.
Comment 3 Dale Pontius 2024-01-09 01:18:36 UTC
OK, I have it working.  Turns out that the games I bought "on sale" are not listed as Linux-compatible, even though I believe they're supposed to run using dosbox.  I'll read more later and try to do this myself.

Anyway, I found a free game listed as linux-compatible, "bought" it, and demonstrated function in minigalaxy.

To put briefly what I've made in many posts, I simply changed the Python version to 3.11 and tweaked a bunch of USE flags.  I've not done much with ebuilds but I'll see what I can do.

I also note that in the version I have running is from the metahax overlay and is 1.0.2.  According to the minigalaxy page the guru overlay has 1.1.0 and other Linux distributions have as high as 1.2.5 available.
Comment 4 Larry the Git Cow gentoo-dev 2024-04-14 02:18:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fd741d6e7b2fee143f680320b44d4f472e30579d

commit fd741d6e7b2fee143f680320b44d4f472e30579d
Author:     Julien Roy <julien@jroy.ca>
AuthorDate: 2024-04-14 02:10:25 +0000
Commit:     Julien Roy <julien@jroy.ca>
CommitDate: 2024-04-14 02:10:25 +0000

    games-util/minigalaxy: add 1.2.6, enable py3.12
    
    Closes: https://bugs.gentoo.org/897622
    Bug: https://bugs.gentoo.org/921890
    Bug: https://bugs.gentoo.org/921916
    Bug: https://bugs.gentoo.org/927563
    Signed-off-by: Julien Roy <julien@jroy.ca>

 games-util/minigalaxy/Manifest                |  2 +-
 games-util/minigalaxy/minigalaxy-1.1.0.ebuild | 86 ---------------------------
 games-util/minigalaxy/minigalaxy-1.2.6.ebuild | 44 ++++++++++++++
 3 files changed, 45 insertions(+), 87 deletions(-)