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

Paul Eggleton paul.eggleton at linux.intel.com
Wed Apr 11 19:05:07 PDT 2018


On Wednesday, 11 April 2018 8:10:18 PM NZST Erdmann, Jens wrote:
> >Which recipe(s) are you experiencing this issue with? If they are custom
> >ones, how is what happens during do_install defined there?
> 
> 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.

I'd need to see exactly how do_install is working to be sure - generally,
anything that do_populate_sysroot is able to process must have been
installed during do_install. I would imagine what's happening is that 
${B}==${S} and the entire contents of ${S} is being installed to ${D} and 
thus if the symlinks are present in the source tree, they get installed.

Even in the absence of this issue I would recommend that you check
what's going on during do_install because if what I described above is the
case, it's possible it is installing a whole bunch of files that it shouldn't be.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the poky mailing list