<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 11:41 PM, Saul Wold <span dir="ltr"><<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 08/08/2014 02:37 AM, Sujith H wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Sujith H <<a href="mailto:Sujith_Haridasan@mentor.com" target="_blank">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" target="_blank">kergoth@gmail.com</a>><br>
Signed-off-by: Sujith H <<a href="mailto:Sujith_Haridasan@mentor.com" target="_blank">Sujith_Haridasan@mentor.com</a>><br>
---<br>
meta/recipes-devtools/opkg-<u></u>utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a> | 6 +++++-<br>
1 file changed, 5 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-devtools/opkg-<u></u>utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a> b/meta/recipes-devtools/opkg-<u></u>utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a><br>
index 693c216..287bf53 100644<br>
--- a/meta/recipes-devtools/opkg-<u></u>utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a><br>
+++ b/meta/recipes-devtools/opkg-<u></u>utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a><br>
@@ -19,11 +19,15 @@ 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-<u></u>alternatives] = ",,,"<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-<u></u>alternatives"<br>
+ fi<br>
</blockquote></div></div>
Would @bb.utils.contains() be better here? I think that is the correct thing to use.<br>
<br></blockquote><div><br></div><div>Sure. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sau!<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
}<br>
<br>
PACKAGES =+ "update-alternatives-opkg"<br>
<br>
</blockquote>
</blockquote></div><br><br clear="all"><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>