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

login
register
mail settings
Submitter Brandon Stafford
Date Feb. 16, 2012, 9:21 p.m.
Message ID <CA+b4E8w1V2W2dnDNVaxFvjOb_6edswiHK8ST+ntMCr9ivOyz=w@mail.gmail.com>
Download mbox | patch
Permalink /patch/21343/
State New
Headers show

Comments

Brandon Stafford - Feb. 16, 2012, 9:21 p.m.
On Wed, Feb 15, 2012 at 7:36 PM, Mark Hatle <mark.hatle@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?


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

Cheers,
Brandon

Patch

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