[oe] busybox-1.2.1 fails

Mustafa Yuecel yuecelm at ee.ethz.ch
Sat Aug 26 12:48:41 UTC 2006


Mohammed Amine SAYA wrote:
> Mohammed Amine SAYA wrote:
>> | mv: cannot overwrite directory 
>> `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/bin'
>> | mv: cannot overwrite directory 
>> `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/sbin'
>> | mv: cannot overwrite directory 
>> `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image/busybox/usr'
>>>
>>> Cannot overwrite directory?
>>> Sounds like a permission problem.
>>> Did you build as root once?
>>>   
>> No
>>   
>>> Try to manually rm -rf
>>> /home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1/image
>>>     
>> It worked, I removed it the image directory.
>> I used to build opie successfully with the old openembedded database 
>> (until monotone 0.25) and bitbake 1.3.X.
>> I don't know what's happening. I ls -l almost all busybox directories in 
>> $HOME/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/arm-linux/busybox-1.2.1-r1 
>> and everything
>> seems to belong to me with the right mode.
>>   
> It turns out that this line inside do_install function in 
> busybox_1.2.1.bb file is causing the trouble :
> mv ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/
> 
> I replaced "mv" with "cp -a" and it works, does anyone object to that or 
> have a better fix ?

I have the same problem. I think that the installation routine of
busybox was slightly changed. The bin, sbin and usr directories already
exists in the busybox directory, so the above mv command will fail...




More information about the Openembedded-devel mailing list