| Summary: | devtool fails because of missing ca-certificates.crt | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Yocto Project Subprojects] eSDK | Reporter: | Krzysztof Kozlowski <krzk> | ||||||
| Component: | eSDK | Assignee: | Krzysztof Kozlowski <krzk> | ||||||
| Status: | RESOLVED NOTABUG | QA Contact: | Francisco Pedraza <francisco.j.pedraza.gonzalez> | ||||||
| Severity: | normal | ||||||||
| Priority: | Medium+ | CC: | krzk, ross.burton | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 2.6 M4 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | New (Never tested) | ||||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 12925 | ||||||||
| Attachments: |
|
||||||||
|
Description
Krzysztof Kozlowski
2018-09-12 10:59:08 UTC
Created attachment 4370 [details]
SDK install error
New eSDK installs can be fixed by adding to machine conf file: TOOLCHAIN_HOST_TASK += "nativesdk-ca-certificates" However the updated SDK still fails because as usual the sdk-update does not properly populates sysroots with new changes. Anyway, probably the nativesdk-ca-certificates should be part of default SDK packages. Would you be able to test this with a newer release than 2.3.4? I setup a Yocto with different, minimal configuration, without any custom machine... and I cannot reproduce the error. I tried v2.3.4, v2.4.3 and v2.5.1. In this new setup, in eSDK the file buildtools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt exists. There must be something different between the setups. OK, I reproduced it also on v2.5.1 so no problem of testing it also later with a new release. While trying to reproduce it on more vanilla-like configuration, I narrowed it to the presence of following in distro or machine conf: TOOLCHAIN_HOST_TASK += "nativesdk-u-boot-mkimage" Without this line - works. I compared for example the glibc-x86_64-core-image-minimal-armv5e-toolchain-ext-2.3.4.testdata.json between such cases. Working (without TOOLCHAIN_HOST_TASK above): "SDK_REQUIRED_UTILITIES": "patch diffstat bzip2 gawk cpio perl file which gcc g++", Broken (with TOOLCHAIN_HOST_TASK above): "SDK_REQUIRED_UTILITIES": "patch diffstat makeinfo git bzip2 tar gzip gawk chrpath wget cpio perl file which gcc g++", TOOLCHAIN_HOST_TASK is lazy assigned so if you want to extend it, use TOOLCHAIN_HOST_TASK_append. Krzysztof, can you test as I said in comment 6? I believe that will solve this issue but if not we need to reopen the bug. Some more background - it seems that problem in my setup was caused by improper use of TOOLCHAIN_HOST_TASK at the first place. In my image recipe I had:
TOOLCHAIN_HOST_TASK += "nativesdk-cmake"
Using TOOLCHAIN_HOST_TASK_append helps in such case. Moving TOOLCHAIN_HOST_TASK from image recipe to machine file (and using +=) solves the problem as well, without the need to add "nativesdk-ca-certificates" manually.
Therefore I think this bug should be marked invalid (unless something could be added to bitbake to warn about such case).
Best regards,
Krzysztof
|