public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* what means PROV_class-native = ""?
@ 2013-01-18 21:35 Robert P. J. Day
  2013-01-18 21:45 ` Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2013-01-18 21:35 UTC (permalink / raw)
  To: OE Core mailing list


  perusing oe-core for examples to demonstrate the concept of
"PROVIDES =", and i ran across this in recipes-devtools/dpkg/dpkg.inc:

PROV = "virtual/update-alternatives"
PROV_class-native = ""

PROVIDES += "${PROV}"

  i'm not sure what to make of that -- what's the purpose of assigning
to PROV, then subsequently assigning to PROVIDES, but with that

PROV_class-native = ""

line in between?  i did a grep and saw nothing else like it throughout
oe-core.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



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

* Re: what means PROV_class-native = ""?
  2013-01-18 21:35 what means PROV_class-native = ""? Robert P. J. Day
@ 2013-01-18 21:45 ` Martin Jansa
  2013-01-18 21:57   ` Saul Wold
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2013-01-18 21:45 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]

On Fri, Jan 18, 2013 at 04:35:34PM -0500, Robert P. J. Day wrote:
> 
>   perusing oe-core for examples to demonstrate the concept of
> "PROVIDES =", and i ran across this in recipes-devtools/dpkg/dpkg.inc:
> 
> PROV = "virtual/update-alternatives"
> PROV_class-native = ""

PROV is variable with no special meaning
class-native is standard override for native recipe (like
virtclass-native was before).

> PROVIDES += "${PROV}"
> 
>   i'm not sure what to make of that -- what's the purpose of assigning
> to PROV, then subsequently assigning to PROVIDES, but with that
> 
> PROV_class-native = ""
> 
> line in between?  i did a grep and saw nothing else like it throughout
> oe-core.
> 
> rday
> 
> -- 
> 
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                         http://crashcourse.ca
> 
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: what means PROV_class-native = ""?
  2013-01-18 21:45 ` Martin Jansa
@ 2013-01-18 21:57   ` Saul Wold
  2013-01-18 22:06     ` Robert P. J. Day
  0 siblings, 1 reply; 4+ messages in thread
From: Saul Wold @ 2013-01-18 21:57 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Martin Jansa, OE Core mailing list

On 01/18/2013 01:45 PM, Martin Jansa wrote:
> On Fri, Jan 18, 2013 at 04:35:34PM -0500, Robert P. J. Day wrote:
>>
>>    perusing oe-core for examples to demonstrate the concept of
>> "PROVIDES =", and i ran across this in recipes-devtools/dpkg/dpkg.inc:
>>
>> PROV = "virtual/update-alternatives"
>> PROV_class-native = ""
>
> PROV is variable with no special meaning
> class-native is standard override for native recipe (like
> virtclass-native was before).
>
>> PROVIDES += "${PROV}"
>>
>>    i'm not sure what to make of that -- what's the purpose of assigning
>> to PROV, then subsequently assigning to PROVIDES, but with that
>>
>> PROV_class-native = ""
>>
>> line in between?  i did a grep and saw nothing else like it throughout
>> oe-core.
>>
I believe that idea is since it's PROVIDES += , not a straight 
assignment like = it's not a simple to override with the +=, so for the 
target case PROVIDE the virtual/u-a, but not for the native case of that 
package.

If it was a straight assignment (using =) the ${PROV} would not be needed.

Sau!

>> rday
>>
>> --
>>
>> ========================================================================
>> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>>                          http://crashcourse.ca
>>
>> Twitter:                                       http://twitter.com/rpjday
>> LinkedIn:                               http://ca.linkedin.com/in/rpjday
>> ========================================================================
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



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

* Re: what means PROV_class-native = ""?
  2013-01-18 21:57   ` Saul Wold
@ 2013-01-18 22:06     ` Robert P. J. Day
  0 siblings, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2013-01-18 22:06 UTC (permalink / raw)
  To: Saul Wold; +Cc: Martin Jansa, OE Core mailing list

On Fri, 18 Jan 2013, Saul Wold wrote:

> On 01/18/2013 01:45 PM, Martin Jansa wrote:
> > On Fri, Jan 18, 2013 at 04:35:34PM -0500, Robert P. J. Day wrote:
> > >
> > >    perusing oe-core for examples to demonstrate the concept of
> > > "PROVIDES =", and i ran across this in recipes-devtools/dpkg/dpkg.inc:
> > >
> > > PROV = "virtual/update-alternatives"
> > > PROV_class-native = ""
> >
> > PROV is variable with no special meaning
> > class-native is standard override for native recipe (like
> > virtclass-native was before).
> >
> > > PROVIDES += "${PROV}"
> > >
> > >    i'm not sure what to make of that -- what's the purpose of assigning
> > > to PROV, then subsequently assigning to PROVIDES, but with that
> > >
> > > PROV_class-native = ""
> > >
> > > line in between?  i did a grep and saw nothing else like it throughout
> > > oe-core.
> > >

> I believe that idea is since it's PROVIDES += , not a straight
> assignment like = it's not a simple to override with the +=, so for
> the target case PROVIDE the virtual/u-a, but not for the native case
> of that package.
>
> If it was a straight assignment (using =) the ${PROV} would not be
> needed.

  i thought it was something like that, i just wanted to make sure.
as martin pointed out, there's nothing magical about the PROV
variable, so i could just as easily have used, say, RDAY instead of
PROV as it was purely temporary, right?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



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

end of thread, other threads:[~2013-01-18 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18 21:35 what means PROV_class-native = ""? Robert P. J. Day
2013-01-18 21:45 ` Martin Jansa
2013-01-18 21:57   ` Saul Wold
2013-01-18 22:06     ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox