<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 20 May 2015 at 10:47, Matthieu CRAPET <span dir="ltr">&lt;<a href="mailto:Matthieu.CRAPET@ingenico.com" target="_blank">Matthieu.CRAPET@ingenico.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="overflow:hidden">Just tell me if something is wrong, I can provide a v2 patch.<br></div></blockquote></div><br>No, it just slipped through the cracks.</div><div class="gmail_extra"><br></div><div class="gmail_extra">That regex looked a bit obscure, and there&#39;s a Python function we provide that uses the Python standard library to do the same thing, so I ended up with this locally:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"># Move zlib shared libraries for target builds to $base_libdir so the library</div><div class="gmail_extra"># can be used in early boot before $prefix is mounted.</div><div class="gmail_extra">do_install_append_class-target() {</div><div class="gmail_extra"><span class="" style="white-space:pre">        </span>if [ ${base_libdir} != ${libdir} ]</div><div class="gmail_extra"><span class="" style="white-space:pre">        </span>then</div><div class="gmail_extra"><span class="" style="white-space:pre">                </span>mkdir -p ${D}/${base_libdir}</div><div class="gmail_extra"><span class="" style="white-space:pre">                </span>mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir}</div><div class="gmail_extra"><span class="" style="white-space:pre">                </span>libname=`readlink ${D}/${libdir}/libz.so`</div><div class="gmail_extra"><span class="" style="white-space:pre">                </span>ln -sf ${@oe.path.relative(&quot;${libdir}&quot;, &quot;${base_libdir}&quot;)}/$libname ${D}${libdir}/libz.so</div><div class="gmail_extra"><span class="" style="white-space:pre">        </span>fi</div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">Do you have any objections to this form instead?  I&#39;m also thinking we should rationalise the duplicated logic into a single implementation in meta/classes/utils.bbclass...</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div></div>