plugins: fix compilation if FLB_SQLDB (sqlite3) is disabled#10239
plugins: fix compilation if FLB_SQLDB (sqlite3) is disabled#10239ThomasDevoogdt wants to merge 7 commits intofluent:masterfrom
Conversation
4b2f2ad to
a767a54
Compare
|
Let's make sure this compiles for all existing targets as well. Would it be better to disable the features within the plugins that need the DB rather than the whole plugin @leonardo-albertovich ? It feels a bit like a large hammer, e.g. no tail input even if you don't use db. We would have to make the config options and any other usage conditional though so it may be worse. |
How can it not? Currently, FLB_SQLDB is enabled by default, and will stay like that. The problem is the other way around, if not enabled, then compilation breaks.
For me fine, but I would do that on a per feature basis. Perhaps just continue with this PR, and then fine-tune some features that might compile with some small fixups. In general, it would be much better if all options are toggled in the automated tests, on one reference compilation system. Perhaps even by incremental builds. But either way, I just want to fix compilation now. |
a767a54 to
8cf7987
Compare
8cf7987 to
7092bc1
Compare
|
@patrick-stephens @edsiper I changed this PR so that plugins are still compiled, but without database support. I hope this answers #10239 (comment). Tested by doing this: and |
|
Not sure if the CI failure is relevant or something else |
I just added |
7092bc1 to
24532cd
Compare
I fixed/added some warnings for when FLB_SQLDB is not compiled. I would think its good to go now? |
|
We fixed no left device error on our CI. So, could you rebase off current master? |
Rebased, and all tests seems to be fine. Can we merge? |
|
@leonardo-albertovich just checking your comments were covered? |
|
I'll review this PR again tomorrow. @ThomasDevoogdt if you have any questions that were unanswered (I think I missed some) please repeat them so I can address them tomorrow. |
I don't have any open questions. If you see any shortcomings in this PR, then I will try to address them. But beware that I won't do any in depth refactorings, for that, someone closser to the matter should step in. |
@leonardo-albertovich I think this PR is finalized, it would be nice having it merged. By this, the runtime tests would also start to work, limiting the chance that I have to rework this anytime soon. |
|
I don't have merge privileges anymore so you should ask @edsiper about it and wait for him to have time to dedicate to this. |
|
@edsiper @patrick-stephens ping ... |
Hi, this week is perhaps the ideal moment to merge it? @edsiper |
|
@patrick-stephens Thx for the approval, can you also merge this? |
|
@patrick-stephens @edsiper Happy New Year! 🎉 It's perhaps the ideal moment to merge this pull request now. |
|
@patrick-stephens @edsiper Again a week later. Can this be merged please? |
|
@leonardo-albertovich I think you are happy the changes are done? |
|
IIRC it looked fine but I deferred to Eduardo on this one. |
|
@edsiper @leonardo-albertovich @patrick-stephens @cosmo0920 And any other maintainer, I can understand that this doesn't have a high priority, but how much patience do you expect me to have? It takes months and months until I get a proper review, and in the end an approve, to then get buried in the Fluent Bit Next graveyard. I'm fine with applying fixes to maintain fluent-bit in Buildroot, I also saw many of my commits and proposal being reused by other package maintainers, so I guess that they are somewhat worth it. So I would appreciate it that also this one gets merged over time. E.g. Upstream usage of the FLB_PREFER_SYSTEM_LIB(S) usage:
|
|
@celalettin1286 @cosmo0920 @edsiper @niedbalski @patrick-stephens Can anyone review this pull request, and finally also merge this? |
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
|
@celalettin1286 @cosmo0920 @edsiper @niedbalski @patrick-stephens ping again ... How many times do I still have to rebase this until someone merges this PR? This PR is a year old! I'm starting to loose my patience here. |
…AVE_SQLDB Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Fixes:
Summary by CodeRabbit
New Features
Bug Fixes
Tests