diff options
-rw-r--r-- | meta-oe/recipes-extended/libblockdev/files/0001-fix-pythondir-for-multilib-when-cross-compiling.patch | 32 | ||||
-rw-r--r-- | meta-oe/recipes-extended/libblockdev/libblockdev_3.03.bb | 3 |
2 files changed, 34 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/libblockdev/files/0001-fix-pythondir-for-multilib-when-cross-compiling.patch b/meta-oe/recipes-extended/libblockdev/files/0001-fix-pythondir-for-multilib-when-cross-compiling.patch new file mode 100644 index 0000000000..ec3a9fe470 --- /dev/null +++ b/meta-oe/recipes-extended/libblockdev/files/0001-fix-pythondir-for-multilib-when-cross-compiling.patch | |||
@@ -0,0 +1,32 @@ | |||
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 | |||
diff --git a/meta-oe/recipes-extended/libblockdev/libblockdev_3.03.bb b/meta-oe/recipes-extended/libblockdev/libblockdev_3.03.bb index 670bebd37b..99175e6112 100644 --- a/meta-oe/recipes-extended/libblockdev/libblockdev_3.03.bb +++ b/meta-oe/recipes-extended/libblockdev/libblockdev_3.03.bb | |||
@@ -13,7 +13,8 @@ inherit autotools gobject-introspection pkgconfig lib_package | |||
13 | DEPENDS = "autoconf-archive-native glib-2.0 kmod udev libnvme" | 13 | DEPENDS = "autoconf-archive-native glib-2.0 kmod udev libnvme" |
14 | 14 | ||
15 | SRC_URI = "git://github.com/storaged-project/libblockdev;branch=master;protocol=https \ | 15 | SRC_URI = "git://github.com/storaged-project/libblockdev;branch=master;protocol=https \ |
16 | " | 16 | file://0001-fix-pythondir-for-multilib-when-cross-compiling.patch \ |
17 | " | ||
17 | SRCREV = "38378931d285b91333ff2e2a391b1fe91072f9bb" | 18 | SRCREV = "38378931d285b91333ff2e2a391b1fe91072f9bb" |
18 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
19 | 20 | ||