diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2023-07-14 09:00:43 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-07-14 15:02:54 -0700 |
| commit | 316541c19d6c569d1e3a877a4baf2a4204aa514e (patch) | |
| tree | 9706f167c3b3f420bcc4d157da4effb4fb3a33ab | |
| parent | d3d8e4b7f93941577f977153b352eed12d473c75 (diff) | |
| download | meta-openembedded-316541c19d6c569d1e3a877a4baf2a4204aa514e.tar.gz | |
libyang: Fix install conflict when enable multilib.
Error: Transaction test error:
file /usr/include/libyang/config.h conflicts between attempted installs of libyang-dev-2.1.55-r0.core2_64 and lib32-libyang-dev-2.1.55-r0.i686
The differences of config.h are as follows:
@@ -27,8 +27,8 @@
/** plugins */
#define LYPLG_SUFFIX ".so"
#define LYPLG_SUFFIX_LEN (sizeof LYPLG_SUFFIX - 1)
-#define LYPLG_TYPE_DIR "/usr/lib/libyang/types"
-#define LYPLG_EXT_DIR "/usr/lib/libyang/extensions"
+#define LYPLG_TYPE_DIR "/usr/lib64/libyang/types"
+#define LYPLG_EXT_DIR "/usr/lib64/libyang/extensions"
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/libyang/libyang_2.1.55.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/libyang/libyang_2.1.55.bb b/meta-oe/recipes-extended/libyang/libyang_2.1.55.bb index b1438c3b2b..bddf30bf6a 100644 --- a/meta-oe/recipes-extended/libyang/libyang_2.1.55.bb +++ b/meta-oe/recipes-extended/libyang/libyang_2.1.55.bb | |||
| @@ -16,7 +16,7 @@ SRC_URI = "git://github.com/CESNET/libyang.git;branch=master;protocol=https \ | |||
| 16 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 17 | 17 | ||
| 18 | # Main dependencies | 18 | # Main dependencies |
| 19 | inherit cmake pkgconfig lib_package ptest | 19 | inherit cmake pkgconfig lib_package ptest multilib_header |
| 20 | DEPENDS = "libpcre2" | 20 | DEPENDS = "libpcre2" |
| 21 | DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)}" | 21 | DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)}" |
| 22 | 22 | ||
| @@ -30,6 +30,10 @@ do_compile:prepend () { | |||
| 30 | fi | 30 | fi |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | do_install:append () { | ||
| 34 | oe_multilib_header libyang/config.h | ||
| 35 | } | ||
| 36 | |||
| 33 | do_install_ptest () { | 37 | do_install_ptest () { |
| 34 | install -d ${D}${PTEST_PATH}/tests | 38 | install -d ${D}${PTEST_PATH}/tests |
| 35 | cp -f ${B}/tests/utest_* ${D}${PTEST_PATH}/tests/ | 39 | cp -f ${B}/tests/utest_* ${D}${PTEST_PATH}/tests/ |
