diff options
-rwxr-xr-x | bin/misc-functions.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index b28b73fff..09decf327 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -714,6 +714,16 @@ install_qa_check() { done [[ ${abort} == yes ]] && die "multilib-strict check failed!" fi + + # ensure packages don't install systemd units automagically + if ! hasq systemd ${INHERITED} && \ + [[ -d "${D}"/lib/systemd/system ]] + then + eqawarn "QA Notice: package installs systemd unit files (/lib/systemd/system)" + eqawarn " but does not inherit systemd.eclass." + hasq stricter ${FEATURES} \ + && die "install aborted due to missing inherit of systemd.eclass" + fi } |