Bug 15571

Summary: Unable to generate sparse image due to missing "truncate" tool
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Marcin Bajer <marcin.bajer>
Component: oe-core otherAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: randy.macleod
Version: 4.2   
Target Milestone: 5.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Attachments:
Description Flags
Proposed patch none

Description Marcin Bajer 2024-08-08 12:14:54 UTC
While trying to genete sparse build system reports missing "truncate" tool.

```
run.do_image_wic.279213: 165: truncate: not found
```

Seems the solution is to add coreutils-native as dependency

```
CONVERSION_DEPENDS_sparse = "android-tools-native" -> CONVERSION_DEPENDS_sparse = "android-tools-native coreutils-native"
```

Tempolary solution for me without making a changes in OE core is to add:

```
do_image_wic[depends] += "coreutils-native:do_populate_sysroot"
```

in my image description recipe.
Comment 1 Marcin Bajer 2024-08-08 12:44:19 UTC
Created attachment 5066 [details]
Proposed patch
Comment 2 Richard Purdie 2024-08-08 21:54:49 UTC
We may as well just add this to HOSTTOOLS since we already effectively depend upon coreutils. I've sent a patch.