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 Signed-off-by: Konrad Weihmann <[email protected]> --- meta/recipes-devtools/python/python3-docutils_0.21.2.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta/recipes-devtools/python/python3-docutils_0.21.2.bb b/meta/recipes-devtools/python/python3-docutils_0.21.2.bb index ac41ef6858..d9f8160913 100644 --- a/meta/recipes-devtools/python/python3-docutils_0.21.2.bb +++ b/meta/recipes-devtools/python/python3-docutils_0.21.2.bb @@ -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" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#201232): https://lists.openembedded.org/g/openembedded-core/message/201232 Mute This Topic: https://lists.openembedded.org/mt/106957517/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
