<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 6:08 PM, Paul Eggleton <span dir="ltr"><<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@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 Wednesday 06 August 2014 17:34:09 Sujith H wrote:<br>
> 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,<br>
> so opkg-utils must be built regardless of what update-alternatives provider<br>
> we 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<br>
> 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><br>
> b/meta/recipes-devtools/opkg-utils/<a href="http://opkg-utils_git.bb" target="_blank">opkg-utils_git.bb</a> index 693c216..952fce4<br>
> 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<br>
> python-logging python-fcntl python-subprocess python-pickle<br>
> 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_remove = "${@'virtual/update-alternatives' if<br>
> 'update-alternatives' not in PACKAGECONFIG.split() else ''}"<br>
<br>
</div></div>If we have to do this, rather than using _remove here could we simply make<br>
adding it conditional?<br></blockquote><div><br></div><div>Isn't _remove itself conditional? Pardon me if my understanding is wrong.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
Paul<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</font></span></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>