1From 297abed277ce3aa0cf12adbfda3c8581afdba850 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Sun, 8 Oct 2023 19:30:29 -0700
4Subject: [PATCH] fix pythondir for multilib when cross compiling
5
6In case of cross compiling + multilib, the 'shell python3' line is
7not likely to give out correct result. Make use of pythondir instead.
8
9This patch is related to meta/recipes-devtools/automake/automake/0001-automake-Update-for-python.m4-to-respect-libdir.patch
10in oe-core, so this one is marked as oe specific.
11
12Upstream-Status: Inappropriate [OE Specific]
13
14Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
15---
16 src/python/gi/overrides/Makefile.am | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/python/gi/overrides/Makefile.am b/src/python/gi/overrides/Makefile.am
20index 5e8e75f7..7c30601c 100644
21--- a/src/python/gi/overrides/Makefile.am
22+++ b/src/python/gi/overrides/Makefile.am
23@@ -1,5 +1,5 @@
24 if WITH_PYTHON3
25-py3libdir = $(shell python3 -c "import sysconfig; print(sysconfig.get_path('platlib', vars={'platbase': '${exec_prefix}'}))")
26+py3libdir = $(pythondir)
27 py3overridesdir = $(py3libdir)/gi/overrides
28 dist_py3overrides_DATA = BlockDev.py
29 endif
30--
312.42.0
32
33