From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QaD6a-0006sU-3P for garchives@archives.gentoo.org; Fri, 24 Jun 2011 20:35:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F2251C01C; Fri, 24 Jun 2011 20:35:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B79871C01C for ; Fri, 24 Jun 2011 20:35:40 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDF841B4012 for ; Fri, 24 Jun 2011 20:35:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E22DF8003C for ; Fri, 24 Jun 2011 20:35:38 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/misc-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: dd2d661078771a41d4fd554c2bc3b1188ce7b53e Date: Fri, 24 Jun 2011 20:35:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 80e2d1468eeabf06d12b062ed284fc57 commit: dd2d661078771a41d4fd554c2bc3b1188ce7b53e Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Fri Jun 24 15:51:17 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Jun 24 20:34:19 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Ddd2d6610 Add a QA check for systemd unit file install. --- 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 b28b73f..09decf3 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -714,6 +714,16 @@ install_qa_check() { done [[ ${abort} =3D=3D 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 } =20 =20