1.57.2 fails for 64 bit mode in multilib environments
Hello
1.57.2 fails for 64 bit mode in multilib environments where both /usr/lib and /usr/lib64 exist, presumably due to this:
----8<----
pylibdir = os.path.abspath(os.path.join(filedir, '..', 'lib', 'gobject-introspection'))
---->8----
in g-ir-tool-template.in.
When looking for _giscanner.so in 64 bit mode, it erroneously picks /usr/lib/gobject-introspection/giscanner/_giscanner.so and fails with (eg for harfbuzz build):
----8<----
[...]
File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", line 39, in <module>
from giscanner._giscanner import SourceScanner as CSourceScanner
ImportError: /usr/lib/gobject-introspection/giscanner/_giscanner.so: wrong ELF class: ELFCLASS32
---->8----
In 1.56.1, that was:
----8<----
pylibdir = os.path.join('@libdir@', 'gobject-introspection')
---->8----
which worked because @libdir@ was replaced according to what was given to configure, so both 32 and 64 bit builds were fine with --libdir=/usr/lib and --libdir=/usr/lib64, respectively.
I don't speak python so I cannot suggest any fix/patch, but I hope to have explained the problem.
ciao -g