Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/install-qa-check.d/
Date: Thu, 02 Jun 2016 01:40:09
Message-Id: 1464831501.6296c4363abf36276bc49a28cd4635437757aa6e.zmedico@gentoo
1 commit: 6296c4363abf36276bc49a28cd4635437757aa6e
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 07:00:38 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 2 01:38:21 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=6296c436
7
8 install-qa-check.d/60openrc: make sure initscripts aren't using #!/sbin/runscript
9
10 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
11
12 bin/install-qa-check.d/60openrc | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15 diff --git a/bin/install-qa-check.d/60openrc b/bin/install-qa-check.d/60openrc
16 index 1e56b2f..28e3bbf 100644
17 --- a/bin/install-qa-check.d/60openrc
18 +++ b/bin/install-qa-check.d/60openrc
19 @@ -12,6 +12,12 @@ openrc_check() {
20 if [[ ${d} == /etc/init.d && ${i} != *.sh ]] ; then
21 # skip non-shell-script for bug #451386
22 [[ $(head -n1 "${i}") =~ ^#!.*[[:space:]/](runscript|sh)$ ]] || continue
23 + if [[ $(head -n1 "${i}") == '#!/sbin/runscript' ]] ; then
24 + eqawarn "QA Notice: #!/sbin/runscript is deprecated, use #!/sbin/openrc-run instead:"
25 + while read -r ;
26 + do eqawarn " ${REPLY}"
27 + done <<< "${i//${ED}}"
28 + fi
29 fi
30 bash -n "${i}" || die "The init.d file has syntax errors: ${i}"
31 done