diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2024-02-01 16:15:08 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-02-01 08:17:38 -0800 |
| commit | f0512636fdaae0791f9f9708d18773aa56bec3e8 (patch) | |
| tree | 87838e107b4dd7712546c775581100659cbcce82 | |
| parent | 9e96cb9d12b683d5d6812bce5aa0789fc333dd17 (diff) | |
| download | meta-openembedded-f0512636fdaae0791f9f9708d18773aa56bec3e8.tar.gz | |
cmocka: Fix install conflict when enable multilib.
Error: Transaction test error:
file /usr/share/cmocka/example/mock/libproc_uptime.so conflicts between attempted installs of lib32-libcmocka-examples-1.1.7+git0+a01cc69ee9-r0.armv7ahf_neon and libcmocka-examples-1.1.7+git0+a01cc69ee9-r0.cortexa57
Change install directory from share to lib to resolve conflict.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-test/cmocka/cmocka_1.1.7.bb | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/meta-oe/recipes-test/cmocka/cmocka_1.1.7.bb b/meta-oe/recipes-test/cmocka/cmocka_1.1.7.bb index 44077a0d35..7461fcc4d7 100644 --- a/meta-oe/recipes-test/cmocka/cmocka_1.1.7.bb +++ b/meta-oe/recipes-test/cmocka/cmocka_1.1.7.bb | |||
| @@ -22,15 +22,15 @@ EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCMAKE_BUILD_TYPE | |||
| 22 | LTO = "" | 22 | LTO = "" |
| 23 | 23 | ||
| 24 | do_install:append () { | 24 | do_install:append () { |
| 25 | install -d ${D}${datadir}/${BPN}/example | 25 | install -d ${D}${libdir}/${BPN}/example |
| 26 | install -d ${D}${datadir}/${BPN}/example/mock/chef_wrap | 26 | install -d ${D}${libdir}/${BPN}/example/mock/chef_wrap |
| 27 | install -d ${D}${datadir}/${BPN}/example/mock/uptime | 27 | install -d ${D}${libdir}/${BPN}/example/mock/uptime |
| 28 | 28 | ||
| 29 | install -m 0755 ${B}/example/*_test ${D}/${datadir}/${BPN}/example | 29 | install -m 0755 ${B}/example/*_test ${D}/${libdir}/${BPN}/example |
| 30 | install -m 0755 ${B}/example/mock/chef_wrap/waiter_test_wrap ${D}/${datadir}/${BPN}/example/mock/chef_wrap | 30 | install -m 0755 ${B}/example/mock/chef_wrap/waiter_test_wrap ${D}/${libdir}/${BPN}/example/mock/chef_wrap |
| 31 | install -m 0755 ${B}/example/mock/uptime/uptime ${D}/${datadir}/${BPN}/example/mock/uptime | 31 | install -m 0755 ${B}/example/mock/uptime/uptime ${D}/${libdir}/${BPN}/example/mock/uptime |
| 32 | install -m 0755 ${B}/example/mock/uptime/test_uptime ${D}/${datadir}/${BPN}/example/mock/uptime | 32 | install -m 0755 ${B}/example/mock/uptime/test_uptime ${D}/${libdir}/${BPN}/example/mock/uptime |
| 33 | install -m 0644 ${B}/example/mock/uptime/libproc_uptime.so ${D}/${datadir}/${BPN}/example/mock/libproc_uptime.so | 33 | install -m 0644 ${B}/example/mock/uptime/libproc_uptime.so ${D}/${libdir}/${BPN}/example/mock/libproc_uptime.so |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | do_install_ptest () { | 36 | do_install_ptest () { |
| @@ -40,5 +40,4 @@ do_install_ptest () { | |||
| 40 | 40 | ||
| 41 | PACKAGE_BEFORE_PN += "${PN}-examples" | 41 | PACKAGE_BEFORE_PN += "${PN}-examples" |
| 42 | 42 | ||
| 43 | FILES:${PN}-examples = "${datadir}/${BPN}/example" | 43 | FILES:${PN}-examples = "${libdir}/${BPN}/example" |
| 44 | INSANE_SKIP:${PN}-examples = "libdir" | ||
