Andrew Geissler | 2013739 | 2023-10-12 04:59:14 -0600 | [diff] [blame] | 1 | From 297abed277ce3aa0cf12adbfda3c8581afdba850 Mon Sep 17 00:00:00 2001 |
| 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Sun, 8 Oct 2023 19:30:29 -0700 |
| 4 | Subject: [PATCH] fix pythondir for multilib when cross compiling |
| 5 | |
| 6 | In case of cross compiling + multilib, the 'shell python3' line is |
| 7 | not likely to give out correct result. Make use of pythondir instead. |
| 8 | |
| 9 | This patch is related to meta/recipes-devtools/automake/automake/0001-automake-Update-for-python.m4-to-respect-libdir.patch |
| 10 | in oe-core, so this one is marked as oe specific. |
| 11 | |
| 12 | Upstream-Status: Inappropriate [OE Specific] |
| 13 | |
| 14 | Signed-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 | |
| 19 | diff --git a/src/python/gi/overrides/Makefile.am b/src/python/gi/overrides/Makefile.am |
| 20 | index 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 | -- |
| 31 | 2.42.0 |
| 32 | |