lttng-modules: do not search in non-existing folder during install
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Any update on push this to dunfell?,
I'm facing the issue,
Thanks in advance!,
Anibal
Quoted 53 lines · Anibal Limon via lists.openembedded.org
From: Andrey Zhizhikin <[email protected]>
When
CONFIG_TRACEPOINTSis not enabled in kernel config - module compilation is skipped, which causes the ${D}/${nonarch_base_libdir} not to be created.This fails later in do_install:append() due to the fact that find command in executed for non-existing folder.
Check for folder existence before find command in executed.
Signed-off-by Andrey Zhizhikin <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit de0aa1700ed4e6f04b0a233eb1f6d2ac598e7ed8)Signed-off-by Aníbal Limón <[email protected]>--- meta/recipes-kernel/lttng/lttng-modules_2.11.6.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-kernel/lttng/lttng-modules_2.11.6.bb +0
-0@@ -39,7 +39,9 @@ EXTRA_OEMAKE += "KERNELDIR='${STAGING_KERNEL_DIR}'" do_install_append() { # Delete empty directories to avoid QA failures if no modules werebuilt
- find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir
{} \;meta/recipes-kernel/lttng/lttng-modules_2.11.6.bb +3
-2+ if [ -d ${D}/${nonarch_base_libdir} ]; then + find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \; + fi } python do_package_prepend() { --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#159365):
https://lists.openembedded.org/g/openembedded-core/message/159365
Mute This Topic: https://lists.openembedded.org/mt/87597519/1276296
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines · Anibal Limon
Hi,
Any update on push this to dunfell?
It is in this morning's pull request:
https://lists.openembedded.org/g/openembedded-core/message/159699
Steve