From ead30c4c7e00410d9120b17a841c2552ce2b32a0 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sat, 30 Jan 2021 15:57:45 +0100 Subject: zbar: fix random do_prepare_recipe_sysroot_gettext failures * do_prepare_recipe_sysroot task is added as: addtask do_prepare_recipe_sysroot before do_configure after do_fetch which doesn't ensure that directory is created * we can run this task as "after do_unpack", but it's just easier to run it in do_configure_prepend without the need for extra task * fixes: zbar/0.23.1+gitAUTOINC+89e7900d85-r0/temp/run.do_prepare_recipe_sysroot_gettext.30306' failed with exit code 1: install: target 'zbar/0.23.1+gitAUTOINC+89e7900d85-r0/git/' is not a directory: No such file or directory WARNING: exit code 1 from a shell command. Signed-off-by: Martin Jansa Signed-off-by: Khem Raj --- meta-oe/recipes-support/zbar/zbar_git.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-support/zbar/zbar_git.bb b/meta-oe/recipes-support/zbar/zbar_git.bb index dae9122520..5cb7baae33 100644 --- a/meta-oe/recipes-support/zbar/zbar_git.bb +++ b/meta-oe/recipes-support/zbar/zbar_git.bb @@ -53,7 +53,6 @@ CPPFLAGS_append = "\ TARGET_CXXFLAGS_append = " -fPIC" -do_prepare_recipe_sysroot_gettext() { - install -m 755 ${STAGING_DATADIR_NATIVE}/gettext/ABOUT-NLS ${S}/ +do_configure_prepend() { + install -m 755 ${STAGING_DATADIR_NATIVE}/gettext/ABOUT-NLS ${S}/ } -addtask do_prepare_recipe_sysroot_gettext after do_prepare_recipe_sysroot before do_configure \ No newline at end of file -- cgit v1.2.3-54-g00ecf