<div dir="ltr">Hi Paul Eggleton,<span class=""><span class=""><span></span><span></span></span></span><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 7, 2014 at 2:54 PM, Sujith H <span dir="ltr">&lt;<a href="mailto:sujith.h@gmail.com" target="_blank">sujith.h@gmail.com</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">From: Sujith H &lt;<a href="mailto:Sujith_Haridasan@mentor.com">Sujith_Haridasan@mentor.com</a>&gt;<br>


<br>
This is needed to deal with the situation where we&#39;re using ipk packaging, so<br>
opkg-utils must be built regardless of what update-alternatives provider we<br>
prefer. The downside to the current implementation is the need to adjust<br>
PACKAGECONFIG as well as PREFERRED_PROVIDER, but it is more explicit that way.<br>
<br>
Signed-off-by: Christopher Larson &lt;<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>&gt;<br>
Signed-off-by: Sujith H &lt;<a href="mailto:Sujith_Haridasan@mentor.com">Sujith_Haridasan@mentor.com</a>&gt;<br>
---<br>
 meta/recipes-devtools/opkg-utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a> | 8 +++++++-<br>
 1 file changed, 7 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-devtools/opkg-utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a> b/meta/recipes-devtools/opkg-utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a><br>


index 693c216..9364740 100644<br>
--- a/meta/recipes-devtools/opkg-utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a><br>
+++ b/meta/recipes-devtools/opkg-utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a><br>
@@ -19,11 +19,17 @@ TARGET_CC_ARCH += &quot;${LDFLAGS}&quot;<br>
 PYTHONRDEPS = &quot;python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold&quot;<br>
 PYTHONRDEPS_class-native = &quot;&quot;<br>
<br>
-PACKAGECONFIG = &quot;python&quot;<br>
+PACKAGECONFIG = &quot;python update-alternatives&quot;<br>
 PACKAGECONFIG[python] = &quot;,,,${PYTHONRDEPS}&quot;<br>
+PACKAGECONFIG[update-alternatives] = &quot;,,,&quot;<br>
+<br>
+PROVIDES += &quot;${@&#39;virtual/update-alternatives&#39; if &#39;update-alternatives&#39; in PACKAGECONFIG.split() else &#39;&#39;}&quot;<br>
<br>
 do_install() {<br>
        oe_runmake PREFIX=${prefix} DESTDIR=${D} install<br>
+        if ${@&#39;true&#39; if &#39;update-alternatives&#39; not in PACKAGECONFIG.split() else &#39;false&#39;}; then<br>
+            rm -f &quot;${D}${bindir}/update-alternatives&quot;<br>
+        fi<br>
 }<br>
<br>
 PACKAGES =+ &quot;update-alternatives-opkg&quot;<br>
<span class=""><font color="#888888">--<br>
1.8.4<br>
<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">In this change I am adding it to PROVIDES only if its required. Hope this change looks ok?<br><br></div><div class="gmail_extra">Thanks,<br>Sujith H<br clear="all">

</div><div class="gmail_extra"><br>-- <br>സുജിത് ഹരിദാസന്<br>Bangalore<br>&lt;Project&gt;Contributor to KDE project<br><a href="http://fci.wikia.com/wiki/Anti-DRM-Campaign" target="_blank">http://fci.wikia.com/wiki/Anti-DRM-Campaign</a><br>

&lt;Blog&gt; <a href="http://sujithh.info" target="_blank">http://sujithh.info</a><br>
</div></div></div>