Skip to contentSkip to conversation

bitbake: user-manual: inform about spaces in :remove

PATCH In review Johan Korsnes 2 participants 2 messages Sep 29, 2022 – Oct 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bitbake: user-manual: inform about spaces in :remove

Inform the reader that there should be no need for spaces in the value when using removal override :remove.

Considering why spaces are used in the other override operators, it might seem obvious that they aren't needed for the removal operator. But, it seems like I'm not the first to be confused about this.

Cc Richard Purdie <[email protected]>
Cc Quentin Schulz <[email protected]>
Cc Ross Burton <[email protected]>
Cc Nicolas Dechesne <[email protected]>

---
v1->v2
* better wording :)

---
 .../doc/bitbake-user-manual/bitbake-user-manual-metadata.rst   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +2 -1
index 337821612c..bc27eb1b6b 100644
@@ -330,7 +330,8 @@ Removal (Override Style Syntax)
 
 You can remove values from lists using the removal override style
 syntax. Specifying a value for removal causes all occurrences of that
-value to be removed from the variable.
+value to be removed from the variable. Unlike ":append" and ":prepend",
+there is no need to add a leading or trailing space to the value.
 
 When you use this syntax, BitBake expects one or more strings.
 Surrounding spaces and spacing are preserved. Here is an example::
Signature · 1 line
2.37.3
Reviewed-by on v2 1/1
#1 lore raw
Quoted 25 lines · Johan Korsnes

Inform the reader that there should be no need for spaces in the value when using removal override :remove.

Considering why spaces are used in the other override operators, it might seem obvious that they aren't needed for the removal operator. But, it seems like I'm not the first to be confused about this.

Cc Richard Purdie <[email protected]>
Cc Quentin Schulz <[email protected]>
Cc Ross Burton <[email protected]>
Cc Nicolas Dechesne <[email protected]>

---
v1->v2
* better wording :)

---
  .../doc/bitbake-user-manual/bitbake-user-manual-metadata.rst   | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +0 -0
index 337821612c..bc27eb1b6b 100644

bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst Removal (Override Style Syntax) · line 337

Quoted 9 lines
bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +2 -1
@@ -330,7 +330,8 @@ Removal (Override Style Syntax)
 
  You can remove values from lists using the removal override style
  syntax. Specifying a value for removal causes all occurrences of that
-value to be removed from the variable.
+value to be removed from the variable. Unlike ":append" and ":prepend",
+there is no need to add a leading or trailing space to the value.
 
  When you use this syntax, BitBake expects one or more strings.
  Surrounding spaces and spacing are preserved. Here is an example::

Thanks!
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com