Openembedded Core Discussions
 help / color / mirror / Atom feed
* Deployment for machine X will remove its results from machine Y's deploy dir
@ 2014-11-27  8:35 Mike Looijmans
  2014-11-27 12:02 ` Gary Thomas
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Looijmans @ 2014-11-27  8:35 UTC (permalink / raw)
  To: openembedded-core

Here's an example recipe to demonstrate the issue. Save it as "deployme.bb" 
into a recipe dir. Then build it for two machines. Building it for one machine 
will remove it from the deployment directory of the other. This problem has 
been bugging me for months, I had files just "disappear" mysteriously from the 
deploy directory and seemingly random times, and now I finally figured out 
what causes it.

(cut here)

SUMMARY = "Demonstrate a bug in OE deployment"
DESCRIPTION = "Build this package for a machine X, then look at the image's \
  deploy directory. You'll see a deployme.txt there. Now build it for another \
  machine, e.g. "Y". The deployme.txt for machine X will have disappeared \
  from the image dir. This appears to be a bug in OE's deployment."
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = 
"file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

inherit allarch deploy

do_compile () {
	echo "Hello world!" > deployme.txt
}

do_deploy () {
     install -d ${DEPLOYDIR}
     install -m 644 ${B}/deployme.txt ${DEPLOYDIR}/
}

addtask deploy before do_build after do_compile

(cut here)


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax:  (+31) (0) 499 33 69 70
E-mail: mike.looijmans@topic.nl
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-12-03 11:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27  8:35 Deployment for machine X will remove its results from machine Y's deploy dir Mike Looijmans
2014-11-27 12:02 ` Gary Thomas
2014-11-27 13:17   ` Richard Purdie
2014-11-27 14:22     ` Mike Looijmans
2014-11-27 14:41       ` Richard Purdie
2014-11-27 15:17         ` Mike Looijmans
2014-11-27 16:21           ` Richard Purdie
2014-11-28  7:09             ` Mike Looijmans
2014-11-28 10:18               ` Richard Purdie
2014-11-28 18:48                 ` Mike Looijmans
2014-12-03 11:32         ` Mike Looijmans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox