Bug 11516

Summary: devtool: modify: handle switch to musl libc properly
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Maxin B. John <maxin.john>
Component: Scripts and ToolsAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, ross.burton, sgw
Version: 2.3   
Target Milestone: 2.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

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.