<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 February 2017 at 13:23, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Wed, 2017-02-01 at 12:03 +0200, Jussi Kukkonen wrote:<br>
&gt; Recipe-specific sysroots broke make_relative_symlink(), which<br>
&gt; turns absolute symlinks in sysroots into relative ones. Use the<br>
&gt; difference between the (in-sysroot) paths to construct the relative<br>
&gt; symlink.<br>
&gt;<br>
&gt; This fixes links in openssl-native, fontconfig-native and bzip2-<br>
&gt; native.<br>
&gt;<br>
&gt; Signed-off-by: Jussi Kukkonen &lt;<a href="mailto:jussi.kukkonen@intel.com">jussi.kukkonen@intel.com</a>&gt;<br>
&gt; ---<br>
&gt;<br>
&gt; sstate is not an area I&#39;m familiar with, please take a good look.<br>
&gt;<br>
&gt; As far as I could see outputpath (based on state[2]) was never really<br>
&gt; needed so I did not use it in the new version.<br>
<br>
</span>I don&#39;t think we can hardcode workdir into here as for tasks like<br>
do_deploy, this makes no sense. I think we removed most of the absolute<br>
links from the deploy tasks so we currently don&#39;t need this, at least<br>
in the common case but the sstate code is meant to be generic.<br>
<br>
I am wondering if we need to pass in anything at all, can&#39;t we just<br>
call relpath on the original path and turn it into a relative one<br>
directly without referencing it back to TMPDIR/WORKDIR?<br>
<br></blockquote><div><br></div><div>The actual file path during do_populate_sysroot is something like</div><div>  /mnt/extra-ssd/tmp/work/x86_64-linux/openssl-native/1.0.2j-r0/sysroot-destdir/mnt/extra-ssd/tmp/work/x86_64-linux/openssl-native/1.0.2j-r0/recipe-sysroot-native/usr/lib/ssl/certs</div><div><br></div><div>and the link before make_relative_symlink() points to </div><div>  /mnt/extra-ssd/tmp/work/x86_64-linux/openssl-native/1.0.2j-r0/recipe-sysroot-native/etc/ssl/certs</div><div><br></div><div>Assuming those are correct, I don&#39;t see how to do this without referencing WORKDIR or TMPDIR?</div><div><br></div><div>Jussi</div></div></div></div>