[OE-core] Problem building core-image-basic: Cannot create symlink from ./var/run to 'volatile/run'

Brandon Stafford brandon at rascalmicro.com
Thu Feb 16 21:21:48 UTC 2012


On Wed, Feb 15, 2012 at 7:36 PM, Mark Hatle <mark.hatle at windriver.com>wrote:

> On 2/15/12 3:21 PM, Brandon Stafford wrote:
>
>> Hi all,
>>
>> In trying to build core-image-basic for qemuarm, I ran into an error:
>> extract_archive: Cannot create symlink from ./var/run to 'volatile/run':
>> File
>> exists.
>>
>> (The full error message is posted here: http://pastebin.com/QPic3uHx )
>>
>> 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.

--Mark
>

Thanks for the suggestion, Mark.

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.

Is this the right fix?

diff --git a/meta/recipes-core/dbus/dbus.inc
b/meta/recipes-core/dbus/dbus.inc
index 2a25256..9dc40cf 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -81,9 +81,9 @@ do_install() {
             > ${D}${sysconfdir}/default/volatiles/99_dbus


-       mkdir -p ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus
+       mkdir -p ${D}${localstatedir}/volatile/run/dbus
${D}${localstatedir}/volatile/lib/dbus

-       chown messagebus:messagebus ${D}${localstatedir}/run/dbus
${D}${localstatedir}/lib/dbus
+       chown messagebus:messagebus ${D}${localstatedir}/volatile/run/dbus
${D}${localstatedir}/volatile/lib/dbus

        chown root:messagebus ${D}${libexecdir}/dbus-daemon-launch-helper
        chmod 4755 ${D}${libexecdir}/dbus-daemon-launch-helper

Cheers,
Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120216/3c4ce443/attachment-0002.html>


More information about the Openembedded-core mailing list