FS#55915 - [glib2] gdbus-codegen - No module named 'codegen'
Attached to Project:
Arch Linux
Opened by Fabian Maurer (DarkShadow44) - Sunday, 08 October 2017, 12:17 GMT
Last edited by Jan de Groot (JGC) - Friday, 23 August 2019, 21:34 GMT
Opened by Fabian Maurer (DarkShadow44) - Sunday, 08 October 2017, 12:17 GMT
Last edited by Jan de Groot (JGC) - Friday, 23 August 2019, 21:34 GMT
|
Details
Description:
The gdbus-codegen script included in glib2 doesn't work, it complains about a missing module. This makes for example the package lib32-gst-plugins-bad from the AUR unable to compile. Additional info: * glib2 2.54.1-1 Steps to reproduce: Running gdbus-codegen in the terminal yields Traceback (most recent call last): File "/bin/gdbus-codegen", line 41, in <module> from codegen import codegen_main ModuleNotFoundError: No module named 'codegen' |
This task depends upon
Closed by Jan de Groot (JGC)
Friday, 23 August 2019, 21:34 GMT
Reason for closing: Fixed
Additional comments about closing: Fix is in a released version of glib2 now.
Friday, 23 August 2019, 21:34 GMT
Reason for closing: Fixed
Additional comments about closing: Fix is in a released version of glib2 now.
gdbus-codegen computes a path based on $(dirname /bin/gdbus-codegen)/../share/glib-2.0 and flattens it with os.path.abspath, which doesn't follow symlinks. os.path.realpath may be more appropriate?
Fix (for this particular scenario) is trivial:
31c31
< elif os.path.basename(filedir) == 'bin':
---
> elif os.path.basename(filedir) in ('bin', 'sbin'):
I'm not sure whether this should be added upstream or in Arch.
Which is available in https://www.archlinux.org/packages/gnome-unstable/x86_64/glib2/
I don't know about their release cycle but I guess being in the gnome-unstable repos means we might see this soon...