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. Reproducible: Always
Created attachment 864589 [details, diff] bin-install-qa-check.d-05prefix-do-not-prepend-slash.patch
how about local fp=${fn#${D%/}/} ; fp=/${fp%/*} That should cover all cases?
(In reply to Fabian Groffen from comment #2) > how about > > local fp=${fn#${D%/}/} ; fp=/${fp%/*} > > That should cover all cases? Yes, actually local fp=${fn#${D%/}} ; fp=${fp%/*} is more concise.