In ki18n upstream commit 54147ad2f (current head from Dec 12), the shebang from ts-pmap-compile.py is stripped. The commit note says the script is run thru add_custom_command with an explicit python executable found by FindPythonInterp already, and it's python2/3 compatible, so the shebang isn't needed, and is removed to prevent confusion. Naturally that trips up gentoo's call to python_fix_shebang, which gets very confused with the new "shebang" of: # -*- coding: UTF-8 -*- So probably just remove the python_fix_shebang line (line 35, in src_install) in the ebuild as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=863715182784324214e24dcb0aab5fe0a6329241 commit 863715182784324214e24dcb0aab5fe0a6329241 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2017-12-18 18:43:03 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2017-12-18 18:43:03 +0000 kde-frameworks/ki18n: Drop python_fix_shebang Thanks-to: Duncan <1i5t5.duncan@cox.net> Closes: https://bugs.gentoo.org/641430 Package-Manager: Portage-2.3.19, Repoman-2.3.6 kde-frameworks/ki18n/ki18n-9999.ebuild | 5 ----- 1 file changed, 5 deletions(-)