Bug 11259 - systemd.bbclass doesn't wipe units in native / or should nativesdk unset DISTRO_FEATURES
Summary: systemd.bbclass doesn't wipe units in native / or should nativesdk unset DIST...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M4
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-28 12:16 UTC by Ross Burton
Modified: 2017-04-13 22:32 UTC (History)
3 users (show)

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


Attachments

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