Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 627212

Summary: python-utils-r1: python_fix_shebang generate invalid line
Product: Gentoo Linux Reporter: Anton Bolshakov <anton.bugs>
Component: EclassesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: om
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: eclass-debug.log
build.log

Description Anton Bolshakov 2017-08-07 02:15:13 UTC
Created attachment 488190 [details]
eclass-debug.log

Im following Gentoo's manual https://wiki.gentoo.org/wiki/Project:Python/python-utils-r1 and writing an ebuild for gr-gsm https://github.com/ptrkrysik/gr-gsm/blob/master/python/CMakeLists.txt.
The ebuild is in Pentoo overlay:
https://github.com/pentoo/pentoo-overlay/blob/master/net-wireless/gr-gsm/gr-gsm-9999.ebuild



The current code is below:
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1 cmake-utils git-r3 python-utils-r1

src_install() {
        cmake-utils_src_install
        python_fix_shebang "${ED}"usr/bin
}

The original shebang line is this:
#!/usr/bin/env python

but the class generates the following:
#!/var/tmp/portage/net-wireless/gr-gsm-9999/temp/python2.7/bin/python2.7

which is obviously not correct
Comment 1 Anton Bolshakov 2017-08-07 02:15:49 UTC
Created attachment 488192 [details]
build.log
Comment 2 Anton Bolshakov 2017-08-07 03:27:57 UTC
sorry, it looks like the gr-gsm package has a broken GrPython makefile