<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"><<a href="mailto:sujith.h@gmail.com" target="_blank">sujith.h@gmail.com</a>></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 <<a href="mailto:Sujith_Haridasan@mentor.com">Sujith_Haridasan@mentor.com</a>><br>
<br>
This is needed to deal with the situation where we'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 <<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>><br>
Signed-off-by: Sujith H <<a href="mailto:Sujith_Haridasan@mentor.com">Sujith_Haridasan@mentor.com</a>><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 += "${LDFLAGS}"<br>
PYTHONRDEPS = "python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold"<br>
PYTHONRDEPS_class-native = ""<br>
<br>
-PACKAGECONFIG = "python"<br>
+PACKAGECONFIG = "python update-alternatives"<br>
PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}"<br>
+PACKAGECONFIG[update-alternatives] = ",,,"<br>
+<br>
+PROVIDES += "${@'virtual/update-alternatives' if 'update-alternatives' in PACKAGECONFIG.split() else ''}"<br>
<br>
do_install() {<br>
oe_runmake PREFIX=${prefix} DESTDIR=${D} install<br>
+ if ${@'true' if 'update-alternatives' not in PACKAGECONFIG.split() else 'false'}; then<br>
+ rm -f "${D}${bindir}/update-alternatives"<br>
+ fi<br>
}<br>
<br>
PACKAGES =+ "update-alternatives-opkg"<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><Project>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>
<Blog> <a href="http://sujithh.info" target="_blank">http://sujithh.info</a><br>
</div></div></div>