[OE-core] [PATCH] opkg-utils: allow disabling update-alternatives

sujith h sujith.h at gmail.com
Mon Aug 11 10:16:19 UTC 2014


On Fri, Aug 8, 2014 at 11:41 PM, Saul Wold <sgw at linux.intel.com> wrote:

> On 08/08/2014 02:37 AM, Sujith H wrote:
>
>> From: Sujith H <Sujith_Haridasan at mentor.com>
>>
>> This is needed to deal with the situation where we're using ipk
>> packaging, so
>> opkg-utils must be built regardless of what update-alternatives provider
>> we
>> prefer. The downside to the current implementation is the need to adjust
>> PACKAGECONFIG as well as PREFERRED_PROVIDER, but it is more explicit that
>> way.
>>
>> Signed-off-by: Christopher Larson <kergoth at gmail.com>
>> Signed-off-by: Sujith H <Sujith_Haridasan at mentor.com>
>> ---
>>   meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 6 +++++-
>>   1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
>> b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
>> index 693c216..287bf53 100644
>> --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
>> +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
>> @@ -19,11 +19,15 @@ TARGET_CC_ARCH += "${LDFLAGS}"
>>   PYTHONRDEPS = "python python-shell python-io python-math python-crypt
>> python-logging python-fcntl python-subprocess python-pickle
>> python-compression python-textutils python-stringold"
>>   PYTHONRDEPS_class-native = ""
>>
>> -PACKAGECONFIG = "python"
>> +PACKAGECONFIG = "python update-alternatives"
>>   PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}"
>> +PACKAGECONFIG[update-alternatives] = ",,,"
>>
>>   do_install() {
>>         oe_runmake PREFIX=${prefix} DESTDIR=${D} install
>> +        if ${@'true' if 'update-alternatives' not in
>> PACKAGECONFIG.split() else 'false'}; then
>> +            rm -f "${D}${bindir}/update-alternatives"
>> +        fi
>>
> Would @bb.utils.contains() be better here?  I think that is the correct
> thing to use.
>
>
Sure.

> Sau!
>
>    }
>>
>>   PACKAGES =+ "update-alternatives-opkg"
>>
>>


-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140811/2fd24bbd/attachment-0002.html>


More information about the Openembedded-core mailing list