Use environment variables to create the hard-coded 'pylibdir' path
This patch also avoids multi-arch conflicts in g-ir-annotation-tool, g-ir-doc-tool and g-ir-scanner.
Merge request reports
Activity
Hi @jbicha,
Sorry for the delayed reply. I've been busy with freetype.
The template used to create the python scripts
g-ir-annotation-tool
,g-ir-doc-tool
andg-ir-scanner
all have a hard-codedpylibdir
path based on the Makefile variable@libdir@
. This means that all three python scripts conflict on different architectures, since@libdir@
is substituted with/usr/lib/<triplet>
.Replacing the hard-coded path with a dynamically generated path avoids the multi-arch file conflict and is another step towards making gobject-introspection multi-arch co-installable.
And what happens when
LIBDIR
andMULTIARCH
aren't set?These variables are stored in python's
sysconfig
module and are set when python is compiled (during anautoconf
-like process). If these variables aren't set, then we have far bigger problems to worry about.Well, it removes the file conflict for half of the gobject-introspection binaries.
Edited by Hugh McMaster