Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627212 - python-utils-r1: python_fix_shebang generate invalid line
Summary: python-utils-r1: python_fix_shebang generate invalid line
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-07 02:15 UTC by Anton Bolshakov
Modified: 2017-08-07 03:27 UTC (History)
1 user (show)

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


Attachments
eclass-debug.log (eclass-debug.log,13.18 KB, text/x-log)
2017-08-07 02:15 UTC, Anton Bolshakov
Details
build.log (build.log,113.73 KB, text/x-log)
2017-08-07 02:15 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
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