${S}/scripts/MakeHeader.py contains a "#!/usr/bin/python" shebang, which may not exist (or too old)) on host system. We need to modify it into python in prefix. Reproducible: Always Steps to Reproduce: 1. delete /usr/bin/python 2. emerge htop Expected Results: prefix building should not depend on external python.
Created attachment 245315 [details, diff] python shebang fix
(In reply to comment #1) > Created an attachment (id=245315) [details] > python shebang fix > That is a useless use of cat. The concept is correct though. Adding maintainer for approval.
(In reply to comment #2) > > That is a useless use of cat. The concept is correct though. Adding maintainer > for approval. > So it's better to be written as sed "s,!/usr,!${EPREFIX}/usr," ${S}/scripts/MakeHeader.py >\ ${S}/scripts/MakeHeader.py ?
I would actually just do sed -i -e '1c\#!'"${EPREFIX}"'/usr/bin/python' \ ${S}/scripts/MakeHeader.py
fixed, thanks