mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
python3-docutils: fix interpreter lines
when compiling a non native variant, latest update introduced package-qa errors like ERROR: QA Issue: .../docutils/utils/smartquotes.py contained in package nativesdk-python3-docutils requires /usr/bin/python3, but no providers found in RDEPENDS:nativesdk-python3-docutils? [file-rdeps] Fix that by patching the interpreter lines after install (From OE-Core rev: f0037d2b2a4b72f279f3fe60c82d4b4044cbc6d5) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
742e96ad38
commit
746bf5431b
|
|
@ -11,4 +11,12 @@ inherit pypi python_setuptools_build_meta
|
|||
RDEPENDS:${PN} += " \
|
||||
python3-pprint \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
# Make sure we use /usr/bin/env python3
|
||||
for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
|
||||
sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
|
||||
done
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user