[poky] [PATCH] externalsrc: Change absolute symlinks to relative ones

Erdmann, Jens Jens.Erdmann at auerswald.de
Wed Apr 11 01:10:18 PDT 2018


>> In 3eee8e99 sstate got changed to refuse absolute symlinks. Externalsrc
>> creates absolute symlinks for oe-logs and oe-workdir which causes
>> errors at do_populate_sysroot.
>> Changing symlinks to relative paths will make externalsrc comply with sstate
>> changesi and will avoid those errors.
>
>This implies that you (or more precisely, the build system of whatever your
>recipe is building) is installing these symlinks to ${D} from the source tree
>- I would recommend avoiding that, since those symlinks are of no use on the
>target or indeed the sysroot, and making them relative means they will
>definitely be broken when moved elsewhere in any case.
>
>Which recipe(s) are you experiencing this issue with? If they are custom ones,
>how is what happens during do_install defined there?

Hi Paul,

Thanks for your reply. The problem occured after altering custom recipes with
devtool. We worked on a native and on a nonnative recipe and got following
messages:

NOTE: api-gen-native: compiling from external source tree /home/erdmann/yocto/build/workspace/sources/api-gen-native
ERROR: api-gen-native-1.0.0+git999-r0 do_populate_sysroot: sstate found an absolute path symlink /home/erdmann/yocto/build/tmp/work/x86_64-linux/api-gen-native/1.0.0+git999-r0/sysroot-destdir/home/erdmann/yocto/build/tmp/work/x86_64-linux/api-gen-native/1.0.0+git999-r0/recipe-sysroot-native/usr/lib/api-gen-native/oe-workdir pointing at /home/erdmann/yocto/build/tmp/work/x86_64-linux/api-gen-native/1.0.0+git999-r0. Please replace this with a relative link.
ERROR: api-gen-native-1.0.0+git999-r0 do_populate_sysroot: sstate found an absolute path symlink /home/erdmann/yocto/build/tmp/work/x86_64-linux/api-gen-native/1.0.0+git999-r0/sysroot-destdir/home/erdmann/yocto/build/tmp/work/x86_64-linux/api-gen-native/1.0.0+git999-r0/recipe-sysroot-native/usr/lib/api-gen-native/oe-logs pointing at /home/erdmann/yocto/build/tmp/work/x86_64-linux/api-gen-native/1.0.0+git999-r0/temp. Please replace this with a relative link.

I tried to double check and am quite conviced we did not try to install these
symlinks. I hope these informations draw a more clear picture of the
problem which lead to this attempt to fix this.

Regards,

Jens Erdmann

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20180411/d1537a94/attachment.html>


More information about the poky mailing list