diff options
author | Benda Xu <orv@debian.org> | 2023-06-25 17:03:00 +0800 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-06-29 09:22:53 +0100 |
commit | 6066bb766f43ca06a5b0f08baa5946ff678f0c29 (patch) | |
tree | e503bce9d710cc3622dd3b4c9ae726c6c28a2954 | |
parent | actions.py: Remove unused variable (diff) | |
download | portage-6066bb766f43ca06a5b0f08baa5946ff678f0c29.tar.gz portage-6066bb766f43ca06a5b0f08baa5946ff678f0c29.tar.bz2 portage-6066bb766f43ca06a5b0f08baa5946ff678f0c29.zip |
bin/install-qa-check.d/05prefix: prefixify init-script shebangs.
Init scripts in /etc/init.d have OpenRC shebangs "#!/sbin/openrc-run".
They should be prefixified like a executable script in a Prefix.
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Bug: https://bugs.gentoo.org/640658
Closes: https://github.com/gentoo/portage/pull/1061
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | bin/install-qa-check.d/05prefix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/install-qa-check.d/05prefix b/bin/install-qa-check.d/05prefix index 7488ad9e4..28f2c06af 100644 --- a/bin/install-qa-check.d/05prefix +++ b/bin/install-qa-check.d/05prefix @@ -76,8 +76,8 @@ install_qa_check_prefix() { fi continue fi - # unprefixed shebang, is the script directly in ${PATH}? - if [[ ":${PATH}:" == *":${fp}:"* ]] ; then + # unprefixed shebang, is the script directly in ${PATH} or an init script? + if [[ ":${PATH}:${EPREFIX}/etc/init.d:" == *":${fp}:"* ]] ; then if [[ -e ${EROOT}${line[0]} || -e ${ED}${line[0]} ]] ; then # is it unprefixed, but we can just fix it because a # prefixed variant exists |