commit: 6296c4363abf36276bc49a28cd4635437757aa6e Author: Austin English <wizardedit <AT> gentoo <DOT> org> AuthorDate: Wed Jun 1 07:00:38 2016 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> 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 <zmedico <AT> 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