base.bbclass: trim duplicated whitespaces from BUILDCFG_VARS
PATCH 1/1 base.bbclass: trim duplicated whitespaces from BUILDCFG_VARS
From: Ming Liu <[email protected]>
To give a example:
Before the change, in our build console, TUNE_FEATURES looks like:
...TUNE_FEATURES = "arm armv7a vfp neon cortexa8"
...
After the change:
...TUNE_FEATURES = "arm armv7a vfp neon cortexa8"
...
--- meta/classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/base.bbclass +1 -1
@@ -206,7 +206,7 @@ def buildcfg_vars(d): for var in statusvars: value = d.getVar(var) if value is not None: - yield '%-17s = "%s"' % (var, value) + yield '%-17s = "%s"' % (var, " ".join(value.split())) def buildcfg_neededvars(d): needed_vars = oe.data.typed_value("BUILDCFG_NEEDEDVARS", d)
Signature · 1 line
2.7.4
Quoted 23 lines · On Mon, Aug 21, 2017 at 4:43 AM, <[email protected]> wrote:
From: Ming Liu <[email protected]>
To give a example:
Before the change, in our build console,TUNE_FEATURESlooks like:
...TUNE_FEATURES= "arm armv7a vfp neon cortexa8"
...After the change:
...TUNE_FEATURES= "arm armv7a vfp neon cortexa8"
...Signed-off-by Ming Liu <[email protected]>--- meta/classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/base.bbclass +0
-0
meta/classes/base.bbclass def buildcfg_vars(d): · line 209
Quoted 5 lines
meta/classes/base.bbclass +1
-1@@ -206,7 +206,7 @@ def buildcfg_vars(d): for var in statusvars: value = d.getVar(var) if value is not None: - yield '%-17s = "%s"' % (var, value) + yield '%-17s = "%s"' % (var, " ".join(value.split()))
This fix has been rejected once already:
http://lists.openembedded.org/pipermail/openembedded-core/2016-November/129358.html
The preferred alternative was to remove all duplicated whitespace in the BUILDCFG_VARS variables:
http://git.openembedded.org/openembedded-core/commit/?id=5610c6397ee098dd998b7417b343494de77179f9
http://git.openembedded.org/openembedded-core/commit/?id=971e43270173afb08f21ffac16a4157f7e611b81
Quoted 10 lines
meta/classes/base.bbclass +0
-1def buildcfg_neededvars(d): needed_vars = oe.data.typed_value("BUILDCFG_NEEDEDVARS", d) --2.7.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Hi, Andre:
Arha, I did not know that when I was submitting the patch, may I know why it's rejected at that moment? Since even with the alternative fixes, the developers still could introduce duplicated whitespaces in their BSP layers if they do not know the rules, since it's quite common in recipes to assign variables with duplicated whitespcaces.
BTW: i just checked, it's been merged to master already.
//Ming Liu
2017-08-23 4:19 GMT+02:00 Andre McCurdy <[email protected]>:
Quoted 54 lines · On Mon, Aug 21, 2017 at 4:43 AM, <[email protected]> wrote:
Quoted 23 lines
From: Ming Liu <[email protected]>
To give a example:
Before the change, in our build console,TUNE_FEATURESlooks like:
...TUNE_FEATURES= "arm armv7a vfp neon cortexa8"
...After the change:
...TUNE_FEATURES= "arm armv7a vfp neon cortexa8"
...Signed-off-by Ming Liu <[email protected]>--- meta/classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/base.bbclass +0
-0meta/classes/base.bbclass def buildcfg_vars(d): · line 209
Quoted 5 lines
meta/classes/base.bbclass +1
-1@@ -206,7 +206,7 @@ def buildcfg_vars(d): for var in statusvars: value = d.getVar(var) if value is not None: - yield '%-17s = "%s"' % (var, value) + yield '%-17s = "%s"' % (var, " ".join(value.split()))This fix has been rejected once already:
http://lists.openembedded.org/pipermail/openembedded-core/
2016-November/129358.htmlThe preferred alternative was to remove all duplicated whitespace in the
BUILDCFG_VARSvariables:http://git.openembedded.org/openembedded-core/commit/?id=
5610c6397ee098dd998b7417b343494de77179f9
http://git.openembedded.org/openembedded-core/commit/?id=971e43270173afb08f21ffac16a4157f7e611b81Quoted 10 lines
meta/classes/base.bbclass +0
-1def buildcfg_neededvars(d): needed_vars = oe.data.typed_value("BUILDCFG_NEEDEDVARS", d) --2.7.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 9 lines · Ming Liu
Hi, Andre:
Arha, I did not know that when I was submitting the patch, may I know why it's rejected at that moment? Since even with the alternative fixes, the developers still could introduce duplicated whitespaces in their BSP layers if they do not know the rules, since it's quite common in recipes to assign variables with duplicated whitespcaces.
BTW: i just checked, it's been merged to master already.
No, it hasn't.
Cheers,
Richard
Hi,
Yes, it's in master-next not in master branch, but wouldn't that mean it's accepted as a proper fix, or?
//Ming Liu
2017-08-23 9:50 GMT+02:00 Richard Purdie <[email protected]
Quoted 19 lines
:
Quoted 9 lines · Ming Liu
Hi, Andre:
Arha, I did not know that when I was submitting the patch, may I know why it's rejected at that moment? Since even with the alternative fixes, the developers still could introduce duplicated whitespaces in their BSP layers if they do not know the rules, since it's quite common in recipes to assign variables with duplicated whitespcaces.
BTW: i just checked, it's been merged to master already.
No, it hasn't.
Cheers,
Richard
Quoted 2 lines · Ming Liu
Yes, it's in master-next not in master branch, but wouldn't that mean it's accepted as a proper fix, or?
It means it was queued for testing, I've dropped it from master-next now as the comments from Chris still apply from last time.
Cheers,
Richard
Hi, Richard:
OK, understood.
So for this kind of issues, the BSP developers should pay attention by themselves not to introduce any duplicated whitespaces in their meta-xxx layers?
//Ming Liu
2017-08-23 9:59 GMT+02:00 Richard Purdie <[email protected]
Quoted 13 lines
:
Quoted 2 lines · Ming Liu
Yes, it's in master-next not in master branch, but wouldn't that mean it's accepted as a proper fix, or?
It means it was queued for testing, I've dropped it from master-next now as the comments from Chris still apply from last time.
Cheers,
Richard