! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfce4-screenshooter: compile failed when do an out of tree build
Status:
RESOLVED: FIXED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description Jackie Huang 2015-09-21 10:11:41 CEST
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.
Comment 1 Jackie Huang 2015-09-21 10:14:52 CEST
Created attachment 6460 
patch to fix the issue

The attached patch works for me.
Comment 2 Landry Breuil editbugs 2015-11-01 10:13:50 CET
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!

Bug #12220

Reported by:
Jackie Huang
Reported on: 2015-09-21
Last modified on: 2015-11-01

People

Assignee:
Jérôme Guelfucci
CC List:
1 user

Version

Version:
unspecified

Attachments

patch to fix the issue (739 bytes, patch)
2015-09-21 10:14 CEST , Jackie Huang
no flags

Additional information