Skip to contentSkip to conversation

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

PATCH Superseded Johan Korsnes 2 participants 2 messages Sep 29, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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]>
---
 .../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..0cc3ba18eb 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",
+it should never be necessary to pre/post-fix the value with a space.
 
 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
#1 lore raw

Hi Johan,

Quoted 21 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]>
---
  .../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..0cc3ba18eb 100644

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

Quoted 7 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",
+it should never be necessary to pre/post-fix the value with a space.
 

s/it should never be/it is not/

or "there is no need to add a leading or trailing space to the value"?

Cheers,
Quentin

Quoted 3 lines
bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +0 -0
  When you use this syntax, BitBake expects one or more strings.
  Surrounding spaces and spacing are preserved. Here is an example::