From 9eeb709f173f6f3cea01f19d22e5d11c5ec48a07 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Sun, 25 Jun 2023 15:28:43 +0800 Subject: [PATCH] bin/install-qa-check.d/05prefix: do not prepend slash to the path. D after EAPI 7 has no trailing slash. Prepending a slash to fp makes it '//' and does not match elements in PATH. With this fix, the shebangs from ebuilds with EAPIs newer than 7 are prefixified again. This patch delibrately ignores EAPI <7 ebuilds. They should get EAPIs bumped. Signed-off-by: Benda Xu --- bin/install-qa-check.d/05prefix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install-qa-check.d/05prefix b/bin/install-qa-check.d/05prefix index 7488ad9e4..45fa5e3e1 100644 --- a/bin/install-qa-check.d/05prefix +++ b/bin/install-qa-check.d/05prefix @@ -49,7 +49,7 @@ install_qa_check_prefix() { line=( ${line#"#!"} ) IFS=${oldIFS} [[ ${WHITELIST} == *" ${line[0]} "* ]] && continue - local fp=${fn#${D}} ; fp=/${fp%/*} + local fp=${fn#${D}} ; fp=${fp%/*} # line[0] can be an absolutised path, bug #342929 local eprefix=$(canonicalize ${EPREFIX}) local rf=${fn} -- 2.40.0