[OE-core] [PATCH] image/populate_sdk: Ensure symlinks in target sysroot are relative

Hans Beckérus hans.beckerus at gmail.com
Thu Sep 12 14:54:09 UTC 2013


On Thu, Sep 12, 2013 at 10:29 AM, Hans Beckérus <hans.beckerus at gmail.com> wrote:
> On Thu, Sep 12, 2013 at 10:02 AM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
>> On Thu, 2013-09-12 at 09:48 +0200, Hans Beckérus wrote:
>>> I have a slight problem with this patch. The new
>>> sysroot-relativelinks.py does not obtain the proper access protection
>>> bits!?
>>> Which results in the following error when packaging the SDK
>>>
>>> /home/poky/build/tmp/work/zynq_zc706-poky-linux-gnueabi/rootfs-default/1.0-r0/temp/run.populate_sdk_image.20803:
>>> line 496: /home/poky/scripts/sysroot-relativelinks.py: Permission
>>> denied
>>>
>>> [home/poky]: ls -l scripts/sysroot-relativelinks.py
>>> -rw-rw-r-- 1  poky poky 959 Sep 12 09:38 scripts/sysroot-relativelinks.py
>>>
>>> The execution bit is missing!?
>>>
>>> I can of course apply the execution bit manually, but what may cause
>>> the patch to not set the bits properly in my scripts folder for new
>>> files? Please advise.
>>
>> I checked the poky and oe-core trees and they have a+x:
>>
>> http://git.yoctoproject.org/cgit.cgi/poky/tree/scripts
>> http://git.openembedded.org/openembedded-core/tree/scripts
>>
>> so I'm a bit puzzled. How did you update your tree?
>>
> All the other scripts in the scripts folder has a+x, it is only the
> new .py file added by your patch that does not obtain it in my local
> tree.
>
As Richard so correctly pointed out to me, this is expected when I use
'patch' to bring it in :(
I must learn my lesson and start using 'git am' instead.

Thanks.
Hans

>> Cheers,
>>
>> Richard
>>



More information about the Openembedded-core mailing list