When we do a build where builddir != srcdir and use "make -j" to build in parallel, the following error occasionally happened: ===================================================== make[2]: Entering directory '/home/wrlbuild/builds/builds-2015-09-15-175052-4ogz/intel-x86-64_std_xfce/bitbake_build/tmp/work/core2-64-wrs-linux/xfce4-screenshooter/1.8.2-r0/build' ( \ sed -e "s^@PLUGIN_PATH@^/usr/lib64/xfce4-screenshooter/applications^" \ /home/wrlbuild/builds/builds-2015-09-15-175052-4ogz/intel-x86-64_std_xfce/bitbake_build/tmp/work/core2-64-wrs-linux/xfce4-screenshooter/1.8.2-r0/xfce4-screenshooter-1.8.2/src/xfce4-screenshooter.desktop.in.in > src/xfce4-screenshooter.desktop.in \ ) /bin/sh: line 1: src/xfce4-screenshooter.desktop.in: No such file or directory Makefile:1690: recipe for target 'src/xfce4-screenshooter.desktop.in' failed make[2]: *** [src/xfce4-screenshooter.desktop.in] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/home/wrlbuild/builds/builds-2015-09-15-175052-4ogz/intel-x86-64_std_xfce/bitbake_build/tmp/work/core2-64-wrs-linux/xfce4-screenshooter/1.8.2-r0/build' Makefile:1210: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/wrlbuild/builds/builds-2015-09-15-175052-4ogz/intel-x86-64_std_xfce/bitbake_build/tmp/work/core2-64-wrs-linux/xfce4-screenshooter/1.8.2-r0/build' Makefile:693: recipe for target 'all' failed make: *** [all] Error 2 ====================================================== It appears that the src dir doesn't exist before the sed operation.
Created attachment 6460 patch to fix the issue The attached patch works for me.
I havent been able to reproduce the issue locally (in all cases, src/xfce4-screenshooter binary was built before the desktop.in file) , but the analysis makes sense so i applied your patch in a04b60c, thanks!