Bug 14838

Summary: systemd-251.2 FTBFS with musl
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Pavel Zhukov <pavel>
Component: coreAssignee: Pavel Zhukov <pavel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alex.kanavin, meta.mr.watcher, meta.watcher, raj.khem, randy.macleod
Version: unspecified   
Target Milestone: 4.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
patch.log none

Description Pavel Zhukov 2022-06-16 05:50:41 UTC
Created attachment 4884 [details]
patch.log

local.conf:
DISTRO_FEATURES:append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
TCLIBC := "musl"


Build Configuration:
BB_VERSION           = "2.0.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux-musl"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "4.1+snapshot-cf7d8894545b83f55420fa33f7848e1bfc6754ff"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "master:cf7d8894545b83f55420fa33f7848e1bfc6754ff"
workspace            = "<unknown>:<unknown>"

[....]
NOTE: Executing Tasks
ERROR: systemd-1_251.2-r0 do_patch: Applying patch '0005-src-basic-missing.h-check-for-missing-strndupa.patch' on target directory '/mnt/builds/yocto/build/build-master/tmp/work/core2-64-poky-linux-musl/systemd/1_251.2-r0/git'
CmdError('quilt --quiltrc /mnt/builds/yocto/build/build-master/tmp/work/core2-64-poky-linux-musl/systemd/1_251.2-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0005-src-basic-missing.h-check-for-missing-strndupa.patch
patching file meson.build
[.. omitted successful hunks ..]
patching file src/core/kmod-setup.c
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- rejects in file src/core/kmod-setup.c
patching file src/core/service.c
Comment 1 Randy MacLeod 2022-06-16 14:40:49 UTC
FYI: FTBFS = Fail to Build From Scratch

musl patches need to adjusted.
Comment 3 Pavel Zhukov 2022-06-20 18:27:27 UTC
Sanity tested with core-image-minimal. Image boots, services are running