Bug 14838 - systemd-251.2 FTBFS with musl
Summary: systemd-251.2 FTBFS with musl
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.1 M2
Assignee: Pavel Zhukov
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-06-16 05:50 UTC by Pavel Zhukov
Modified: 2022-06-21 19:45 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
patch.log (40.13 KB, text/plain)
2022-06-16 05:50 UTC, Pavel Zhukov
no flags Details

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