Whitespace syntax warnings for meta-virtualization
Hi Bruce,
I just wanted to give a headsup that there is a patch for bitbake that adds warnings for whitespace syntax which we're likely to deprecate:
https://lists.openembedded.org/g/bitbake-devel/message/17508
I've posted it so people can start seeing how bad some other layers look. I did sort out OE-Core/meta-oe, at least on the most part.
For meta-virtualization, this results in ~1300 warnings:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/1253/steps/12/logs/warnings
Most of these look like they might be script generated, so a small tweak to those generator scripts might address many of them (he says optimistically!).
Many of the others are isolated to a handful of files which can likely be cleaned up relatively easily too.
I wanted to give a headsup of the issue and offer that I'm happy to try and help resolve it if that is helpful. I know you sometimes prefer your own patches so just let me know if any help is useful. I also wanted to ask how you wanted to handle it before everyone starts sending patches.
I do appreciate we're in the middle of release. Personally, I'm in a lull while core is in testing so I've switched to trying to clean up a few different ongoing development threads that were deferred until post release. I appreciate I'm therefore a bit ahead of where others are. This isn't meant to be any kind of pressure, just a headsup and a question about if/whether/how any help makes sense, partly to avoid you getting a load of patches you might not want.
Cheers,
Richard
Quoted 10 lines · Richard Purdie
Hi Bruce,
I just wanted to give a headsup that there is a patch for bitbake that adds warnings for whitespace syntax which we're likely to deprecate:
https://lists.openembedded.org/g/bitbake-devel/message/17508
I've posted it so people can start seeing how bad some other layers look. I did sort out OE-Core/meta-oe, at least on the most part.
Quoted 9 lines
For meta-virtualization, this results in ~1300 warnings:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/1253/steps/12/logs/warnings
Most of these look like they might be script generated, so a small tweak to those generator scripts might address many of them (he says optimistically!).
Yes, very much script generated for the go recipes. I'll fix them in tree and
then fix the script after.
Quoted 3 lines
Many of the others are isolated to a handful of files which can likely be cleaned up relatively easily too.
A script should also sort that out as well.
Quoted 8 lines
I wanted to give a headsup of the issue and offer that I'm happy to try and help resolve it if that is helpful. I know you sometimes prefer your own patches so just let me know if any help is useful. I also wanted to ask how you wanted to handle it before everyone starts sending patches.
My only concern is that it will cause a bit of a "history wall" in the code, but there's no way to avoid that.
Quoted 8 lines
I do appreciate we're in the middle of release. Personally, I'm in a lull while core is in testing so I've switched to trying to clean up a few different ongoing development threads that were deferred until post release. I appreciate I'm therefore a bit ahead of where others are. This isn't meant to be any kind of pressure, just a headsup and a question about if/whether/how any help makes sense, partly to avoid you getting a load of patches you might not want.
I'll do a mass conversion myself to fix up the whitespace issues, unless you already have one that you are locally testing in that case, feel free to send it, and then I'll fixup the stragglers.
I assume this will land in master of bitbake shortly ? I haven't branched meta-virt for release yet, and won't for a bit. But I don't mind a patch like this in both as it isn't changing functionality and will make backporting fixes easier.
Bruce
Quoted 4 lines
Cheers,
Richard
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 11 lines · Bruce Ashfield
Quoted 10 lines · Richard Purdie
I just wanted to give a headsup that there is a patch for bitbake that adds warnings for whitespace syntax which we're likely to deprecate:
https://lists.openembedded.org/g/bitbake-devel/message/17508
I've posted it so people can start seeing how bad some other layers look. I did sort out OE-Core/meta-oe, at least on the most part.
For meta-virtualization, this results in ~1300 warnings:
Quoted 8 lines
Quoted 5 lines
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/1253/steps/12/logs/warnings
Most of these look like they might be script generated, so a small tweak to those generator scripts might address many of them (he says optimistically!).
Yes, very much script generated for the go recipes. I'll fix them in tree and then fix the script after.
Ok, I wasn't sure which way around you'd prefer to do it but it helps to know that.
Quoted 10 lines
Quoted 9 lines
I do appreciate we're in the middle of release. Personally, I'm in a lull while core is in testing so I've switched to trying to clean up a few different ongoing development threads that were deferred until post release. I appreciate I'm therefore a bit ahead of where others are. This isn't meant to be any kind of pressure, just a headsup and a question about if/whether/how any help makes sense, partly to avoid you getting a load of patches you might not want.
Quoted 3 lines
I'll do a mass conversion myself to fix up the whitespace issues, unless you already have one that you are locally testing in that case, feel free to send it, and then I'll fixup the stragglers.
I don't have any patch yet. I think Martin Jansa is working on a more automated fixup script as I've just done things manually so far. It may be worth waiting for that to run against the layer when it is ready.
Quoted 1 line
I assume this will land in master of bitbake shortly ?
I'm flexible on that. I wanted to post the patch so that people could see what state different layers are in. meta-virt seems to be one of the more badly affected. I've sent email since I wanted you to be aware of it and that I know many people use the layer as a dependency so they're going to start reporting this when they test their own layers.
Quoted 4 lines
I haven't
branched meta-virt for release yet, and won't for a bit. But I don't mind a patch like this in both as it isn't changing functionality and will make backporting fixes easier.
Agreed, I did fix oe-core and meta-oe before release for similar reasons, I had the patches ready.
Cheers,
Richard