Bug 15571 - Unable to generate sparse image due to missing "truncate" tool
Summary: Unable to generate sparse image due to missing "truncate" tool
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 4.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.1 M3
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-08-08 12:14 UTC by Marcin Bajer
Modified: 2024-09-03 10:48 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments
Proposed patch (1.05 KB, patch)
2024-08-08 12:44 UTC, Marcin Bajer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.