Bug 11516 - devtool: modify: handle switch to musl libc properly
Summary: devtool: modify: handle switch to musl libc properly
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.5
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-05-17 14:15 UTC by Maxin B. John
Modified: 2017-11-12 19:54 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxin B. John 2017-05-17 14:15:34 UTC
While we use devtool for package upgrades, switching to musl ("TCLIBC=musl" in "local.conf" file) results in build failure in some cases. It happens because devtool doesn't apply the "musl" related patches. 

To verify this:

# source oe-init-build-env
# devtool modify connman
# devtool build connman (works as expected)

Update "conf/local.conf" to switch to musl ("TCLIBC=musl")

# devtool build connman (build fails)

In the beginning, devtool doesn't apply the "SRC_URI_append_libc-musl" patches when we run "devtool modify recipe". We need to clean the workspace and start again to apply these patches and then the build succeeds.
Comment 1 Paul Eggleton 2017-11-09 02:14:28 UTC
I've implemented something to help with this. It does require some branch changing when switching the configuration and changes will need to be made carefully, but it should help. See the paule/devtool31 poky-contrib branch or the patches I just sent to the list.