Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641430 - [kde overlay] kde-frameworks/ki18n-9999 breaks on python_fix_shebang (upstream killed the shebang in 54147ad2f)
Summary: [kde overlay] kde-frameworks/ki18n-9999 breaks on python_fix_shebang (upstrea...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-17 03:40 UTC by Duncan
Modified: 2017-12-18 18:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2017-12-17 03:40:03 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2017-12-18 18:43:24 UTC
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(-)