Bug 11259

Summary: systemd.bbclass doesn't wipe units in native / or should nativesdk unset DISTRO_FEATURES
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: jku, meta.mr.watcher, meta.watcher
Version: 2.3   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2017-03-28 12:16:33 UTC
nativesdk-dnf was installing systemd units.  systemd.bbclass doesn't handle systemd units for nativesdk targets (by setting SYSTEMD_UNITS_class-nativesdk="") so they didn't get packaged, but also the pruning code to remove unused units wasn't executed as DISTRO_FEATURES has systemd in.

So either we should strip DISTRO_FEATURES in nativesdk.bbclass, or extend the pruning code so that the DISTRO_FEATURES check is target-specific and we always prune for nativesdk/native.
Comment 1 Ross Burton 2017-04-13 22:32:17 UTC
oe-core 731744d5538e315702be828e6f2bd556309dee07 stabilises the nativesdk DISTRO_FEATURES so this is resolved.