From: Michał Górny Date: Fri, 24 Jun 2011 15:51:17 +0000 (+0200) Subject: Add a QA check for systemd unit file install. X-Git-Tag: v2.2.0_alpha42~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd2d661078771a41d4fd554c2bc3b1188ce7b53e;p=portage.git Add a QA check for systemd unit file install. --- 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 }