Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933285 - [guru] gui-apps/nwg-displays-0.3.20: should depend on gui-libs/gtk-layer-shell[introspection]
Summary: [guru] gui-apps/nwg-displays-0.3.20: should depend on gui-libs/gtk-layer-shel...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Pascal Jäger
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-31 21:46 UTC by NHO
Modified: 2024-09-27 11:41 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 NHO 2024-05-31 21:46:22 UTC
nwg-display tries to interact through GObject, and if gtk-layer-shell isn't compiled with USE=introspection, nwg-display fails and crashes:

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/nwg_displays/main.py", line 24, in <module>
    gi.require_version('GtkLayerShell', '0.1')
  File "/usr/lib/python3.12/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkLayerShell not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/nwg-displays", line 5, in <module>
    from nwg_displays.main import main
  File "/usr/lib/python3.12/site-packages/nwg_displays/main.py", line 26, in <module>
    raise RuntimeError('\n\n' +
RuntimeError: 

If you haven't installed GTK Layer Shell, you need to point Python to the
library by setting GI_TYPELIB_PATH and LD_LIBRARY_PATH to <build-dir>/src/.
For example you might need to run:

GI_TYPELIB_PATH=build/src LD_LIBRARY_PATH=build/src python3 /usr/lib/python-exec/python3.12/nwg-displays
Comment 1 Larry the Git Cow gentoo-dev 2024-09-27 11:41:05 UTC
The bug has been closed via the following commit(s):

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

commit 294e1d5bdb635e799b1011584fe182d7ee40ca4e
Author:     Takuya Wakazono <pastalian46@gmail.com>
AuthorDate: 2024-09-26 14:28:41 +0000
Commit:     Takuya Wakazono <pastalian46@gmail.com>
CommitDate: 2024-09-26 14:28:41 +0000

    gui-apps/nwg-displays: fix RDEPEND
    
    Closes: https://bugs.gentoo.org/933285
    Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>

 .../{nwg-displays-0.3.20.ebuild => nwg-displays-0.3.20-r1.ebuild}   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)