<div>On Wed, Feb 15, 2012 at 7:36 PM, Mark Hatle <span dir="ltr"><<a href="mailto:mark.hatle@windriver.com" target="_blank">mark.hatle@windriver.com</a>></span> wrote:</div><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 2/15/12 3:21 PM, Brandon Stafford wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Hi all,<br>
<br>
In trying to build core-image-basic for qemuarm, I ran into an error:<br>
extract_archive: Cannot create symlink from ./var/run to 'volatile/run': File<br>
exists.<br>
<br>
(The full error message is posted here: <a href="http://pastebin.com/QPic3uHx" target="_blank">http://pastebin.com/QPic3uHx</a> )<br><br></div></blockquote>
The issue is most likely that something created the directory of "/var/run", and then the later base-files attempted to create the symlink which caused the failure. </blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--Mark<br></blockquote><div><br></div><div><div>Thanks for the suggestion, Mark.</div><div><br></div><div>It appears that dbus is the source of the conflict. If I add /volatile to the paths, as in the patch below, the error disappears. I can't test it in actual operation because of subsequent errors.</div>
<div><br></div><div>Is this the right fix?</div><div><br></div><div><div>diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc</div><div>index 2a25256..9dc40cf 100644</div><div>--- a/meta/recipes-core/dbus/dbus.inc</div>
<div>+++ b/meta/recipes-core/dbus/dbus.inc</div><div>@@ -81,9 +81,9 @@ do_install() {</div><div> > ${D}${sysconfdir}/default/volatiles/99_dbus</div><div> </div><div> </div><div>- mkdir -p ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus</div>
<div>+ mkdir -p ${D}${localstatedir}/volatile/run/dbus ${D}${localstatedir}/volatile/lib/dbus</div><div> </div><div>- chown messagebus:messagebus ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus</div>
<div>+ chown messagebus:messagebus ${D}${localstatedir}/volatile/run/dbus ${D}${localstatedir}/volatile/lib/dbus</div><div> </div><div> chown root:messagebus ${D}${libexecdir}/dbus-daemon-launch-helper</div><div>
chmod 4755 ${D}${libexecdir}/dbus-daemon-launch-helper</div></div><div><br></div><div>Cheers,</div><div>Brandon</div></div></div>