From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A639B13829C for ; Thu, 2 Jun 2016 01:40:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B86B3E0801; Thu, 2 Jun 2016 01:40:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5A6D3E0801 for ; Thu, 2 Jun 2016 01:40:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DFF2C340931 for ; Thu, 2 Jun 2016 01:40:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E407D975 for ; Thu, 2 Jun 2016 01:40:00 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1464831501.6296c4363abf36276bc49a28cd4635437757aa6e.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/install-qa-check.d/ X-VCS-Repository: proj/portage X-VCS-Files: bin/install-qa-check.d/60openrc X-VCS-Directories: bin/install-qa-check.d/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 6296c4363abf36276bc49a28cd4635437757aa6e X-VCS-Branch: master Date: Thu, 2 Jun 2016 01:40:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6f408291-672e-4fb3-8311-e568fc8adaf7 X-Archives-Hash: f01a141658650131a1cfd48d1fd6e151 commit: 6296c4363abf36276bc49a28cd4635437757aa6e Author: Austin English gentoo org> AuthorDate: Wed Jun 1 07:00:38 2016 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Jun 2 01:38:21 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=6296c436 install-qa-check.d/60openrc: make sure initscripts aren't using #!/sbin/runscript Signed-off-by: Zac Medico gentoo.org> bin/install-qa-check.d/60openrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/install-qa-check.d/60openrc b/bin/install-qa-check.d/60openrc index 1e56b2f..28e3bbf 100644 --- a/bin/install-qa-check.d/60openrc +++ b/bin/install-qa-check.d/60openrc @@ -12,6 +12,12 @@ openrc_check() { if [[ ${d} == /etc/init.d && ${i} != *.sh ]] ; then # skip non-shell-script for bug #451386 [[ $(head -n1 "${i}") =~ ^#!.*[[:space:]/](runscript|sh)$ ]] || continue + if [[ $(head -n1 "${i}") == '#!/sbin/runscript' ]] ; then + eqawarn "QA Notice: #!/sbin/runscript is deprecated, use #!/sbin/openrc-run instead:" + while read -r ; + do eqawarn " ${REPLY}" + done <<< "${i//${ED}}" + fi fi bash -n "${i}" || die "The init.d file has syntax errors: ${i}" done