thin-provisioning-tools: fix compile failure on 32bit arm
PATCH 1/1 thin-provisioning-tools: fix compile failure on 32bit arm
In reply to a message not in the archive$ echo 'MACHINE = "beaglebone-yocto"' >> conf/local.conf
$ bitbake thin-provisioning-tools
```
error[E0080]: index out of bounds: the length is 1 but the index is 12
--> TOPDIR/tmp/work/cortexa8hf-neon-wrs-linux-gnueabi/thin-provisioning-tools/1.3.1/build/target/release/build/devicemapper-sys-f88f57f28cd965d2/out/sem-bindings.rs:3:1177
|
3 | ... _ : () = { ["Size of ipc_perm"] [:: std :: mem :: size_of :: < ipc_perm > () - 36usize] ; ["Alignment of ipc_perm"] [:: std :: me...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here
```Tweak filter condition on TUNE_FEATURES to add arm for 32bit arm
Signed-off-by Hongxu Jia <[email protected]>
--- .../thin-provisioning-tools/thin-provisioning-tools_1.3.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.3.1.bb +1 -1
@@ -10,7 +10,7 @@ SRC_URI = " \ git://github.com/device-mapper-utils/thin-provisioning-tools;branch=main;protocol=https;tag=v${PV} \ file://0001-Use-portable-atomics-crate.patch \ file://disable-cargo-metadata.patch \ - ${@bb.utils.contains_any('TUNE_FEATURES', '32 m32 mx32', \ + ${@bb.utils.contains_any('TUNE_FEATURES', '32 m32 mx32 arm', \ 'file://dms-no-layout-check.patch;patchdir=${CARGO_VENDORING_DIRECTORY}/devicemapper-sys-0.3.3', \ '', d)} \ "
Signature · 1 line
2.34.1