All of lore.kernel.org
 help / color / mirror / Atom feed
* wanting clarification on overrides, _append, += and combinations of those
@ 2012-11-24 14:23 Robert P. J. Day
  2012-11-24 14:42 ` Robert P. J. Day
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Robert P. J. Day @ 2012-11-24 14:23 UTC (permalink / raw)
  To: BitBake developer list


  preparing my own write-up on how bitbake processes combinations of
overrides, _append and += and ran across an example in oe-core that is
unnecessarily whitespacey, just wanted to make sure i was
understanding this properly.

  in the current bitbake user manual, there's this example of mixing
overrides, _append and +=:

  OVERRIDES = "foo"
  A_foo_append = "X"
  A_foo_append += "Y"

  This behaves as per the first case above, but the value of A would
  be "X Y" instead of just "X".

  that, of course, makes sense as the "+=" operator automatically adds
a leading space to what is being appended.  so for fun, i scanned all
of oe-core looking for examples of "_append.*+=" for classroom demo
purposes, and the *only* examples i found were in
meta/recipes-devtools/python/python-smartpm_1.4.1.bb:

RDEPENDS_python-smartpm_append = " python-smartpm-backend-rpm python-codecs python-textutils python-xml"
RDEPENDS_python-smartpm_append += " python-fcntl python-pickle python-crypt python-compression python-shell"
RDEPENDS_python-smartpm_append += " python-resource python-netclient python-threading python-unixadmin"

  i can see that that first line *does* need an explicit leading space
in the value being assigned, but the next two "+=" lines don't, do
they?  it won't hurt, of course, you'll just *two* spaces inserted
instead of one.  but i just want to make sure i understand what's
happening there since it has the potential to be confusing for someone
trying to follow along.

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] 7+ messages in thread

end of thread, other threads:[~2012-11-26 12:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-24 14:23 wanting clarification on overrides, _append, += and combinations of those Robert P. J. Day
2012-11-24 14:42 ` Robert P. J. Day
2012-11-25 21:39   ` Richard Purdie
2012-11-25 21:38 ` Richard Purdie
2012-11-26 11:19 ` Paul Eggleton
2012-11-26 11:53   ` Robert P. J. Day
2012-11-26 12:35   ` Robert P. J. Day

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.