diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2016-07-27 10:15:23 +0800 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2016-07-27 13:31:16 +0800 |
commit | 0afb5f75385876d2ecbca040449289bb39fae4d7 (patch) | |
tree | 288720403191e60fd6b8bbd39767879b8c3399b1 /meta/classes/package_ipk.bbclass | |
parent | b32d430c3c7dccf3a8d06ab492d648893a05950f (diff) | |
download | openembedded-core-contrib-0afb5f75385876d2ecbca040449289bb39fae4d7.tar.gz |
distutils: fix to avoid file-rdeps QA issue
For some nativesdk python packages, we would sometimes have the following
QA issue.
WARNING: nativesdk-python-django-1.8.8-r0 do_package_qa: QA Issue: /opt/windriver/wrlinux/9.0-qemux86/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/django-admin contained in package nativesdk-python-django require\
s /opt/windriver/wrlinux/9.0-qemux86/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/env, but no providers found in RDEPENDS_nativesdk-python-django? [file-rdeps]
The problem is that in distutils.bbclass (and distutils3.bbclass), we replace
${STAGING_BINDIR_NATIVE}/python-native/python with ${bindir}/env. In nativesdk
situation, ${bindir} is not /usr/bin, and this causes the QA issue.
Fix this problem by hardcoding '/usr/bin/env'.
Usually, we don't like hardcoding. But as far as I can see, /usr/bin/env is
a little special. We skip the 'file-rdeps' QA checking for '/usr/bin/env'
dependency. Besides, scripts in many packages do use '/usr/bin/env'. So we
should assume it's there in our system.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
0 files changed, 0 insertions, 0 deletions