Openembedded Core Discussions
 help / color / mirror / Atom feed
* RFC: FOO_subtract, the logical antidote to FOO_append.
@ 2012-05-15 19:01 Peter Seebach
  2012-05-15 20:46 ` Manuel Bessler
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Seebach @ 2012-05-15 19:01 UTC (permalink / raw)
  To: openembedded-core@

There's a few cases where something is a huge list of space-separated
things, and it is desireable to remove one.  The example currently
afflicting me is DISTRO_FEATURES_LIBC_DEFAULT; I want to end up with
the distro features including all but one of the words in it.

It seems to me that a counterpart to _append would make sense.  Here
is my basic idea:

FOO_subtract = "..."

means that, when you expand FOO:

1. Fully expand it.
2. Fully expand FOO_subtract.
3. Remove any words in FOO_subtract from FOO.
4. Yield the result.

The rationale is that the semantics of things where we're using _append
seem to be consistently of the form "this is a space-separated set",
and being able to remove things from a set would be Super Handy.

So I'm proposing the semantics for consideration, and if people like
them, I will go try to implement it in my Copious Free Time.

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.



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

end of thread, other threads:[~2012-05-18  6:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 19:01 RFC: FOO_subtract, the logical antidote to FOO_append Peter Seebach
2012-05-15 20:46 ` Manuel Bessler
2012-05-16  4:35   ` Saul Wold
2012-05-16 15:07     ` Mark Hatle
2012-05-16 16:23       ` Chris Larson
2012-05-16 16:43       ` Phil Blundell
2012-05-16 16:58     ` Peter Seebach
2012-05-18  4:18       ` Chris Larson
2012-05-18  6:25         ` Richard Purdie

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