<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 5, 2016 at 11:48 AM, Kucharczyk, Bartlomiej (Nokia - PL/Wroclaw) <span dir="ltr">&lt;<a href="mailto:bartlomiej.kucharczyk@nokia.com" target="_blank">bartlomiej.kucharczyk@nokia.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1u2" class="a3s aXjCH">I am trying to use METADATA_REVISION variable (defined in metadata_scm.bbclass) in my recipe, but BitBake does not rebuild the task when git revision of the repository changes.<br>
Setting [vardeps] does not help.<br>
<br>
I suspect this may be related to the fact that METADATA_REVISION is defined this way:<br>
        METADATA_REVISION ?= &quot;${@base_detect_revision(d)}&quot;<br>
And BitBake does not expand this to the proper value, thus does not see any difference.<br>
<br>
Does anyone have any suggestion how to tackle this issue, and force BitBake to properly track dependency to METADATA_REVISION value?<br>
<br>
My original task is:<br>
Package feeds/SDK installers are versioned (git metadata revision). I am trying to create an opkg.conf file which will contain such versioned package feeds URL in SDK installer. For build reproducibility, and user convenience.</div></blockquote></div><br>Bitbake tracks unexpanded forms of variables, not expanded. So it&#39;s literally storing &#39;${@base_detect_revision(d)}&quot; in the checksum, not the actual revision.</div><div class="gmail_extra"><br></div><div class="gmail_extra">METADATA_REVISION[vardepvalue] = &quot;${METADATA_REVISION}&quot; in your recipe will do it.<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>