Bug 9729 - python-numpy script f2py is built with incorrect shebang
Summary: python-numpy script f2py is built with incorrect shebang
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M2
Assignee: Alejandro Hernandez
QA Contact: Francisco Pedraza
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-07 22:29 UTC by Alejandro Hernandez
Modified: 2016-07-01 16:08 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Hernandez 2016-06-07 22:29:20 UTC
When building python-numpy we come across the following warning message:

WARNING: python-numpy-1.11.0-r0 do_package_qa: QA Issue: /usr/lib/python2.7/site-packages/numpy-1.11.0-py2.7-linux-x86_64.egg/EGG-INFO/scripts/f2py contained in package python-numpy requires /home/aehernan/yocto/poky/builds/qemux86/tmp/sysroots/x86_64-linux/usr/bin/python-native/python, but no providers found in RDEPENDS_python-numpy? [file-rdeps]


One of the scripts built by numpy (f2py) is meant to be executed by python, so traditionally this would mean that it needs to be executed with the python interpreter it was built, but in our case since we are cross compiling, it uses python-native which comes from our HOST, causing incorrect behavior, since the shebang should be the TARGET's python instead.
Comment 1 Alejandro Hernandez 2016-06-07 23:03:16 UTC
This happens also for python3-numpy
Comment 2 Ross Burton 2016-06-21 11:08:10 UTC
Fixed in oe-core dd756bb8fdff676dba312e38ebc90c4c89dfe855.