From dd2d661078771a41d4fd554c2bc3b1188ce7b53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 24 Jun 2011 17:51:17 +0200 Subject: Add a QA check for systemd unit file install. --- bin/misc-functions.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin/misc-functions.sh') 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 } -- cgit v1.2.3-1-g7c22