All of lore.kernel.org
 help / color / mirror / Atom feed
* How to select specific version of dependant component
@ 2010-06-24  5:51 Andrew Tverdohlebov
  2010-06-24 15:18 ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Tverdohlebov @ 2010-06-24  5:51 UTC (permalink / raw)
  To: openembedded-devel

Dear openembedded community,

Could you give me a hint how to write a recipe that refers to specific version of a library.

For example my package depends on libnet 1.0.2
If I write
DEPENDS += "libnet"
it will take libnet with maximum version number 1.1.2
How can I instruct bitbake to take libnet 1.0.2 ?

In other recipes I saw something like
DEPENDS += "libnet (= 1.0.2)"

But it doesn't work in my case for some reason.

Huge thanks in advance,
Andrew
From philip@balister.org Thu Jun 24 09:49:19 2010
Received: from mail.geekisp.com ([216.168.135.169] helo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to select specific version of dependant component
  2010-06-24  5:51 How to select specific version of dependant component Andrew Tverdohlebov
@ 2010-06-24 15:18 ` Khem Raj
  2010-06-25  0:36   ` Andrew Tverdohlebov
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2010-06-24 15:18 UTC (permalink / raw)
  To: openembedded-devel

On (24/06/10 16:51), Andrew Tverdohlebov wrote:
> Dear openembedded community,
> 
> Could you give me a hint how to write a recipe that refers to specific version of a library.

you can use PREFERRED_VERSION_libnet_local = "1.0.2" in your local.conf

> 
> For example my package depends on libnet 1.0.2
> If I write
> DEPENDS += "libnet"
> it will take libnet with maximum version number 1.1.2
> How can I instruct bitbake to take libnet 1.0.2 ?
> 
> In other recipes I saw something like
> DEPENDS += "libnet (= 1.0.2)"
> 
> But it doesn't work in my case for some reason.
> 
> Huge thanks in advance,
> Andrew
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to select specific version of dependant component
  2010-06-24 15:18 ` Khem Raj
@ 2010-06-25  0:36   ` Andrew Tverdohlebov
  2010-06-25  0:46     ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Tverdohlebov @ 2010-06-25  0:36 UTC (permalink / raw)
  To: openembedded-devel, raj.khem

Great thanks !
It works.
one small question : what does the '_local' suffix mean ?

----- Original Message ----- 
From: "Khem Raj" <raj.khem@gmail.com>
To: <openembedded-devel@lists.openembedded.org>
Sent: Friday, June 25, 2010 2:18 AM
Subject: Re: [oe] How to select specific version of dependant component


> On (24/06/10 16:51), Andrew Tverdohlebov wrote:
>> Dear openembedded community,
>>
>> Could you give me a hint how to write a recipe that refers to specific 
>> version of a library.
>
> you can use PREFERRED_VERSION_libnet_local = "1.0.2" in your local.conf
>
>>
>> For example my package depends on libnet 1.0.2
>> If I write
>> DEPENDS += "libnet"
>> it will take libnet with maximum version number 1.1.2
>> How can I instruct bitbake to take libnet 1.0.2 ?
>>
>> In other recipes I saw something like
>> DEPENDS += "libnet (= 1.0.2)"
>>
>> But it doesn't work in my case for some reason.
>>
>> Huge thanks in advance,
>> Andrew
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to select specific version of dependant component
  2010-06-25  0:36   ` Andrew Tverdohlebov
@ 2010-06-25  0:46     ` Khem Raj
  2010-06-25  3:03       ` Andrew Tverdohlebov
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2010-06-25  0:46 UTC (permalink / raw)
  To: Andrew Tverdohlebov; +Cc: openembedded-devel

On (25/06/10 11:36), Andrew Tverdohlebov wrote:
> Great thanks !
> It works.
> one small question : what does the '_local' suffix mean ?

its an override. if you want to know what overrides are read the manual.
and in future don't top post its not readable flow.
> 
> ----- Original Message ----- From: "Khem Raj" <raj.khem@gmail.com>
> To: <openembedded-devel@lists.openembedded.org>
> Sent: Friday, June 25, 2010 2:18 AM
> Subject: Re: [oe] How to select specific version of dependant component
> 
> 
> >On (24/06/10 16:51), Andrew Tverdohlebov wrote:
> >>Dear openembedded community,
> >>
> >>Could you give me a hint how to write a recipe that refers to
> >>specific version of a library.
> >
> >you can use PREFERRED_VERSION_libnet_local = "1.0.2" in your local.conf
> >
> >>
> >>For example my package depends on libnet 1.0.2
> >>If I write
> >>DEPENDS += "libnet"
> >>it will take libnet with maximum version number 1.1.2
> >>How can I instruct bitbake to take libnet 1.0.2 ?
> >>
> >>In other recipes I saw something like
> >>DEPENDS += "libnet (= 1.0.2)"
> >>
> >>But it doesn't work in my case for some reason.
> >>
> >>Huge thanks in advance,
> >>Andrew
> >>_______________________________________________
> >>Openembedded-devel mailing list
> >>Openembedded-devel@lists.openembedded.org
> >>http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
> >_______________________________________________
> >Openembedded-devel mailing list
> >Openembedded-devel@lists.openembedded.org
> >http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to select specific version of dependant component
  2010-06-25  0:46     ` Khem Raj
@ 2010-06-25  3:03       ` Andrew Tverdohlebov
  2010-06-25  3:11         ` Martin Jansa
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Tverdohlebov @ 2010-06-25  3:03 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

> its an override. if you want to know what overrides are read the manual.
> and in future don't top post its not readable flow.

If you look into the OpenEmbedded User Manual yourself smart guy, you will 
probably find that the section "overrides" is a stub.  There is also nothing 
usefull regarding purpose of  '_local' 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to select specific version of dependant component
  2010-06-25  3:03       ` Andrew Tverdohlebov
@ 2010-06-25  3:11         ` Martin Jansa
  2010-06-25  3:51           ` Andrew Tverdohlebov
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2010-06-25  3:11 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Jun 25, 2010 at 02:03:17PM +1100, Andrew Tverdohlebov wrote:
> >its an override. if you want to know what overrides are read the manual.
> >and in future don't top post its not readable flow.
> 
> If you look into the OpenEmbedded User Manual yourself smart guy,
> you will probably find that the section "overrides" is a stub.
> There is also nothing usefull regarding purpose of  '_local'

description in bitbake.conf

# Overrides are processed left to right, so the ones that are named later take precedence.
# You generally want them to go from least to most specific.
# 
# This means that an envionment variable named '<foo>_arm' overrides an
# environment variable '<foo>' (when ${TARGET_ARCH} is arm).
# an environment variable '<foo>_ramses' overrides '<foo>' but doesn't override
# '<foo>_arm' when ${MACHINE} is 'ramses'. 
# If you use combination ie '<foo>_arm_ramses', then '<foo>_arm_ramses' will override 
# '<foo>_arm' and then '<foo>' will be overriden with that value from '<foo>_arm'.
# And finally '<foo>_local' overrides anything, but with lowest priority.
#
# This works for  functions as well, they are really just environment variables.
# Default OVERRIDES to make compilation fail fast in case of build system misconfiguration.
OVERRIDES = "local:${MACHINE}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}"
# Alternative OVERRIDES definition without "fail fast", usually only for native building and Scratchbox toolchains.
#OVERRIDES = "local:${MACHINE}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}"

-- 
Jansa 'JaMa' Martin     jabber: Martin.Jansa@gmail.com



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to select specific version of dependant component
  2010-06-25  3:11         ` Martin Jansa
@ 2010-06-25  3:51           ` Andrew Tverdohlebov
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Tverdohlebov @ 2010-06-25  3:51 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

>
> description in bitbake.conf
>
> # Overrides are processed left to right, so the ones that are named later 
> take precedence.
> # You generally want them to go from least to most specific.
> #
> # This means that an envionment variable named '<foo>_arm' overrides an
> # environment variable '<foo>' (when ${TARGET_ARCH} is arm).
> # an environment variable '<foo>_ramses' overrides '<foo>' but doesn't 
> override
> # '<foo>_arm' when ${MACHINE} is 'ramses'.
> # If you use combination ie '<foo>_arm_ramses', then '<foo>_arm_ramses' 
> will override
> # '<foo>_arm' and then '<foo>' will be overriden with that value from 
> '<foo>_arm'.
> # And finally '<foo>_local' overrides anything, but with lowest priority.

Ok, thanks. Good hint.
So if get it correctly _local ovverides a variable only for local 
configuration. Am I right ? 




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-25  3:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-24  5:51 How to select specific version of dependant component Andrew Tverdohlebov
2010-06-24 15:18 ` Khem Raj
2010-06-25  0:36   ` Andrew Tverdohlebov
2010-06-25  0:46     ` Khem Raj
2010-06-25  3:03       ` Andrew Tverdohlebov
2010-06-25  3:11         ` Martin Jansa
2010-06-25  3:51           ` Andrew Tverdohlebov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.